How to deactivate in code specific strategy.

To add comments, please log in or register
David Del Castillo
2004
David Del Castillo  

How would I deactivate specific strategy in code without affecting other strategies. I have about 7 different strategies on 1 ea and it’s taking enormous computing  resources with just 3 open charts. What do you all recommend. As I already have true/ false of strategy but calculations probably continue in background. What code could I add before and after specific strategy to deactivate.


thanks everyone 

kypa
1079
kypa  
You may generally optimize the code - does it need all calculation at every tick or some can be done once per bar, does it recalculate non-necessary historical data, etc.
David Del Castillo
2004
David Del Castillo  
Thank you both.
To add comments, please log in or register