X_1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_2:=(CLOSE-REF(CLOSE,2))/REF(CLOSE,2)*100;
X_3:=(CLOSE-REF(CLOSE,3))/REF(CLOSE,3)*100;
X_4:=(CLOSE-REF(CLOSE,4))/REF(CLOSE,4)*100;
X_5:=(CLOSE-REF(CLOSE,5))/REF(CLOSE,5)*100;
X_6:=(CLOSE-REF(CLOSE,6))/REF(CLOSE,6)*100;
X_7:=(CLOSE-REF(CLOSE,7))/REF(CLOSE,7)*100;
X_8:=(CLOSE-REF(CLOSE,8))/REF(CLOSE,8)*100;
X_9:=(CLOSE-REF(CLOSE,9))/REF(CLOSE,9)*100;
X_10:=(CLOSE-REF(CLOSE,10))/REF(CLOSE,10)*100;
X_11:=(CLOSE-REF(CLOSE,11))/REF(CLOSE,11)*100;
X_12:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;
X_13:=(CLOSE-REF(CLOSE,13))/REF(CLOSE,13)*100;
X_14:=(CLOSE-REF(CLOSE,14))/REF(CLOSE,14)*100;
X_15:=(CLOSE-REF(CLOSE,15))/REF(CLOSE,15)*100;
X_16:=(CLOSE-REF(CLOSE,16))/REF(CLOSE,16)*100;
X_17:=(CLOSE-REF(CLOSE,17))/REF(CLOSE,17)*100;
X_18:=(CLOSE-REF(CLOSE,18))/REF(CLOSE,18)*100;
X_19:=(CLOSE-REF(CLOSE,19))/REF(CLOSE,19)*100;
X_20:=(CLOSE-REF(CLOSE,20))/REF(CLOSE,20)*100;
X_21:=X_1+X_2+X_3+X_4+X_5;
X_22:=X_1+X_2+X_3+X_4+X_5+X_6+X_7+X_8+X_9+X_10;
X_23:=X_1+X_2+X_3+X_4+X_5+X_6+X_7+X_8+X_9+X_10+X_11+X_12+X_13+X_14+X_15+X_16+X_17+X_18+X_19+X_20;
X_24:=(X_22-X_21*50)/100;
X_25:=(X_23-X_22*100)/100;
X_26:=(X_23-X_21*150)/100;
X_27:=(SUM(X_21,3)*30-MA(SUM(X_21,3),45))/10;
X_28:=(X_22*30-REF(SUM(X_22,3),1))/10;
X_29:=(X_21*30-REF(SUM(X_21,3),1))/10;
X_30:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_31:=SUM(X_30,3)*30-MA(SUM(X_30,3),45);
X_32:=X_30*30-REF(SUM(X_30,3),1);
X_33:=MA(X_28,30);
X_34:=X_33+2*STD(X_28,30);
X_35:=X_33-2*STD(X_28,30);
X_36:=crOSS(X_28,X_35);
X_37:=MA(X_32,10);
X_38:=X_37+2*STD(X_32,10);
X_39:=X_37-2*STD(X_32,10);
X_40:=CROSS(X_32,X_39);
X_41:=CROSS(X_32,X_35);
X_42:=WINNER(X_28)*100;
X_43:=IF(X_42<100,BArslAST(CROSS(X_42<100,0.5)),0.1);
X_44:=WINNER(X_31)*100;
X_45:=IF(X_44<100,BARSLAST(CROSS(X_44<100,0.5)),0.1);
X_46:=100*(CLOSE-REF(CLOSE,3))/(3*REF(CLOSE,3));
X_47:=MA(X_46,20);
X_48:=MA(X_46,30);
XGDS:DMA(X_29,X_28)>100 AND (X_40 OR X_36) AND CLOSE>MA(SAR.sar,1) AND X_47>X_48 AND X_45=1;