Condition not always working.Help welcomed
-
My buy setup rules are as follows:
- Price needs to be above 200EMA
-MACD should be below 0 level and the mainline crosses above the signal line
PROBLEMS:
-1st condition for the 200EMA is not always respected
-Entry is not always on the close of the candle even when there is no slippage . In case of slippage is it possibile to enter at 14:59 time of the 0 candle ID on the 15 min time frame
Examples
Below is attached two images one of the chart that shows 2 trades (1st trade should not happen because it is below the 200ema)
2nd image shows my fxdreema blocks

- Price needs to be above 200EMA
-
@rawad-0
The first condition block compares 200MA calculated on close prices with candle close 0, the candle close 0 is the close of the actual candle, which hasn't stopped forming, its close price is gona be different once it will stop forming. So you have to set candle ID 1. -
Thank you for your reply, My 200 EMA problem is solved. If it is possible to help me with another problem. The EA is missing certain trades because of the cross width being at minimum of 1 which means if the initial cross over is small the trade will not be executed. When the execution condition is set to above or below these trades are taken but with no limits and a trade is executed on every bar after the cross over. Is there a way to use the above or below condition for the MACD but execute the trade only once after the cross over ?