I want to ask please what is the correct way to go flat. I have assigned to my customized buttons (I have modified from a sample and it works all fine) the actions and with my close button I have;
if(Position.MarketPosition == MarketPosition.Long) {ExitLong;}
if(Position.MarketPosition == MarketPosition.Short) {ExitShort;}
Is this OK or is there the risk to run in an overfill and have a trade in opposite direction, eg when target or stop is hit exactly same time when clicking the button? Should one close/exit in another way to avoid this risk (or another risk)?
Thank you!
Tony
Comment