Code: Select all
protected override void Create() {
m_HighD = new HighD(this);
m_LowD = new LowD(this);
}
protected override void CalcBar(){
m_HighD.periodsago = 1;
m_LowD.periodsago = 1;
h = m_HighD[0];
l = m_LowD[0];
}
They seems return the first-bar's High and Low of that day, instead of the High and Low of all day.