X_1:=CLOSE-REF(CLOSE,1);
X_2:=EMA(EMA(X_1,6),6)/EMA(EMA(ABS(X_1),6),6)*20;
X_3:=X_2*2-FORCAST(X_2,9);
X_4:=VALUEWHEN(X_3<=X_2,LOW);
X_5:=VALUEWHEN(X_3>X_2,LOW);
X_6:=IF(X_3>X_2,1,IF(X_3<X_2,(-1),0));
X_7:=VALUEWHEN(X_6!=0,X_6);
X_8:=VALUEWHEN(X_3<=X_2,HIGH);
X_9:=VALUEWHEN(X_3>X_2,HIGH);
X_10:=IF(X_7>0,X_4,X_5);
X_11:=IF(X_7>0,X_8,X_9);
DRAWBAND(X_4,RGB(66,88,66),X_5,RGB(180,0,0));
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
IF(X_10>=REF(X_10,1),X_10,DRAWNULL),CROSSDOT,COLORCD0000,LINETHICK2;
IF(X_10<=REF(X_10,1),X_10,DRAWNULL),CROSSDOT,COLORYELLOW,LINETHICK2;
IF(X_11>=REF(X_11,1),X_11,DRAWNULL),CROSSDOT,COLORLICYAN,LINETHICK2;
IF(X_11<=REF(X_11,1),X_11,DRAWNULL),CROSSDOT,COLOR00FC7C,LINETHICK2;