1.BS主图1:A:MA(CLOSE,3),ColorFF00FF,LINETHICK0;A1:=(CLOSE+HIGH+LOW)/(3);B:=EMA(A1,10);B2:=REF(B,1);MA20:=EMA(CLOSE,20);var1:=EMA(CLOSE,3);var2:=EMA(CLOSE,8);MA5:MA(CLOSE,5),colorwhite;MA21:=EMA(CLOSE,21);STICKLINE(var1MA21,h,l,0,0),Colorgreen;STICKLINE(var1MA21,c,o,8,0),Color10b210;STICKLINE(var1MA21,c,o,5,0),Color10c110;STICKLINE(var1MA21,c,o,2,0),Color10dd10;STICKLINE(var1MA21,h,l,0,0),Color106fff;STICKLINE(var1MA21,c,o,8,0),Color1047FF;STICKLINE(var1MA21,c,o,5,0),Color1055ff;STICKLINE(var1MA21,c,o,2,0),Color106fff;STICKLINE(var1var2ANDvar1MA21,h,l,0,0),Colorff5d10;STICKLINE(var1var2ANDvar1MA21,c,o,8,0),Colorff5d10;STICKLINE(var1var2ANDvar1MA21,c,o,5,0),Colorff7710;STICKLINE(var1var2ANDvar1MA21,c,o,2,0),Colorff9910;STICKLINE(var1var2ANDvar1MA21,h,l,0,0),Colorff00ff;STICKLINE(var1var2ANDvar1MA21,c,o,8,0),ColorFF43FF;STICKLINE(var1var2ANDvar1MA21,c,o,5,0),Colorff63ff;STICKLINE(var1var2ANDvar1MA21,c,o,2,0),Colorff83ff;MA2:=MA(CLOSE,10);MA34:=MA(CLOSE,34);varA:=((AMOUNT)/(VOL))/(100);varB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);varC:=((SUM(AMOUNT,7))/(varA))/(100);varD:=DMA(varB,(VOL)/(varC));varE:=((CLOSE-varD)/(varD))*(100);varF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);varJ:=MA(varE,20)+STD(varE,20);BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);K:=SMA(varF,3,1);顶:=(REF(BIAS18,1)=5)ANDCROSS(varJ,varE)AND(K79);DRAWTEXT(REF(BIAS18,1)=5ANDCROSS(varJ,varE)ANDK79,h*1.02,'风险'),coloryellow;2.笑到最后VAR1:=(C-REF(C,1))/REF(C,1);VAR2:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);个股:=EMA(SUM(VAR1,20),5);大盘:=EMA(SUM(VAR2,20),5);领涨:=(个股-大盘)=0;Var3:=(C-LLV(L,125))/(HHV(H,125)-LLV(L,125))*100;Var4:=SMA(Var3,72,1);Var5:=SMA(Var4,34,1);中线趋势:=3*Var4-2*Var5;中线趋势升:=(中线趋势-REF(中线趋势,1))=0;均五升:=(MA(C,5)-REF(MA(C,5),1))=0;均十升:=(MA(C,10)-REF(MA(C,10),1))=0;STICKLINE(均五升AND均十升AND中线趋势升,0+0.5,0-0.5,6,1),colorffff00,linethick4;强势:IF(均五升AND均十升AND中线趋势升AND领涨,4,0),colorff99ff;VAR6:=(2*C+H+L)/4;VAR7:=LLV(L,n);VAR8:=HHV(H,n);操作:EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13)-50,linethick0,colorred;趋势:EMA(0.618*REF(操作,1)+0.382*操作,3),colorffff00,linethick2;STICKLINE(操作趋势AND操作=REF(操作,1),操作+5,趋势-1,3.5,0),colorred,linethick2;STICKLINE(操作=趋势,趋势,趋势,3.5,0),coloryellow,linethick2;STICKLINE(操作趋势,趋势+0.5,趋势-0.5,3.5,0),colorffff00,linethick2;STICKLINE(强势=4,操作+6,趋势-1,4,0),colorff99ff;强弱界:0,colorffff00;STICKLINE(操作=趋势AND均五升AND均十升AND中线趋势升,趋势-3,趋势-7,4,0),color64A0E6;运动:=IF(操作=趋势AND均五升AND均十升AND中线趋势升AND趋势0,1,0);买进:IF(运动=1ANDCOUNT(运动=1,5)=1,8,0),colorred,linethick1;DRAWTEXT(买进=8,操作,'买进'),colorcc33cc;BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离:=MA(BIAS,3);准备:STICKLINE(乖离-6AND乖离=-12,-6,0,6,1),COLOR33ffcc;抄底一:IF(乖离-12AND乖离=-18,-12,0),COLOR33cccc,STICK;STICKLINE(乖离-12AND乖离=-18,-12,0,6,0),COLOR33cccc;抄底二:IF(乖离-18,-18,0),COLOR3399cc,STICK;STICKLINE(乖离-18,-18,0,6,0),COLOR3399cc;抄底:IF(买进=8ANDCOUNT(乖离-12,10)=1,10,0),linethick0,colorred;STICKLINE(抄底=10,10,0,10,1),colorred;DRAWTEXT(抄底=10,10,'←抄底'),color00ff00;DRAWTEXT(CROSS(操作,趋势)AND(操作-30),操作,'▲'),colorred;DRAWTEXT(CROSS(趋势,操作)AND(操作-20),操作,'▼'),Color00FF00;3.春种秋收(同花顺)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(Var9100,Var9-100,0);VarA:=HHV(HIGH,34);防线B:=EMA((Var6-Var8)/(VarA-Var8)*100,8);B1:=EMA(防线B,5);★乌云翻滚:IF(防线B65AND防线B80AND防线B-B10,90,80),STICK,linethick2,COLORf0000f;80,STICK,linethick2,COLOR000000;丰收在望:IF(防线B70AND防线B-B1=0,79,69),STICK,linethick2,COLORf00ff0;69,STICK,linethick2,COLOR000000;冰山沉船:IF(防线B26AND防线B65AND防线B-B10,58,48),STICK,linethick2,colorwhite;48,STICK,linethick2,COLOR000000;★守仓待涨:IF(防线B47AND防线B70AND防线B-B1=0,47,37),STICK,linethick2,coloryellow;37,STICK,linethick2,COLOR000000;青龙戏水:IF(防线B5AND防线B35AND防线B-B10,36,26),STICK,linethick2,COLORfff000;26,STICK,linethick2,COLOR000000;★开仓进宝:IF(防线B17AND防线B59AND防线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(VarX6100,80,100),linethick2,color00ff00;★空仓观望★:IF(逃顶=0,15,-10),STICK,linethick7,colorred;无限风光:IF(防线B-B10,防线B,0),POINTDOT,linethick5,colorred;泰坦尼克:IF(防线B-B10,B1,0),POINTDOT,linethick5,COLORfff000;{VarB1:=ZIG(3,13);乌云盖顶:IF(REF(varB1,2)REF(varB1,1)ANDvarB1REF(varB1,1),55,100),colorblue;猎豹出击:IF(REF(VarB1,2)REF(VarB1,1)ANDVarB1REF(VarB1,1),45,0),colorred;}{DRAWICON(CROSS(B1,16),20,3);}抄底:IF(VarX620,20,0),linethick2,colorred;★春种:IF(CROSS(B1,16),B1+12,0),linethick2,coloryellow;★丰收:IF(CROSS(B1,防线B)ANDB174,60,100),linethick2,colorblue;4.见底买入Var1:=(HHV(HIGH,5)-LLV(LOW,5));Var2:=(HHV(HIGH,9)-CLOSE);Var3:=(CLOSE-LLV(LOW,9));Var4:=Var2/Var1*100-