What I'm doing now is I create my entrySignal so that it contains the bars array and I exit using the entry signal parameter so it only exits on the right timeframe. the only disadvantage to this is that I submit exit orders that are not valid (due to the entry signal not matching), and that I don't know ahead of time if the exit will work.
Is there a better way?
Comment