Counter of closed operations.
-
How to do to count for example 5 operations and at the end stop trading, reset the counter the next day and start trading again?
-
This might be an approach:
At "OnTrade" section, when a position is closed, increase by one a variable called like "CloseTradesCount"

At "OnTick" section, add a condition like: if CloseTradesCount >= MaxTradesPerDay -> Close all --> Stop/Reset Counter or what you would like to do.
-
Worksssssssssssssssssss.
Gracias, Thank you.