trying to create a strategy that would only EXIT already existing position on the chart, that was entered manually .
So the strategy checks the ACCOUNT position
if (Position.MarketPosition == MarketPosition.Long && Close[0]< SMA(10)[0]) ExitLong();
Not exiting. What am I doing wrong?
is it because the strategy has 0 position vs account ?
I am starting the strategy with : StartBehavior = StartBehavior.AdoptAccountPosition;
Comment