Force EA to stop working when reaches profit per day !!!!!
-
Hello guys, can someone help me?
I want to create a Scalper EA, and trying to find a way to make the EA stop working when reaches profit or loss of the day.Any ideas?
-
Hi!
Lets store the profit value (in pips) to a variable called dailyprofit
-> Once per daily bar, set dailyprofit as 0
-> When trade is closed, add result to dailyprofit
-> Before opening new trades, check the P/L limits
https://fxdreema.com/shared/6IcQU502d