by easytrading » Mon Nov 22, 2021 5:48 pm
Hello Apprentice,
If you please, to code an MT4 EA based on this Daily_open line indicator to open a position each time the price cross 5 pips above or below the Daily open price line as below:
Buy above 5 pips from the Daily price line.
Sell below 5 pips from the Daily price line.
and if the price returned on the opposite direction by 5 pips from Daily open after opening a position, first close the previous position and then open immediately another position in that direction. so that to keep only one position opened.and when hitting the target restart the EA when the same conditions met again ( when the price cross 5 pips above or below the Daily open line for the same day.
and to close the open position in the end of the Day . and reopen new position according to the new Daily open line .
using these user parameters:
position lot size: ....lots
first T/p : .... pips
second T/P : .... pips
Thank you with my highly appreciation.