I'm currently trying to perfect a work around for creating a strategy that manages my exits only. Since this isn't possible in the current version of NT, my thought process has been to create a strategy that trades on the open of next bar when enabled and then manages the exit accordingly.
The problem is I only want the strategy to handle one order the entire time it is enabled. With maxpositions, the strategy currently enters, exits, and then re-enters at the open of the next bar after a close.
In an attempt to remedy this issue, I implemented a counter that prevents more than one entry from occurring during the life of the strategy (if counter == 0, trade). However, when I enable my strategy, the historical backtesting that goes along with it brings the counter to 1, thus preventing any live trading.
What is a functional solution to this problem?
Thanks
Comment