I'm trying to implement some simple logic that does not submit a new order until all existing positions have been closed and the user is flat
I thought this would work
if(Position.MarketPosition == MarketPosition.Flat){
Print("Market Position is FLAT, going LONG -> " + Position.MarketPosition);
enterLongTrade(High[0]);
}
However, I'm still noticing new orders being executed right after each other, which shouldn't happen. What could I be missing here?
Comment