I'm trying to get my strategy to exit on a different bar series but even though it seems to enter on multiple bar series, it will not exit on multiple bar series. Am I missing something?
I have these in Initialize()
Add(PeriodType.Minute, 10);
Add(PeriodType.Minute, 5);
Add(PeriodType.Minute, 1);
But even though I have this for exit conditions....
if (
(Highs[0][0] < Highs[0][1] && Highs[0][1]-Highs[0][0] > (4*TickSize))
|| (Highs[1][0] < Highs[1][1] && Highs[1][1]-Highs[1][0] > (4*TickSize))
|| (Highs[2][0] < Highs[2][1] && Highs[2][1]-Highs[2][0] > (6*TickSize))
)
{
ExitLong(3, 2, "ExitLockedLong", "LockedLong");
ExitLong(3, 1, "ExitLong", "Long");
}
//NOTE "LockedLong" is the name of the first of my 2 entries and "Long" is the other
In this case, what I'm trying to get to occur is if 10 or 5 minute bar highs gap lower by more than 4 or 6 ticks, respectively, get out earlier. However, it's only getting out on the open of the next 20 min bar (my primary bar series)

Comment