solved it myself.
a little confused , please advise
the code bellow doesn't trigger at all.
I am trying to set a stop based on crossabove or crossbelow SMA
and I have multitimeframe. the exit on stop i want to activate based on the higher time interval. which is BarsInProgress = 0
if (condition1== true)
{
if ( (Position.MarketPosition == MarketPosition.Long && CrossBelow(Low,SMA(10)[0],1)
|| (Position.MarketPosition == MarketPosition.Short && CrossAbove(High,SMA(10)[0],1) ))
{
ExitLong();
ExitShort();
}
}
Comment