VAR1:=IF(YEAR>=2050 AND MONTH>12,0,1);
VAR2:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
VAR3:=HIGH-REF(HIGH,1);
VAR4:=REF(LOW,1)-LOW;
VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR4,VAR3,0),14);
VAR6:=SUM(IF(VAR4>0 AND VAR4>VAR3,VAR4,0),14);
VAR7:=VAR5*100/VAR2;
VAR8:=VAR6*100/VAR2;
VAR9:=MA(ABS(VAR8-VAR7)/(VAR8+VAR7)*100,6);
VARA:=(VAR9+REF(VAR9,6))/2;
VARB:=MA(CLOSE,5);
VARC:=MA(CLOSE,30);
VARD:=DMA(EMA(CLOSE,65),SUM(VOL,65)/65/CAPITAL)*VAR1;
VARE:=VARD/1.382;
VARF:=VARD*1.274;
VAR10:=VARD*1.618;
VAR11:=(VARD-VARB)/VARB*(-100);
VAR12:=MA(VAR11,3);
CROSS(VARB,VARD);