Stop Trading By turning OFF Blocks
-
Please help me, I want to turn off BUY and SELL orders until morning when a certain number of pips is achieved in current day.
I have a variable that resets to 0 at 2am every morning.
Then after each trade compares profit with a constant that contains the number of pips I need for that day.
The EA should stop taking new trade once dailyPip (variable) > maxDailyPip (constant) by turning OFF the Buy and Sell blocks.Here's the project link:
https://fxdreema.com/shared/cOQghL1dbThanks in advance for the assistance...
-

I have tried different methods, but this is what I have in the project right now
-
check profit (period of time) > constant above buy/sell, check profit (period of time) < constant above close block if you want all to close if profit met
-
Thank you, all trades were closed, but the EA didn't take another trade till the end of the backtesting. Please here's the updated link with your instruction...
https://fxdreema.com/shared/Ak5zrUa5b
Grateful for your assistance
-
This is the update. What do I do now? The EA doesn't continue trading on the following day...
https://fxdreema.com/shared/Sk8m64sC
This is the result of the journal below...

-
You can build a structure like this instead:
-
It worked, thank you. I am super grateful.
-
You're welcome.