三个公式原码了附图
-
相关简介:{易昊羲主图} CG:MA(CLOSE,2{17}),colorwhite; FL3:HHV(CG,2{9}),COLOR00adff,linethick1; FS3:IF(CGFL3,(CG-(FL3-CG)),FL3),COLORFFA900,linethick1; BOLL : MA(CLOSE,26){,POINTDOT},COLORWHITE,LINETHICK1; 上: BOLL +2*STD(CLOSE,26){,POINTDOT},COLORGREEN,LINETHICK1; 下
-
文章来源:股海网作者:股海网发布时间:2015-01-07浏览次数:
{易昊羲主图}
CG:MA(CLOSE,2{17}),colorwhite;
FL3:HHV(CG,2{9}),COLOR00adff,linethick1;
FS3:IF(CG<FL3,(CG-(FL3-CG)),FL3),COLORFFA900,linethick1;
BOLL : MA(CLOSE,26){,POINTDOT},COLORWHITE,LINETHICK1;
上: BOLL +2*STD(CLOSE,26){,POINTDOT},COLORGREEN,LINETHICK1;
下: BOLL -2*STD(CLOSE,26){,POINTDOT},COLORRED,LINETHICK1;
var31:=hhvbars(zig(3, 19)>ref(zig(3,19),1)
and ref(zig(3,19), 1)<ref(zig(3,19), 2),0);
stickline(var31=2,l*0.95,l*0.98,8,0),color0000ff;
drawtext(var31=2,l*0.95,'3天'),coloryellow;
stickline(var31=4,h*1.05,h*1.02,8,0),color9966ff;
drawtext(var31=4,h*1.06,'5天'),coloryellow;
stickline(var31=7,l*0.95,l*0.98,8,0),color00ffff;
drawtext(var31=7,l*0.95,'8天'),coloryellow;
stickline(var31=12,h*1.05,h*1.02,8,0),colorff33ff;
drawtext(var31=12,h*1.06,'13天'),coloryellow;
stickline(var31=20,l*0.95,l*0.98,8,0),color0066ff;
drawtext(var31=20,l*0.95,'21天'),coloryellow;
stickline(var31=33,h*1.05,h*1.02,8,0),colorffff00;
drawtext(var31=33,h*1.06,'34天'),coloryellow;
stickline(var31=54,l*0.95,l*0.98,8,0),color006600;
drawtext(var31=54,l*0.95,'55天'),coloryellow;
stickline(var31=88,h*1.05,h*1.02,8,0),color00ff00;
drawtext(var31=88,h*1.06,'89天'),coloryellow;
stickline(var31=143,l*0.95,l*0.98,8,0),colorccffff;
drawtext(var31=143,l*0.95,'144天'),coloryellow;
stickline(var31=232 ,h*1.05,h*1.02,8,0),colorff0033;
drawtext(var31=232,h*1.06,'233天'),coloryellow;
stickline(var31=376,l*0.95,l*0.98,8,0),colorff9966;
drawtext(var31=376,l*0.95,'377天'),coloryellow;
{价量顶底}
up:=( c > o or c > ref(c,1)) and v > ref(v,1);
aa:=count(up,3)=3;
bb:=llv(l,5)=llv(l,120);
cc:=c > ma(c,3);
llt:=aa and bb and cc;
v1:=llv(low,10);
v2:=hhv(h,25);
短线卖出:3.2,colorff8000;
高位卖出:3.5,colorgreen;
价位线:ema((c-v1)/(v2-v1)*4,4);
超卖区域:0.3,colorwhite;
Var2:=IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16)<=0.85 AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,50,0);
Var3:=(-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100;
Var4:=(-100)*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100;
Var5:=(-100)*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100;
Var6:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;
Var7:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;
Var8:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;
Var9:=(Var3+Var4+Var5+Var6+Var7+Var8)/6;
VarA:=EMA(Var9,3);
VarB:=ABS(Var6-Var8);
VarC:=(Var9+VarB)/2;
VarD:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;
VarE:=VarD+VarC;
VarF:=IF(Var2>0 AND VarE<0,200,0);
Var10:=IF(VarC<0 AND CLOSE=LLV(CLOSE,5) AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,-50,0);
Var11:=IF(VarE<0 AND Var10=-50,100,0);
Var12:=MA(CLOSE,3);
Var13:=REF(CLOSE,2)*0.865;
Var14:=REF(CLOSE,13)*0.772;
Var15:=MIN(Var13,Var14);
Var16:=100*VOL/CAPITAL;
Var17:=MA(CLOSE,13);
Var18:=IF((CLOSE-Var15)/CLOSE<0.03 AND SUM(Var16,5)/5<1.8,1,0);
Var19:=IF(Var18>0 AND (Var10<0 OR Var2>0),100,0);
Var1B:=IF(VarF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902 OR (VarF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0) AND (Var10<0 OR Var2>0) AND Var19<10,50,0);
Var1C:=(VarF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0) AND (Var10<0 OR Var2>0);
Var1D:=VarF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902;
大底区域: (Var1C OR Var1D )*3,linethick2,coloryellow;
K1:=SUM(IF(CLOSE>=REF(CLOSE,1),VOL,0),8);
K2:=SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),8);
KC:=(EMA(VOL,3)-LLV(VOL,50))/(HHV(VOL,50)-LLV(VOL,50))*100;
KH:=(EMA(EMA(KC,4),16)+EMA(K1/(K1+K2)*100,7))/4;
STICKLINE(CROSS(KH,30),0,3,4,0),COLORGREEN;
STICKLINE(CROSS(30,KH),0,2.5,4,0),COLOR6783DB;
DRAWTEXT(CROSS(KH,30),3,'量顶A'),COLORGREEN,ALIGN1;
DRAWTEXT(CROSS(30,KH),2.5,'量顶B'),COLOR6783DB,ALIGN1;
LC:=REF(CLOSE,1);
Varb:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
Varc:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
Vard:=BARSCOUNT(CLOSE);
Vare:=(Varb< 20 AND Varc< 25 AND Vard> 50);
cci:="cci"(14);
a:=ref(c,1);
rsi:=sma(max(c-a,0),6,1)/sma(abs(c-a),6,1)*100;
a1:=c-ma(c,5)/ma(c,5)*100<1;
a2:=c-ma(c,13)/ma(c,13)*100<-10;
a3:=c-ma(c,34)/ma(c,34)*100<-15;
a4:=rsi<18;
a5:=cci<-120;
a6:=EMA(IF(L<= LLV(l,99),SMA(ABS(L-REF(L,1)),99,1)/SMA(MAX(L-REF(l,1),0),99,1),0),3);
a7:=(a1 and a2 and a3 and a4 and a5 and a6>0);
共振底:(a7 and Vare)*2,colorred,LINETHICK2 ;
{合买分卖----这是坛子里一个朋友发的原码,我改为大智慧2的,一并谢谢那位朋友。}
M1:MA(C,5);
BB:HHV(M1,3);
PARTLINE(M1,C>REF(M1,1) ),COLORRED,LINETHICK3;
PARTLINE(M1,C<REF(M1,1)), COLORGREEN,LINETHICK2;