Taking exemple EA based on MACD, with conditions :
LONG if MACD_Historam > 0
SHORT if MACD_Histogram<0
- The Known if we close order or set Fix Take profit , the expert will open new order at Same Exit Point , the code above will define the first HISTOGRAM Tick only to open trade and wait the reverse signal to open New Trade.
In order to check the last order Type if LONG or CHORT
For Example : Long if Last Closed is Short
Taking exemple EA based on MACD, with conditions :
LONG if MACD_Historam > 0
SHORT if MACD_Histogram<0
- The Known if we close order or set Fix Take profit , the expert will open new order at Same Exit Point , the code above will define the first HISTOGRAM Tick only to open trade and wait the reverse signal to open New Trade.