杨百万公式源码集
2010-04-09 21:40:45| 分类: 通达信 | 标签: |字号大中小 订阅
百万冲浪 Var1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100; Var2:=REVERSE(Var1); Var3:=SMA(Var1,9,1); K: SMA(Var3,3,1); D: SMA(K,4,1); Var4:=CROSS(D,K) AND D>80; Var5:=1/SUM(1-CLOSE/REF(CLOSE,1),7)/100*VOL/WINNER(CLOSE)*OPEN; Var6:=COUNT(CLOSE>OPEN,20); Var7:=COUNT(CLOSE,30); Var8:=IF(Var6>Var7,CLOSE,HIGH); Var9:=EMA(Var8,13); VarA:=CLOSE-Var9; VarB:=EMA(VarA,21); VarC:=(HHV(CLOSE,21)-LLV(CLOSE,21))/SUM(ABS(CLOSE-REF(CLOSE,1)),21); VarD:=VarC*(-1);
{参数:N 最小1 最大20 缺省7
参数:N1 最小5 最大30 缺省21}
买出之弹:IF(CROSS(VarB,VarC),0+60,0),stick,linethick3; VarE:=MA(WINNER(CLOSE),18)*100; 买入飞弹:CROSS(VarE,2.5)*(-60),stick,linethick3; VarF:=REF(LOW,1)*0.9; Var10:=LOW*0.9; Var11:=(Var10*VOL+VarF*(CAPITAL-VOL))/CAPITAL; Var12:=EMA(Var11,30); Var13:=CLOSE-REF(CLOSE,1); Var14:=MAX(Var13,0); Var15:=ABS(Var13); Var16:=SMA(Var14,7,1)/SMA(Var15,7,1)*100; Var17:=SMA(Var14,13,1)/SMA(Var15,13,1)*100; Var18:=BARSCOUNT(CLOSE); Var19:=SMA(MAX(Var13,0),6,1)/SMA(ABS(Var13),6,1)*100; Var1A:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100; Var1B:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100; Var1C:=SMA((SMA(Var1B,4,1)-50)*2,3,1); Var1D:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; Var1E:=SMA(Var1D,4,1); Var1F:=SMA(Var1E,3,1); Var20:=(HHV(HIGH,30)-CLOSE)/CLOSE*100; Var21:=Var19<=25 AND Var1A<-95 AND Var20>20 AND Var1C<-30 AND Var1F<30 AND Var12-CLOSE>=-0.25 AND Var16<22 AND Var17<28 AND Var18>50; 导弹发射:if(CROSS(Var21,0.5) AND COUNT(Var21=1,10)=1,60,1),COLORYELLOW,stick,linethick3;
百万导弹 参数:N 最大 5 最小27 缺省27
参数M1 最大 2 最小 4 缺省3
参数M2 最大 2 最小 4 缺省3
参数M3 最大 3 最小 6 缺省4
Var1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; Var2:=REVERSE(Var1); Var3:=SMA(Var1,M1,1); Var4:=SMA(Var2,M1,1); Var5:=3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); Var6:=3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); Var7:=100-Var6; Var8:=100-Var5; Var9:=REF(CLOSE,1); VarA:=100*VOL/CAPITAL*10; FORCAST((-1)*Var7,21); -100,POINTDOT; 0,POINTDOT; -80,POINTDOT; VarC:=MA(WINNER(CLOSE),18)*100; VarD:=REF(LOW,1)*0.9; VarE:=LOW*0.9; VarF:=(VarE*VOL+VarD*(CAPITAL-VOL))/CAPITAL; Var10:=EMA(VarF,30); Var11:=CLOSE-REF(CLOSE,1); Var12:=MAX(Var11,0); Var13:=ABS(Var11); Var14:=SMA(Var12,7,1)/SMA(Var13,7,1)*100; Var15:=SMA(Var12,13,1)/SMA(Var13,13,1)*100; Var16:=BARSCOUNT(CLOSE); Var17:=SMA(MAX(Var11,0),6,1)/SMA(ABS(Var11),6,1)*100; Var18:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100; Var19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100; Var1A:=SMA((SMA(Var19,4,1)-50)*2,3,1); Var1B:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; Var1C:=SMA(Var1B,4,1); Var1D:=SMA(Var1C,3,1); Var1E:=(HHV(HIGH,30)-CLOSE)/CLOSE*100; Var1F:=Var17<=25 AND Var18<-95 AND Var1E>20 AND Var1A<-30 AND Var1D<30 AND Var10-CLOSE>=-0.25 AND Var14<22 AND Var15<28 AND Var16>50; if(Var8<REF(Var7,1),(-1)*Var8,Var7),stick,linethick2 ,COLORRED;Var7,stick,linethick2 ,COLOR000000;
if(Var8>=REF(Var7,1),(-1)*Var8,Var7),stick,linethick2 ,COLORGREEN;Var7,stick,linethick2 ,COLOR000000; if(Var1F,45,0),stick,linethick4,COLORRED ;0,stick,linethick4,COLOR000000 ; K: SMA(Var3,M2,1),LINETHICK2 ,COLORRED; D: SMA(K,M3,1), , COLORYELLOW; VarB:=MA(Var7,3); if((-1)*Var8>VarB,(-1)*Var8,(-1)*Var7),stick,linethick2 ,COLORYELLOW ;(-1)*Var7,stick,linethick2 ,COLOR000000;
W: SMA(Var4,M2,1),LINETHICK2 ,colorf000ff ; R: SMA(W,M3,1),LINETHICK1 ,color00ff00 ; CROSS(VarC,2.5)*(-95),STICK,LINETHICK4 ,COLORYELLOW; {DRAWTEXT(CROSS(Var1F,0.5) AND COUNT(Var1F=1,10)=1,20,'百万导弹'), , COLORWHITE;}
百万买卖{n5 20 27m1 2 4 3 m2 2 4 3 m3 3 6 3} Var1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; Var2:=REVERSE(Var1); Var3:=SMA(Var1,M1,1); K: SMA(Var3,M2,1),colorred ,linethick2 ; D: SMA(K,M3,1),coloryellow ,linethick2 ; YY: 0, ,colorgreen; HH: 80, , colorred; BB: 15, , colorblue; IF(CROSS(K,BB),50,0), coloryellow ,linethick2; IF(CROSS(K,D) AND K<40,35,0),colorred ,linethick2 ; IF(CROSS(D,K) AND D>75,95,0),colorgreen ,linethick2 ;
百万测底
趋势线: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORWHITE,LINETHICK2; 见底信号: 10,COLORCYAN; 买点准备: IF(趋势线<=10,50,0),COLORYELLOW; 买入时间: IF(CROSS(趋势线,见底信号),100,0),COLORRED;
|