N1:=10;S:=OSS(CLOSE,EMA(HIGH,30));X:=CROSS(EMA(LOW,30),CLOSE);WS:=BARSLAST(S)+1;WX:=BARSLAST(X)+1;SS:=CROSS(SUM(S,WX),0.5);XX:=CROSS(SUM(X,WS),0.5);PARTLINE(CLOSE>EMA(HIGH,30),EMA(HIGH,30)),colorred,LINETHICK1;PARTLINE(CLOSE
EMA(LOW,30),EMA(LOW,30)),colorred,LINETHICK1;PARTLINE(CLOSEEMA(HIGH,150),EMA(HIGH,150)),COLORMAGENTA,LINETHICK1;PARTLINE(CLOSEEMA(LOW,150),EMA(LOW,150)),COLORMAGENTA,LINETHICK1;PARTLINE(CLOSE=O ,O ,C ,9 ,1 ),colorred;STICKLINE(O> C ,C ,O ,8 ,1 ),colorwhite