I'm developing the screept and need Highs and Lows of the bars on the 5 minutes chart.
I use the following code but it gives incorrect data.
int bars = 100;
bool print = false;
protected override void OnBarUpdate()
{
if (print == false)
{
for (int index = 0; index < bars; index++)
{
Print(index.ToString() + " " + High[index].ToString() + " " + Low[index].ToString());
}
print = true;
}
}
The screen with the chart and output window attached. How can I get the correct values?
Regards.
Comment