I want to run my strategy across 2 or 3 different timeframes without charts so I am using the Strategies tab.
The problem I am having is that due to margin restrictions, I can only have 1 position per timeframe or Data Series (3 min, 5 min).
I have always used
Position.MarketPosition == MarketPosition.Flat
to accomplish this but now it doesn't seem to be working correctly. That is, when long on one timeframe, then another timeframe gets an alert it takes a trade but then stops out.
When it checks it is Flat does it check the Positions in the account or just the timeframe? How to get it to check just the timeframe?

Comment