Tâche terminée
Spécifications
Hello,
I have my own mq5 strategy code based on RSI and engulfing pattern.
When condition are met, 2 pending orders are placed (2 buystop or 2 sell stop)
One of the 2 pending order has a TP1 = X pips.
When TP1 is hit, the SL of 2nd buy stop is put to breakeven with TP2 = Y Pips.
I want to modify the code :
When TP1 is hit, the SL of 2nd buy stop is put to breakeven AND trailing stoploss is active.
The aim is to have the possibility to replace TP2 by a trailing stoploss.
The 2nd optimisation is :
The code works on all forex pairs, but not on indices like Ger40 or US30 for instance.
The aim is for the code to work on both forex and indices.
The 3rd optimsation is :
Price action when buy or sell condition is met :
Exemple : when buy condition candle is met
If next candle is bearish and (open – close) > 10 pips at the end of the candle => close trade or cancel trade
If next candle is bearish and (open – close) < 10 pips at the end of the candle => continue. If next candle breaks the low of previous candle then close or cancel trade at the previous low.
I will give you the source code, and don't hesitate to contact me if you have any questions. Thank you !