Print("Market Position = " + Position.MarketPosition);
The position will read either Long or Short before anything has even happened. As the strategy instantiates is seems to look at the bars that are loading in as everything is setting up and it "thinks" it's making trades even though it's just a few seconds of loading time.
So even though I do NOT have an open position Position.MarketPosition will insist I am either Long or Short.
1. Does this issue ring a bell?
2. It's making it hard for me to open the first trade of the strategy because the first condition will be if (Position.MarketPosition == MarketPosition.Flat )
3. Is there a work around? A way to clear this state?
Thanks,
Coop
Comment