How to stop EA trading after it hits x% profit and resume next month?
-
I want my EA to do the following once x% profit is reached each month:
-
Close open and pending orders
-
Turn off buy and sell blocks
-
Resume trading the following month.
I understand the basic logic but I'm not sure which time filter to use and how to link the blocks. Thanks in advance!
-
-
@shingi94 At the start of the month (once per monthly bar) use a formula block to / balance by 100 and multiply by chosen percent (use a constant if you want this changeable) and put this in a variable, use this variable in a check profit (period of time)=> than variable, before trade (buy/sell) use the same block with < variable.
-
Thanks! Just implemented this, working perfectly
-
@shingi94 Your welcome