Tâche terminée
Spécifications
Please read the strategy very carefully and make sure to understand it before offering coding services. I also would insist on a manually coded EA, not an AI coded EA.
Jumping EA
MT5 EA (with Deriv as broker) with the following strategy:
Inputs:
- Lot size: minimum lot size that can be entered is => 0,001
- Time (“T”) to wait to consider next trades from initial trade entry and potential subsequent trades: minimum => 1 (i.e. 1 minute)
- Stop Loss (“SL”) percentage for total loss of all open trades combined: 10 (i.e. 10%) of equity available, meaning that if the total loss amount of all trades is equal to this percentage of equity available, all trades will close.
- Take Profit (“TP”) percentage for total profit of all open trades open in a trade cycle combined: 1 (i.e. 1%) of equity available, meaning that if the total profit amount of all trades is equal to this percentage of equity available, all trades will close.
Strategy:
1. EA will evaluate the first 1M candle to determine the trade strength direction. If the trade strength is bullish, open a Buy trade with the Lot Size input. If the trade strength is bearish, open a Sell trade with the Lot Size input.
2. Wait for the amount of minute/s (“T”) that was provided as input to determine if the initial trade is in profit.
2.1. If, after (“T”) time, the initial trade is in profit (any profit), close the trade.
2.2. If at any time DURING (“T”) TIME the initial trade is in a loss and the loss is => than SL, close the trade.
2.3. If, after (“T”) time, the initial trade is in a loss and the loss is < than “SL” percentage at the end of the “T” period, open a counter trade in the opposite direction and reset “T” time period for combined trades. The lot size of the counter trade must be calculated as detailed per the Counter trade Lot Size criteria.
3. If a counter trade is opened by Point 2.3.:
3.1. When initial and counter trade is open, if after (“T”) time combined trades total are in profit, close all trades.
3.2. When initial and counter trade is open, if at any time DURING (“T”) TIME the combined trades are in a loss and the loss is => than SL, close all trades.
3.3. When initial and counter trade is open, if after (“T”) time, the combined trades are in a loss and the loss is < than “SL” percentage at the end of the “T” period, open another counter trade in the opposite direction and reset “T” time period for combined trades. The lot size of the counter trade must be calculated as detailed per the Counter trade Lot Size criteria.
4. If after “T” time “TP” is not achieved, repeat Point 3 conditions, whichever is applicable, to continue opening counter trades until one of the sub-conditions (3.1. – 3.3.) are met.
5. When all trades in a cycle, either with an initial trade or with counter trades, are closed, initiate new trade starting from Point 1.
Counter trade Lot Size calculation criteria – Initial Lot Size for the first trade will be as per input. Every counter trade lot size will be calculated utilizing half of the amount of pips between the previous entry and the new counter entry position, as the amount of pips to be utilized to the profit side of the new counter entry as TP position with profit as per “TP” input. Thus, utilize the new “TP” position, and taking in consideration any open trades within the trade cycle, to determine the Lot Size of the new counter trade to achieve overall “TP” profit.
For example:
If the first counter trade is activated at 120 pips from initial trade entry position, the new “TP” will be set at 60 pips to the profit direction of the counter trade position and the lot size for the counter trade will be determined to achieve that profit, taking in consideration the negative effect of the entry trade.
Then, if no stops were activated and a 2nd counter trade needs to be opened, EA will consider the amount of pips again between the first counter trade and the new 2nd counter trade position. If that is i.e. 90 pips, the new “TP” will be set at 45 pips to the profit direction of the new counter trade position and the lot size for the new counter trade will be determined to achieve that profit, taking in consideration the effects of all open trades.
Then again, if no stops were activated and a 3rd counter trade needs to be opened, EA will consider the amount of pips again between the second counter trade and the new 3rd counter trade position. If that is i.e. 150 pips, the new “TP” will be set at 75 pips to the profit direction of the new counter trade position and the lot size for the new counter trade will be determined to achieve that profit, taking in consideration the effects of all open trades.
Repeating so forth….., until trade cycle terminates with either SL or TP