protected override void OnBarUpdate()
{
if (Time[0].Hour == 15)
{
MyList.Add(High[0]);
if (MyList.Count > 0) Print(MyList.Average());
}
}
My goal is to replicate this value, which is mathematically accurate at the base calculation of average high.
The previous mentioned code is not allowing me to match this value, and I am unsure as to why. It returns 21261.75 when ran on the same days loaded with a 1min interval chart. I have racked my brain around this and can not figure out why it is not matching the normal 60 minute chart. Is there some kind of data nuance I need to be familiar with when using lists or loops?

Comment