I'm trying to run the code below but NT8 does never execute any of the exit signals.
What am I doing wrong?
Thanks!
if (Position.MarketPosition == MarketPosition.Flat) { if (whateverLONGsignal) { EnterLong("EnterLong"); } if (whateverSHORTsignal) { EnterShort("EnterShort"); } } if (Position.MarketPosition == MarketPosition.Long) { if (differentsignal) { ExitLong(); } else if (Position.MarketPosition == MarketPosition.Short) if (anothersignal) { ExitShort(); } }
Comment