Hello Apprentice,
I want to make some clarifications about this EA because it does not behave satisfactorily.
Attached is a screenshot to clarify my comments.
Rule #1: Sell or buy entries are only taken when price is in the squeeze zone. This area is indicated by the indicator with the small pink circles. Outside of this area, no entry should be taken.
In the EA settings, the squeeze indicator settings should be able to be adjusted.
Rule #2: In the case of a buy like here on X1 and X2, the entry must be programmed on the low of the candle and not on the close. I imagine that it must be difficult to code but we could consider that as here in the case of a unit of time in 2 mn, at 1mn 50s, we take the bottom as a reference at this precise instant.
In the case of a sale, it is the opposite, we take the high of the candle as an entry.
Rule #3: The stop lost must be configurable. I said 5 pips in my previous post, but that's not enough. On X1, we see that the low of the next candle exceeds the low of X1, hence the need to properly adjust the stop loss.
Rule #4: Take profit must be taken as soon as price breaks MA20 (yellow arrow). If it does not reach MA20, as here with X3, a trailing stop can be set as well as a break even.
Thanks for your comments.