XXX2:SMA(VARA,VAR2,1),COLORBLUE,LINETHICK0;
VAR3:=BARSLAST( VARA=HHV(VARA,55))+1;
XXX3:SMA(VARA,VAR3,1),COLORRED,LINETHICK0;
VAR4:=BARSLAST( VARA=LLV(VARA,10))+1;
XXX4:SMA(VARA,VAR4,1),COLORBLUE,LINETHICK0;
VAR5:=BARSLAST( VARA=HHV(VARA,10))+1;
XXX5:SMA(VARA,VAR5,1),COLORRED,LINETHICK0;
XXX2A:EMA(VARA,VAR2),COLORBLUE,LINETHICK0;
XXX3A:EMA(VARA,VAR3),COLORRED,LINETHICK0;
XXX4A:EMA(VARA,VAR4),COLORBLUE,LINETHICK0;
XXX5A:EMA(VARA,VAR5),COLORRED,LINETHICK0;
PARTLINE(REF(XXX3,1),C REF(XXX3,1) ),COLORRED,LINETHICK2;
PARTLINE(REF(XXX2,1),C REF(XXX2,1)),COLORBLUE,LINETHICK2;
PARTLINE(REF(XXX5,1),C REF(XXX5,1) ),COLORRED,LINETHICK1;
PARTLINE(REF(XXX4,1),C REF(XXX4,1)),COLORBLUE,LINETHICK1;
PARTLINE( REF(XXX3A,1),C REF(XXX3A,1)),COLORRED,LINETHICK2;
PARTLINE(REF(XXX2A,1),C REF(XXX2A,1)),COLORBLUE,LINETHICK2;
PARTLINE( REF(XXX5A,1),C REF(XXX5A,1)),COLORRED,LINETHICK1;
PARTLINE(REF(XXX4A,1),C REF(XXX4A,1)),COLORBLUE,LINETHICK1;