if ((Position.MarketPosition == MarketPosition.Long)
&& (LongTrades == true)
&& (BarsInProgress == 0)
&& (CurrentBars[4] > 1)
&& (((TRAdjEMAD[1] > EMAD[1])
&& (TRAdjEMAD[0] < EMAD[0]))
|| (Closes[4][0] <= EMAD[0])
|| ((Closes[4][1] > TRAdjEMAD[1])
&& (Closes[4][0] < TRAdjEMAD[0])))
&& (Closes[4][0] < Opens[4][0]))
{
PerBarExitONEmade = true;
ExitLong(Convert.ToInt32(Position.Quantity), @"ExitL TEM", @"Long6");
ExitLong(Convert.ToInt32(Position.Quantity), @"ExitL TEM", @"Long7");
}
this is a part of strategy that has multiple data series, I cannot get this part to trigger the exits
I am sure the issue is with BarsinProgress , CurrentBars[4] or something else to do with needing to recognize that the set needs to be reading DataSeries[4] ie Closes[4]
The indicators used in the condition set are created using Closes[4] as well
TRAdjEMAD[0]
EMAD[0]
as shown below
TRAdjEMAD = TRAdjEMA(Closes[4], 20, 20, 5);
EMAD = EMA(Closes[4], 20);
************************************************** *****
any help appreciated

Comment