VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=3*VAR2-2*VAR3;VAR5:=REF(CLOSE,1);VAR6:=SMA(MAX(CLOSE-VAR5,0),6,1)/SMA(ABS(CLOSE-VAR5),6,1)*100;VAR7:=SMA(MAX(CLOSE-VAR5,0),12,1)/SMA(ABS(CLOSE-VAR5),12,1)*100;VAR8:=EMA(CLOSE,12)-EMA(CLOSE,26);VAR9:=EMA(VAR8,9);VAR10:=2*(VAR8-VAR9);VAR11:=MA(CLOSE,20);VAR12:=VAR11+2*STD(CLOSE,20);VAR13:=VAR11-2*STD(CLOSE,20);VAR14:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);VAR15:=HIGH-REF(HIGH,1);VAR16:=REF(LOW,1)-LOW;VAR17:=SUM(IF(VAR15>0 AND VAR15>VAR16,VAR15,0),14);VAR18:=SUM(IF(VAR16>0 AND VAR16>VAR15,VAR16,0),14);VAR19:=VAR17*100/VAR14;VAR20:=VAR18*100/VAR14;VAR21:=MA(ABS(VAR20-VAR19)/(VAR20+VAR19)*100,6);VAR22:=MA(VAR21,2);VAR23:=(VAR21+REF(VAR21,6))/2;VAR24:=EMA(CLOSE,5);VAR25:=EMA(CLOSE,8);VAR26:=EMA(CLOSE,13);VAR27:=EMA(CLOSE,21);VAR28:=EMA(CLOSE,34);多方控盘线:(EMA(CLOSE,7)+EMA(CLOSE,13)+EMA(CLOSE,21)+EMA(CLOSE,34))/4,COLORRED;空方控盘线:EMA(多方控盘线,10),COLORGREEN;天魔线:多方控盘线+1.8*STD(CLOSE,27),COLORRED,LINETHICK2;地妖线:多方控盘线-1.6*STD(CLOSE,27),COLORGREEN,LINETHICK2;DRAWBAND(多方控盘线,RGB(219,112,147),空方控盘线,RGB(50,150,0));VAR29:=CROSS(多方控盘线,空方控盘线);DRAWICON(VAR29,多方控盘线*0.995,7);DRAWICON(VAR3>80 AND VAR7>80 AND VAR10<REF(VAR10,1),HIGH*1.01,6),COLORGREEN;DRAWICON(VAR3>80 AND VAR7>80 AND VAR21>60 AND CROSS(VAR22,VAR21),HIGH*1.01,24),COLORGREEN;DRAWICON(VAR3>80 AND VAR7>80 AND VAR21>60 AND CLOSE<MA(CLOSE,20),LOW*0.99,24),COLORGRAY;DRAWICON(VAR3<20 AND VAR7<20,LOW*0.99,26),COLORYELLOW;DRAWICON(CROSS(VAR4,0),LOW,1),COLORRED;DRAWICON(CROSS(100,VAR4),HIGH,2),COLORGREEN;