I’m trying to find a way to control my strategy. I would like my strategy not to enter the market if a position is already open, because currently I see that several positions are opened at the same time. I tried to put a check like:
if(Position.MarketPosition == MarketPosition.Flat{
// other check for my strategy and then in case it enters to market}
else{
return;
}
but there’s still more positions open at the same time, and that’s something I want to avoid. Is there any other way to check that you are not already within the market?
Thank you!

Comment