Is there a way to have this strategy run once ie open a long or short position and then exit to be enabled again.
Rather than have it run and have position closed for loss or profit and then quickly open a new position or submit a limit order (which is what the strategy does)
The strategy needs to run on each tick as the strategy updates the stop as it progresses and needs the intrabar information.
I wanted to determine if there was a strategy parameter that can be used for this OR i need to keep track of this in the strategy ie when flat and exit the strategy there at that point if a position has been opened once.
Is there a programmatic call/function i can use to disable the strategy within itself or a best practice approach
thanks
Comment