Grid | Hedge | Martingale with TrailingStop

MQL5 Uzman Danışmanlar Forex

İş Gereklilikleri

Hi! Below is the explanation of the EA together with an example in image. I attached a TrailingStop and TrailingStep code as references that I have been using on another EA. The PDF file contains the same description, but with some expected inputs as example.


Explanation:

1) The EA strategy is summarized in opening up to 20 multiple positions according to each range of points reached in the opposite direction of the operation (Grid when activated by bool input), and closing with profits according to the values ​​of Trailing Stop / Trailing Step.


2) The lot of each position (1st to 20th) will be different and should be informed in the input (20 lots inputs)

 

3) The interval /range in points to open the next grid position must be informed in the input, and it will be different for each position (20 interval inputs)

 

4) The exit of a position with a profit will occur through the “TrailingStopProfit” with “TrailingStepProfit”, which will be activated with each new position of the grid as soon as the current price (long position example) is above the sum of the calculation:

a) "Average Price / Breakeven*" of the operation +

b) a value in pips informed in the input called "ProfitZone" +

c) the sum of the entry and exit commissions so far according to the lots (commission amount per 1 lot will be entered via input to be calculated by the EA).

 

5) Aiming to reduce the risk, I must inform from which position I want to exit with less profit (“StartSecureZoneAtPosition”). In the chosen position of this input and next positions of this grid the exit will be through value of “TrailingStopSecure” with “TrailingStepSecure”, which will be activated when the current price (long position example) is above the sum of the calculation:

a) "Average Price / Breakeven*" of the operation +

b) a value in pips informed in the input called "SecureZone" +

c) the sum of the entry and exit commissions so far according to the lots.

 

6) Date / Time Filter: It must be possible to specify the days of the week and time to make the entries, for example: Monday to Thursday from 2AM to 8PM (“EachDay” at those times – bool option) or Monday from 2AM to Thursday 8PM (“NonStopDay” bool option). To avoid having an open position on the weekend, if there is a trade in progress and the option (input bool) "ForceCloseAll" is "true", all paper trades must be closed at once at the specified time and day (Ex : ForceCloseAllDay = "Friday"; ForceCloseAllHour = 9)

 

7) Spread filter: maximum spread in pips (“MaxSpread”) acceptable to open the first position.

 

8) As for the entry of operations, that is, the 1st trade, it can be done in two ways:

 

a) By the Expert Advisor:

BUY: The closing of the previous candle is greater than the maximum of the last N candles (“Ncandles”).

SELL: The previous close is less than the minimum of the last N candles (“Ncandles”).

or

b) Manually:

With the EA active on the chart, I will add a pending order on the paper with the initial batch (One click trading or other method), and as soon as the order is executed the robot will follow up with the trailing for profit or grid for the next order ( 2nd) and others.

 

9) The robot can be used on assets/currencies with different decimal places (such as EURUSD “1.45120”, USDJPY “115.120” and assets without decimal places “265”).

 

10) If the operation reaches position 20, trades must be closed at the loss as soon as it reaches the next range specified in the input (Position 20 + “Range21Close”).

 

11) A “Complete Operation” means a trade that has been completed by Trailing (profit), or a trade that is closed with a loss after position 20. Only one “Complete Operation” must be allowed at a time. Example: The EA is on the Grid in the 5th position and a new buy / sell condition is reached by the indicator. This trade should not be executed, since there is already an “Operation” in progress.

 

12) The file provided must be open source (mq5) so that I can make changes in the future and add more positions in the grid if necessary.

 

13) When “true” (will open a maximum of 2 positions of the Grid): the position will maintain the profit rules (item #4), but will close after reach “Range3_or_StopLoss” points. That is, instead of opening the 3rd position, it will close all positions.

 

*Average Price/Breakeven: The average price of all current Grid operations where the balance of the operation is $ 0. For example:

1 Lot at $50

2 Lots at $100

5 Lots at R$150

Median Price is (1x$50 + 2x100 + 5x150) / (1+2+5) = $125 .

If possible, I would like to see the line of “Median Price” on chart. Please tell me if this won’t be possible.


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(23)
Projeler
45
20%
Arabuluculuk
24
29% / 46%
Süresi dolmuş
12
27%
Serbest
2
Geliştirici 2
Derecelendirme
(4)
Projeler
6
33%
Arabuluculuk
3
0% / 100%
Süresi dolmuş
0
Serbest
3
Geliştirici 3
Derecelendirme
(8)
Projeler
10
40%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Benzer siparişler
Ready made welcome Software where i can add and delete licenses for an EA. The EA will need the license as a parameter, which should only be applicable to a particular account number, only then with a valid license it will be possible to trade. The license system will check if the license is valid. it should work on both mt4 and 5 The Licensing should also accept all my upcoming EAs and INDICATORS It should be
Life Creator 40 - 1000 USD
the topic of this robot is ,,life creator'' becouse when you have no idea what to do, this robot can help you and teach you how you can do it. The robot gonna creat you your own tactics which can help you in future. When you gonna see that it's really work you start to be happy and you gonna want to have more of this
AllForexEA 30+ USD
Algorithm - from which order the drawdown reduction algorithm is activated. - Percent profit for DD Reduction Algoritm - percentage of profit when closing orders in the drawdown reduction mode. - Magic - is a special number that the EA assigns to its orders. - Fix distance - fixed distance between orders (default 250 - in points) - Order dinamic distance - from which order will the
I need two trading view indicators to be on Mt4 .i want them to work the same way that they do on trading view if possible.i will send the indicators
Function (A) simple to do___________________________________________________ //+------------------------------------------------------------------+ //| Expert Tick Function | //+------------------------------------------------------------------+ void OnTick() { F1(); F2(); F3(); } //+------------------------------------------------------------------+ bool F1(){ extern bool F1(); Set to external (false) or (true)
Ok 30+ USD
thacksc d trttt rtrt in super market fddf dghfg tdhdthdt gdydtydt jnjnjndf gd gdfg dgd gd t rt r te tr sf fdsffsdgs g dfg dg d dfh f hfh dh d hd fh dh dt y ty dry dr td ryd ddry
hi , i am looking for a Grid EA with some basic type of EA but fully functional and final one. so anyone who can do perfect EA should contact. plan is discussed as below. start and end time, and days of active deactive button should be added in dashboard or else like if we want to close EA for any future day or days in coming week so before time we should be able to set. when EA starts. it opens one buy or sell and
Hi, I would Like an EA ORDER PANEL for MT5 which allows me to place limit orders . The only addition I would like compared to other order panels, is an o ption to place a reversal trade if the original idea is stopped out. For example: I place a Short trade at 1.2120 with a 20 pip Stop Loss and a 100 pip target IF the SL is hit, then I want a Long trade to be place at 1.2120 with the same size SL and TP (20pip and
I need the following modules as per this sample indicator, then integrated with RSD Candles. look into the sample input settings, ................................................. ......................................................................................................... .......................................................................................................... ................previous
hello everyone I need to create an ea that creates signals based on the indicator on trading view and transmits it directly to mt5, so that the signals are created on trading view and orders are opened in mt5

Proje bilgisi

Bütçe
30 - 45 USD
Geliştirici için
27 - 40.5 USD
Son teslim tarihi
from 1 to 15 gün