N:=6;M:=30;LH:=80;P:=27;
Var1:=(HHV(HIGH,9)-LLV(LOW,9));
Var2:=(HHV(HIGH,9)-CLOSE);
Var3:=(CLOSE-LLV(LOW,9));
Var4:=Var2/Var1*100-70 ;
Var5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
Var6:=(2*C+H+L)/4;
Var7:=SMA((Var3/Var1*100),3,1);
Var8:=LLV(LOW,34);
Var9:=SMA(Var7,3,1)-SMA(Var4,9,1);
Var10:= IF(Var9>100,Var9-100,0);
VarA:=HHV(HIGH,34);
防线B:=EMA((Var6-Var8)/(VarA-Var8)*100,8){,COLORblue};
B1:=EMA(防线B,5);
★乌云翻滚:if(防线B>65 AND 防线B<80 AND 防线B-B1<0,90,80),stick,linethick2,COLORf0000f;80,stick,linethick2,COLOR000000;
丰收在望:if(防线B>70 AND 防线B-B1>=0,79,69),stick,linethick2,COLORf00ff0;69,stick,linethick2,COLOR000000;
冰山沉船:if(防线B>26 AND 防线B<65 AND 防线B-B1<0,58,48),stick,linethick2,COLORwhite;48,stick,linethick2,COLOR000000;
★守仓待涨:if(防线B>47 AND 防线B<70 AND 防线B-B1>=0,47,37),stick,linethick2,COLORyellow;37,stick,linethick2,COLOR000000;
青龙戏水:if(防线B>5 AND 防线B<35 AND 防线B-B1<0,36,26),stick,linethick2,COLORfff000;26,stick,linethick2,COLOR000000;
★开仓进宝:if(防线B>17 AND 防线B<59 AND 防线B-B1>=0,25,15),stick,linethick2,COLOR00ff00;15,stick,linethick2,COLOR000000;
VarX1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VarX2:=SMA(VarX1,9,1)+100;
VarX3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VarX4:=SMA(VarX3,3,1);
VarX5:=SMA(VarX4,3,1)+100;
VarX6:=VarX5-VarX2;
100,,coloryellow;
逃顶: IF(VarX6>100,80,100) ,linethick2, color00ff00;
★空仓观望★:if( 逃顶=0,15,-10),stick,linethick7,colorred;
无限风光:if(防线B-B1>0,防线B,0),pointdot,linethick5,COLOrred;
泰坦尼克:if(防线B-B1<0,B1,0),pointdot,linethick5,COLORfff000;
{VarB1:=ZIG(3,13);
乌云盖顶:if( ref(varB1,2)
55,100),colorblue;
猎豹出击: if(REF(VarB1,2)>REF(VarB1,1) AND VarB1>REF(VarB1,1)
{DRAWICON(CROSS(B1 ,16) ,20 ,3 );}
抄底:IF(VarX6<20,20,0) ,linethick2, colorred;
★春种:if(CROSS(B1 ,16) ,B1+12 ,0 ),linethick2,coloryellow;
★丰收:if(CROSS(B1 ,防线B )AND B1>74 ,60,100 ),linethick2,colorblue;
{DRAWTEXT(CROSS(B1 ,防线B)AND B1>74 ,B1-20 ,'★丰收' );}