for (int barIndex = ChartBars.FromIndex; barIndex <= ChartBars.ToIndex; barIndex++)
{
if (Bars.GetHigh(barIndex) > highPrice)
{
highPrice = Bars.GetHigh(barIndex);
index = barIndex;
}
}
for (int barIndex = index; barIndex <= index0; barIndex++)
{
if (Bars.GetLow(barIndex) < lowPrice)
{
lowPrice = Bars.GetLow(barIndex);
index2 = barIndex;
Print("index2" + index2);
}
}
The Print() wont show up in OW. Meaning i can get my variable index2 to work in my code.
I tried every thing and i am out of idea.
It seems very difficult to get in the same code a low and a high bar. If i remove brackets i lose one or the other. i need both index in an independent way.
Any suggestions.
thank you
Comment