Hello friends I have written a code in mql4 everything is right but I am unable to add the lot and tp increment function into the EA. I request anyone with the knowledge to assist me in writing the code of this ne function. Here is the logic of the function and also keep in mind after the trade hits tp after the losses it should reset and go back to original settings:
Every time a multiple of "n_op" successive loss-making operations is reached, the EA increases both the lot and the TP. If e.g. n_op=5 and we have just closed the fourth trade at a loss, the fifth trade will have tp and lot as follows set Y = (number of subsequent losing operations +1) / n_op. When Y is an integer we apply the lot and TP change to the trade we are opening, holding and using the Y value as follows lot: lot_start + lot_incr x Y tp: opening quota + take_profit x take_profit_molt x Y
Hello friends I have written a code in mql4 everything is right but I am unable to add the lot and tp increment function into the EA. I request anyone with the knowledge to assist me in writing the code of this ne function. Here is the logic of the function and also keep in mind after the trade hits tp after the losses it should reset and go back to original settings:
Every time a multiple of "n_op" successive loss-making operations is reached, the EA increases both the lot and the TP. If e.g. n_op=5 and we have just closed the fourth trade at a loss, the fifth trade will have tp and lot as follows set Y = (number of subsequent losing operations +1) / n_op. When Y is an integer we apply the lot and TP change to the trade we are opening, holding and using the Y value as follows lot: lot_start + lot_incr x Y tp: opening quota + take_profit x take_profit_molt x Y