I loaded data series of 1 minute for 360 days. As I enabled the strategy, the system applied my strategy to all the data loaded and the last position is a long entry order. However, since this is on the historical data, this should be a fake position only for me to see how my strategy works. Going forward, the data is live. however, my strategy still tries to close that position when all conditions are met even though it is a fake one. this resulted in my order getting rejected and my strategy got disabled.
How should I fix it? Is there a way to cancel the last open position in the historical data?

Comment