void operator() ( const Bar &bar ) { ++cnt; double t = cnt; rsUpper.Add( t, bar.High() - bar.Open() ); rsLower.Add( t, bar.Open() - bar.Low() ); }
void operator() ( const Bar &bar ) { //m_dblVolatility += ( bar.m_dblHigh - bar.m_dblLow ) / bar.m_dblClose; m_dblVolatility += ( bar.High() - bar.Low() ) ; ++m_nNumberOfValues; }