波段指标公式
AA1:=INDEXC/MA(INDEXC,13); {大盘机会}
M1:= MA(100*(INDEXC-LLV(INDEXL,20))/(HHV(INDEXH,20)-LLV(INDEXL,20)),8); {N:34,M:3}
M2:= MA(100*(INDEXC-LLV(INDEXL,2*20))/(HHV(INDEXH,2*20)-LLV(INDEXL,2*20)),2*8);
指数:FORCAST((M1+M2)/2,5),COLORWHITE; {N:34,M:3}
大盘机会:stickline((AA1<0.97 AND 指数<13.6 AND EMA("W&R"(13),13)>82 OR 指数<11.2 AND
HHV(EMA("W&R"(13),13),2)>79) AND INDEXC<REF(INDEXC,1),
9,20,2,0),colorred,linethick2;
VarA:=REF(L,1)*0.9; VarB:=L*0.9; {世界大战}
VarC:=(VarB*V+VarA*(CAPITAL-V))/CAPITAL; VarD:=EMA(VarC,30);
A6:=C-REF(C,1); A7:=MAX(A6,0); A8:=ABS(A6);
VarF:=SMA(A7,7,1)/SMA(A8,7,1)*100; Var10:=SMA(A7,13,1)/SMA(A8,13,1)*100;
Var11:=BARSCOUNT(C); Var12:=SMA(MAX(A6,0),6,1)/SMA(ABS(A6),6,1)*100;
Var13:=-200*(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))+100;
Var14:=(C-LLV(L,15))/(HHV(H,15)-LLV(L,15))*100;
Var16:=SMA((SMA(Var14,4,1)-50)*2,3,1);
Var17:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
Var18:=SMA(Var17,4,1); Var19:=SMA(Var18,3,1); Var1A:=(HHV(H,30)-C)/C*100;
Var1B:=Var12<=25 AND Var13<-95 AND Var1A>20 AND Var16<-30 AND Var19<30 AND VarD-C>=-0.25
AND VarF<22 AND Var10<28 AND Var11>50;
Var1C:=(H+L+C)/3;Var1D:=(Var1C-MA(Var1C,14))/(0.015*AVEDEV(Var1C,14));
Var1E:=(Var1C-MA(Var1C,70))/(0.015*AVEDEV(Var1C,70));
Var1F:=IF(Var1D>=150 AND Var1D<200 AND Var1E>=150 AND Var1E<200,10,0);
Var20:=IF(Var1D<=-150 AND Var1D>-200 AND Var1E<=-150 AND Var1E>-200,-10,Var1F);
Var21:=IF(Var1E>=200 AND Var1D>=150,15,IF(Var1E<=-200 AND Var1D<=-150,-15,Var20))+50;
预警:Var21,linethick1,COLORcyan;
底部:if(Var1B,32,12),COLORgreen;linethick1;
K11:=MA(100*(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20)),8);
K21:=MA(100*(CLOSE-LLV(LOW,2*20))/(HHV(HIGH,2*20)-LLV(LOW,2*20)),2*8);
KK1:=FORCAST((K11+K21)/2,5);
RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
K1:=SMA(RSV,7,1);
K2:=SMA(K1,2.5,1);
K3:=3*K1-2*K2,COLORCYAN;
K4:=CROSS(K2,K3) AND KK1>80;
A1:=EMA(C,8);
A2:=100*(A1-REF(A1,1))/REF(A1,1);
A3:=SUM(IF(A2>3,V,IF(A2<-3,-V,0)),0);
A4:=REF(A3,1);
高炮18:=IF(A3>A4,10,0)*0.3;
{顶:stickline(K4,100,83,7,0),COLORMAGENTA;}
顶部区:if(k4 ,-15,if(高炮18,10,0))+86,colormagenta;COLORAA11EF;
L1:=MA(L,13); L2:=100-ABS((H-L1)/L1*100);
L3:=MA(WINNER(H*0.96)*100,1); L4:=L3>L2; {世界大战}
黄牌警告:stickline(L4,85,75,7,0),COLORYELLOW;
stickline(L4,81,78,5,0),COLORred;
L5:=MA(WINNER(C*0.95)*100,3); L6:=L5>L2;
赶快跑:stickline(L6,91,85,5,0),COLORblue;
FORCAST((M1+M2)/2,5),COLORWHITE;
WR1:=100*(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13));
大盘底:stickline((AA1<0.97 AND 指数<13.6 AND EMA(WR1,13)>82 AND 指数<11.2 AND
HHV(EMA(WR1,13),2)>79),53,48,4,0),COLORFFAAFF;
Var1:=INDEXC;
Var2:=MA(Var1,6);
Var3:=MA(Var1,24);
Var4:=MA(Var1,32);
Var5:=MA(Var1,62);
Var6:=MA(Var1,105);
Var7:=Var5<REF(Var5,1) AND Var6<REF(Var6,1) AND Var5<Var6*0.98;
Var8:=Var4>Var2*1.11 AND Var3>Var2*1.095;
Var9:=Var2>Var1*0.95;
VarAP:=CLOSE/MA(CLOSE,48)*100<80;
VarBP:=CLOSE/MA(CLOSE,50)*100<80;
VarCP:=HIGH>LOW*1.078;
VarDP:=VarCP AND COUNT(VarCP,4)>2;
aaP:=VarDP AND (VarAP OR VarBP) AND Var7 AND Var8
AND Var9 AND CLOSE/COST(8)<=1 AND (CLOSE>OPEN OR CLOSE<OPEN) AND
(REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND CLOSE>0.1 ;
百法百中:stickline(AAP,93,5,1,0),COLOR00FFBB; {Y0 百法百中 100%}
DRAWTEXT(FILTER(AAP,5),65,'砸锅卖铁抢股票'),COLOR00FFBB;