Code: Select all
for ( int i = 0; i < 10; i++ )
{
m_TL_Counter++;
if ( m_TL_Value[0] < m_TL_Value[m_TL_Counter] ) m_TL_CheckBack = true;
}
m_TL_Counter = 0;
if (m_TL_CheckBack)
{
do
{
m_TL_Counter++;
if ( m_TL_Value[0] < m_TL_Value[m_TL_Counter] ) m_TL_1stHH_curBar = m_TL_Counter;
}
while ( m_TL_Value[0] > m_TL_Value[m_TL_Counter] );
m_TL_Counter = 0;
do
{
m_TL_Counter++;
if ( m_TL_Value[m_TL_1stHH_curBar] < m_TL_Value[ m_TL_1stHH_curBar + m_TL_Counter ] )
{
m_TL_2ndHH_curBar = m_TL_1stHH_curBar + m_TL_Counter;
Output.WriteLine( "{0}", Bars.CurrentBar );
}
}
while ( m_TL_Value[m_TL_1stHH_curBar] > m_TL_Value[ m_TL_1stHH_curBar + m_TL_Counter ] );
m_TL_Counter = 0;
m_TL_CheckBack = false;
}