Please advice.
Thanks
Code: Select all
inputs:
TLPrice( CCI(14) );
variables:
TL_ID( 0 ),
TLVal( 0 ) ;
TL_ID = TL_GetFirst( 7 );
If TL_ID > 0 then
TLVal = TL_GetValue( TL_ID, Date, Time ) * PriceScale ;
if LastBarOnChart and
TL_ID > 0 and
TLPrice[1] < TLVal[1] and
TLPrice > TLVal then
Buy ( "TL LE" ) next bar at Market ;
if LastBarOnChart and
TL_ID > 0 and
TLPrice[1] < TLVal[1] and
TLPrice > TLVal then
Print (D, T, "Cross CCI", TLPrice, "LineVal", TLVal );