分享

指标公式源码 - 黄金白银/顶底极品 (大盘专用)/英雄无敌/长线牛股/短线之星/ - 都...

 mutourengs 2011-04-26

120、黄金白银

参数描述: 跌速(-50,0,-30)涨(-5,10,8)统计(1,20,10)备用(-5,10,3)

Var2:=(CLOSE-REF(OPEN,19))/REF(OPEN,19)*100;

Var3:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;

Var4:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;

Var5:=LWINNER(100,CLOSE)*100;

Var6:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;

Var7:=SMA(Var6,3,1);

Var8:=SMA(Var7,3,1);

Var9:=3*Var7-2*Var8;

VarA:=COUNT(CROSS(Var7,Var8) AND Var8<8 AND Var3>涨 AND Var4<跌速,统计);

VarA OR VarA AND Var3<备用;

121、成本箱体的原码

{n 21 m 13 p 2}

a:=(3*c+l+o+h)/6;

多:(20*a+19*ref(a,1)+18*ref(a,2)+17*ref(a,3)+16*ref(a,4)+15*ref(a,5)+14*ref(a,6)

+13*ref(a,7)+12*ref(a,8)+11*ref(a,9)+10*ref(a,10)+9*ref(a,11)+8*ref(a,12)

+7*ref(a,13)+6*ref(a,14)+5*ref(a,15)+4*ref(a,16)+3*ref(a,17)+2*ref(a,18)+

ref(a,20))/210;

空:ma(多,m);

MID : MA(CLOSE,N);

UPPER: MID + P*STD(CLOSE,N);

LOWER: MID - P*STD(CLOSE,N);

aa:=if(c>=o,(c-o)/4,0);

STICKLINE(c>=o,o,o+aa,7,0),colorred;

STICKLINE(c>=o,o+aa,o+2*aa,7,0),colorred;

STICKLINE(c>=o,o+2*aa,o+3*aa,7,0),colorred;

STICKLINE(c>=o,o+3*aa,c,7,0),colorred;

VarA:=IF(CLOSE>150,91.3,0.913);

箱体下沿:INTPART(CLOSE/VarA )*VarA,pointdot,linethick2,colorgreen;

箱体上沿:箱体下沿+VarA,pointdot,linethick2,coloryellow ;

箱体中线:(箱体下沿+箱体上沿)/2,pointdot,colorwhite,linethick2;

122、顶底极品 (大盘专用)  

参数描述: N(1,100,18)M(1,100,14)I(1,100,26)

Var1:="AA00$VOL"*"AA00$CLOSE";

Var2:=EMA(Var1,5)/EMA("AA00$VOL",5);

Var3:=("AA00$CLOSE"-Var2)/Var2*100;

Var4:=Var3<=-1.5 AND Var3>-100;

Var5:=SUM(Var4>0,)/SUM(Var4=0,);

Var6:=Var5<5 AND Var5>=0.25;

Var7:=(LOW+HIGH+CLOSE)/3;

Var8:=(Var7-MA(Var7,))/(0.015*AVEDEV(Var7,));

Var9:=EMA(Var8,3);

VarA:=(HIGH+LOW+CLOSE)/3;

VarB:=SUM(MAX(0,HIGH-REF(VarA,1)),)/SUM(MAX(0,REF(VarA,1)-LOW),)*100;

VarC:=REF(MA(VarB,3),2.2);

VarD:=REF(MA(VarB,13),6.2);

VarE:=REF(MA(VarB,89),36.6);

VarF:=CROSS(VarC,VarB) AND VarB>150;

DRAWTEXT(Var6 AND CROSS(Var8,Var9),LOW,'抄底');

DRAWTEXT(VarF,HIGH,'逃顶');

本公式用于大盘准确率更高,也适用于个股.希望对大家有所帮助.

123、英雄无敌

{参数描述: N(1,100,3)N1(5,5,5)N2(5,5,5)N3(12,12,12)}

Var1:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);

Var2:=Var1+Var1*34/100;

Var3:=LOW;

Var4:=REF(LOW,1);

Var5:=SMA(ABS(Var3-Var4),3,1)/SMA(MAX(Var3-Var4,0),N,1)*100;

Var6:=MA(IF(CLOSE*1.68<="CYC@CYCMAX",Var5*10,Var5/10),N);

Var7:=LLV(LOW,30);

Var8:=HHV(Var6,30);

Var9:=MA(IF(LOW<=Var7,(Var6+Var8*2)/2,0),N);

VarA:=(2*CLOSE+HIGH+LOW)/4;

VarB:=LLV(LOW,34);

VarC:=HHV(HIGH,34);

VarD:=EMA((VarA-VarB)/(VarC-VarB)*100,6);

VarE:=EMA(0.667*REF(VarD,1)+0.333*VarD,4);

VarF:=LLV(LOW,120);

Var10:=HHV(HIGH,120);

Var11:=Var10-VarF;

DRAWTEXT(IF(COUNT(CLOSE0.3 AND COUNT(VarD>VarE,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0) OR Var9>40000,LOW,'★注意买进'),colorred , ;

Var12:=MA(CLOSE,5);

英雄无敌A: MA(CLOSE,10);

Var13:=MA(CLOSE,30);

Var14:=MA(CLOSE,60);

英雄无敌B: (EMA(CLOSE,N1)*7+EMA(CLOSE,N2)*3)/10;

英雄无敌C: DMA(EMA(CLOSE,N3),SUM(VOL/CAPITAL,5)/3);

Var15:=REF(CLOSE,1);

Var16:=SMA(MAX(CLOSE-Var15,0),6,1)/SMA(ABS(CLOSE-Var15),6,1)*100;

Var17:=REF(CLOSE,1);

Var18:=SMA(MAX(CLOSE-Var17,0),6,1)/SMA(ABS(CLOSE-Var17),6,1)*100;

DRAWTEXT(CROSS(84,Var16) AND CROSS(84,Var18),HIGH,'☆注意卖出'),colorgreen , ;

STICKLINE(英雄无敌B>英雄无敌A,英雄无敌A,英雄无敌B,0.1,1);

STICKLINE(英雄无敌B<英雄无敌A,英雄无敌A,英雄无敌B,0.1,1);

124、光棍翻脸

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*CLOSE+HIGH+LOW)/4;

Var7:=SMA(Var3/Var1*100,3,1);

Var8:=LLV(LOW,34);

Var9:=SMA(Var7,3,1)-SMA(Var4,9,1);

VarA:=IF(Var9>100,Var9-100,0);

VarB:=HHV(HIGH,34);

VarC:=EMA((Var6-Var8)/(VarB-Var8)*100,8);

VarD:=EMA(VarC,5);

频约娇媚: STICKLINE(VarC>0 AND VarC-VarD>=0,79,80,6,0),colorgreen;

连得龙子: STICKLINE(VarC>0 AND VarC-VarD<0,79,80,6,1),colorred;

只赚不赔: STICKLINE(VarC>0 AND VarC-VarD>=0,19,20,6,0),colorgreen;

STICKLINE(VarC>0 AND VarC-VarD>=0,49,50,6,0),colorcyan;

STICKLINE(VarC>0 AND VarC-VarD<0,49,50,6,1),colorred;

吃么香香: STICKLINE(VarC>0 AND VarC-VarD<0,19,20,6,1),colorred;

游戏玩法一进一出: STICKLINE(VarC-VarD>0,VarC,VarD,8,1),colorcyan;

延年益寿妙趣横生: STICKLINE(VarC-VarD<0,VarC,VarD,8,1),colorred;

126、过山车

Var0:=SMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30)),3,1);

Var1:SMA(Var0,3,1)*100,POINTDOT,LINETHICK3;

Var1;

Var2:=MA(Var1,7);

Var2-3, COLORMAGENTA;

Var2+3, COLORMAGENTA;

STICKLINE(Var2>REF(Var2, 1), Var2, Var2, 8, 1),LINETHICK2, COLORRED;

STICKLINE(Var2<ref(var2, 1),="" var2,="" 8,="" 1),linethick2,="" colorgreen;

STICKLINE(Var2=REF(Var2, 1), Var2, Var2, 8, 1),LINETHICK3, COLORCYAN

127、控盘力度

Var3:=(CLOSE+HIGH+LOW)/3;

Var4:=EMA(EMA(EMA(Var3,1),13),21);

控盘度:(Var4-REF(Var4,1))/REF(Var4,1)*100,COLORSTICK,LINETHICK3;

强弱分界:0,COLORYELLOW,LINETHICK3;

Var5:=LLV(LOW,33);

Var6:=HHV(HIGH,17);

Var7:=EMA((CLOSE-Var5)/(Var6-Var5)*100,20)*0.998;

Var8:=EMA(0.667*REF(Var7,1)+0.333*Var7,1);

Var9:=EMA(100*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,33)),20);

VarA:=EMA(Var9,1);

VarB:=VOL/CAPITAL*100;

VarC:=SUM(VarB,5)>=3;

VarD:=VarC/REF(VarB,10)>=2;

VarE:=HHV(CLOSE,5);

VarF:=VarE/REF(CLOSE,5)>=1.01;

Var10:=VarA > 20;

Var11:=HIGH/REF(LOW,20) < 1.2;

Var12:=WINNER(CLOSE)*100;

Var13:=VarC AND Var10 AND VarD AND Var11 AND VarF;

Var14:=FILTER(Var13,20);

DRAWTEXT(Var14,-0.15,'有主力资金活动迹象!!!'),linethick3,colormagenta;

Var15:=EMA(WINNER(CLOSE),20);

{Var16:=Var15 > 0.85 AND CLOSESUM(VOL,10)/CAPITAL > 0.2 OR SUM(VOL,3)/CAPITAL > 0.1 OR CLOSE/REF(CLOSE,20)>=1.9;}

Var16:=Var15 > 0.85 AND CLOSE 0.2 OR SUM(VOL,3)/CAPITAL > 0.1) OR CLOSE/REF(CLOSE,20)>=1.9;

DRAWTEXT(Var16,0.5,'主力出货迹象!!!'),COLORYELLOW,LINETHICK3;

用法:主要监控主力低位吸筹,出现信号后股价要止跌。

控盘度刚开始变红,就是说主力已控盘开始要拉升,盘中回抽

打压定位洗盘,配合安全度、个股位置或致命阻击或机动阻击

(具体可参阅只铁《铁血短线》)。成功率极高,大牛股无一漏

网。

你买入股价可能是主力底仓价,但高位当心主力出货。

128、出入财神  

{n1,1,60,3 n2,1,90,10 m1,1,90,5 m2,1,90,20}

LC:= REF(CLOSE,1);

RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;

RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;

买:EMA(RSI1,M1),COLORRED,linethick2;

卖:EMA(RSI2,M2),linethick2,COLORGREEN;

Var1:=REF(CLOSE,1);

Var2:=SMA(MAX(CLOSE-Var1,0),6,1)/SMA(ABS(CLOSE-Var1),6,1)*100;

好财神:(CROSS(80,Var2)),colormagenta,linethick2;

drawicon(好财神>0,50,2);

drawtext(好财神>0,36,'财神跑')colorgreen;

Var3:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;

Var4:=SMA(SMA(Var3,3,1),3,1);

Var5:=EMA(Var4,5);

var6:= Var4,colorgreen;

var7:=3*Var4-2*Var5,colorred;

恶财神:CROSS(var7,Var4),coloryellow,stick;

DRAWTEXT(CROSS(var7,Var4) AND var7<21,Var4,'财神到'),coloryellow;

drawicon(CROSS(var7,Var4)>0 and var7<21,var4,0);

分界:45,colorffffff;

顶:90,coloryellow;linethick2;

129、长线牛股  

{p1,1,100,12 p2,1,100,50}

Var1:=EMA(CLOSE,P1);

Var2:=EMA(CLOSE,P2);

长线牛股: (CLOSE-Var1)*2/(P1+1)+Var1, ,  COLORRED;

Var3:=(CLOSE-Var2)*2/(P2+1)+Var2;

DRAWICON(FILTER(CROSS(长线牛股,Var3),20),长线牛股,1);

DRAWICON(FILTER(CROSS(Var3,长线牛股),20),长线牛股,2);

洼地: IF(长线牛股>Var3,Var3,长线牛股), , COLORGREEN;

生命线: Var3, ,  COLORYELLOW;

130、出水芙蓉

Var1:=REF(CLOSE,1);

Var2:=SMA(MAX(CLOSE-Var1,0),6,1)/SMA(ABS(CLOSE-Var1),6,1)*100;

DRAWTEXT(Var2>92 AND REF(Var2,1)<92,100,'☆胜利!'), ,;

Var3:=EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16);

Var4:=1/WINNER(CLOSE);

Var5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;

Var6:=100-ABS(Var5);

Var7:=(CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100;

Var8:=SMA(Var7,20,1);

Var9:=SMA(Var8,15,1);

VarA:=100-3*Var8+2*Var9;

VarB:=((EMA(IF(VarA>REF(VarA,1),VarA,VarA-3),3)-50)*(-1)*2/2+50)/10;

VarC:=EMA(AMOUNT,13)/EMA(VOL,13);

VarD:=(VarC/REF(VarC,1)-1)*100;

VarE:=VOL/CAPITAL*100;

VarF:=(HIGH-LOW)/((HIGH+LOW)/2)*100;

Var10:=(VarB+VarE)*VarF*VarD;

Var11:=VOL/CAPITAL;

Var12:=VOL/700000000;

Var13:=IF(Var11=0,Var12,Var11);

Var14:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);

Var15:=2.5*MAX(Var13,Var14);

Var16:=DMA(CLOSE,Var15);

Var17:=SMA(20*(Var16/REF(Var16,1)-1),2,1);

Var18:=EMA(Var17,2);

Var19:=0.17;

Var1A:=CLOSE>=REF(CLOSE,1);

Var1B:=VOL/CAPITAL;

Var1C:=VOL/700000000;

Var1D:=IF(Var1B=0,Var1C,Var1B);

Var1E:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);

Var1F:=2.5*MAX(Var1D,Var1E);

Var20:=DMA(CLOSE,Var1F);

Var21:=SMA(20*(Var20/REF(Var20,1)-1),2,1);

Var22:=EMA(Var21,2);

介入: IF(Var17>Var19 AND Var18>=0.005 AND Var1A,70,0),stick ,linethick3,coloryellow ;

买入: IF(Var10>100 AND Var10<200,130,0),stick ,linethick3,colormagenta ;

加码: IF(Var10>200,200,0),color3366cc ,stick,linethick3 ;

止盈: IF(Var3>1.15 AND Var3<ref(var3,1),-200,0),colorff6633 ,="" ;

卖出: IF(Var3>1.1 AND Var3<1.15 AND Var3<ref(var3,1),-100,0),colorgreen ,,linethick3="" ;

STICKLINE(Var22>=0.003,-0.05,0.05,10,0),linethick5 ,colorred ;

STICKLINE(BETWEEN(Var22,0.003,-0.003),-0.05,0.05,10,0),linethick5,colorwhite ;

STICKLINE(Var22<=-0.003,-0.05,0.05,10,0),linethick5 ,colorgreen;

131、短线之星

Var1:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));

Var2:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));

Var3:=100-MA(100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),28);

买入信号: IF(Var2<ma(var3,6),ma(var3,6),var2),colorred ;

卖出信号: IF(Var1>MA(Var3,6),MA(Var3,6),Var1),colorgreen ;

强弱线: MA(Var3,6),coloryellow ,linethick2 ;

132、小天雷达.

{参数 n1→最小:5 、最大:100、缺省:(随便)}}

var0:=date>970101; {过滤97年以前的显示}

var1:=(close-ref(close,1))/ref(close,1)*100;{个股涨幅}

var2:=(indexc-ref(indexc,1))/ref(indexc,1)*100;{大盘涨幅}

var3:=ema(sum(var1,n1),3);{3日内var1的n1日和的平滑平均}

var4:=ema(sum(var2,n1),3);{3日内var2的n1日和的平滑平均}

var5:=(var3-var4)*var0;

小天雷达:var5,colorstick;

20,coloraaaaaa;

-20,coloraaaaaa;

35,coloraaaaaa;

-35,coloraaaaaa;

DRAWICON(var5<-20 and FILTER(var5>ref(var5,2),7),-20,4);

VERTLINE(var5<-20 and FILTER(var5>ref(var5,2),7)),colorred;

DRAWTEXT(var5<-20 and FILTER(var5>ref(var5,2),7),-24,'参考价'),colorffffff;

DRAWNUMBER(var5<-20 and FILTER(var5>ref(var5,2),7),-30,ref(close,1)*1.015,2),colorffffff;

DRAWICON(var5>20 and FILTER(var5< ref(var5,2),7),24,5);

VERTLINE(var5>20 and FILTER(var5< ref(var5,2),7)),colorgreen;

DRAWTEXT(var5>20 and FILTER(var5<ref(var5,2),7),28,'参考价'),colorgreen;< p="">

DRAWNUMBER(var5>20 and FILTER(var5< ref(var5,2),7),32,ref(close,1)*0.985,2);

STICKLINE(var5<-20 and FILTER(var5>ref(var5,2),7),0,4,10,0),colorred;

STICKLINE(var5>20 and FILTER(var5<ref(var5,2),7),0,-4,10,0),colorgreen;< p="">

133、阶梯K线

M5: MA(CLOSE,5);

M10: MA(CLOSE,10);

M20: MA(CLOSE,20);

M60: MA(CLOSE,60);

Var2:=(2*CLOSE+HIGH+LOW+OPEN)/5;

Var3:=EMA(EMA(EMA(Var2,4),4),4);

Var4:=(Var3-REF(Var3,1))/REF(Var3,1)*100;

Var5:=MA(Var4,2);

Var6:=MA(Var4,1);

Var7:=CROSS(Var6,Var5) AND Var6<0;

Var8:=CROSS(Var6,0);

Var9:=CROSS(Var6,Var5) AND Var6>0;

VarA:=Var7;

VarB:=Var8 OR Var9;

VarC:=CROSS(Var5,Var6);

阶: IF(BARSLAST(LLV(LOW,3)< REF(LLV(LOW,3),1))>1,LLV(LLV(LOW,3),BARSLAST(LLV(LOW,3)< REF(LLV(LOW,3),1))),LLV(LOW,3)), , ;

测: IF(阶+阶*(BARSLAST(LLV(LOW,3)< REF(LLV(LOW,3),1))-1)< REF(阶+阶*(BARSLAST(LLV(LOW,3)< REF(LLV(LOW,3),1))-1),1),MA(CLOSE,5),阶+阶*(BARSLAST(LLV(LOW,3)< REF(LLV(LOW,3),1))-1)/100), , ;

VarD:=EMA((SUM(SGN(CLOSE-REF(CLOSE,1)),0)-LLV(SUM(SGN(CLOSE-REF(CLOSE,1)),0),10))/(HHV(SUM(SGN(CLOSE-REF(CLOSE,1)),0),10)-LLV(SUM(SGN(CLOSE-REF(CLOSE,1)),0),10))*100,10);

VarE:=(2*CLOSE+HIGH+LOW+OPEN)/5;

VarF:=EMA(EMA(EMA(Var2,4),4),4);

Var10:=(Var3-REF(Var3,1))/REF(Var3,1)*100;

Var11:=MA(Var4,2);

Var12:=MA(Var4,1);

Var13:=CROSS(Var6,Var5) AND Var6<0;

Var14:=CROSS(Var6,0);

Var15:=CROSS(Var6,Var5) AND Var6>0;

Var16:=EMA((SQRT(SQRT(OPEN*CLOSE*HIGH*LOW))-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3);

Var17:=SQRT(VarD*Var16);

STICKLINE(Var17>REF(Var17,1),LLV(LOW,30),LLV(LOW,30)+VOL/POW(2,V0L),2,0), ,  COLORRED;

STICKLINE(Var17< REF(Var17,1),LLV(LOW,30),LLV(LOW,30)+VOL/POW(2,V0L),2,1), , COLORCYAN;

ZDJ: LLV(LOW,30);

ZIG(3,5);

调整指标参数"VOL"使成交量能的高度与图形更好的配合!

成交能量色彩的含义:

红色竖线:买入-上涨;   灰色竖线:下跌-抛出!阶梯橙色线为上涨构筑一个上升三角,上升对角线完成之日就是调整的开始之时! 配合其他的博弈技术指标可以获得更好的分析效果!

注: 成交量能的数值不是实际意义上的成交量数值,仅是成交量的能量图示!

134、博弈KDJ

Var1:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));

Var2:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));

Var3:=SUM(Var1,5);

Var4:=SUM(Var2,5);

Var5:=IF(Var3>Var4,(Var3-Var4)/Var3,IF(Var3=Var4,0,(Var3-Var4)/Var4));

Var6:=MA(Var5,5);

Var8:=HHV(CLOSE,2);

Var9:=BARSLAST(Var8<ref(var8,2));< p="">

VarA:=IF(Var9>=1,LLV(Var8,Var9),LOW);

VarB:=VarA+VarA*Var9*0.5/100;

VarC:=IF(VarB<ref(varb,1),ma(low,3),varb);< p="">

VarD:=VarA+VarA*(Var9-1)*1.618/100;

成交量能: VOL/POW(2,V0L), VOLSTICK;

VarE:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;

K: SMA(VarE,M1,1);

D: SMA(K,M2,1);

J: 3*K-2*D, , COLORBLUE;

VarF:=(2*CLOSE+HIGH+LOW+OPEN)/5;

Var10:=EMA(EMA(EMA(VarF,4),4),4);

Var11:=(Var10-REF(Var10,1))/REF(Var10,1)*100;

Var12:=MA(Var11,2);

Var13:=MA(Var11,1);

Var14:=CROSS(Var13,Var12) AND Var13<0;

Var15:=CROSS(Var13,0);

Var16:=CROSS(Var13,Var12) AND Var13>0;

Var17:=Var14;

Var18:=Var15 OR Var16;

Var19:=CROSS(Var12,Var13);

Var1A:=EMA((SUM(SGN(CLOSE-REF(CLOSE,1)),0)-LLV(SUM(SGN(CLOSE-REF(CLOSE,1)),0),10))/(HHV(SUM(SGN(CLOSE-REF(CLOSE,1)),0),10)-LLV(SUM(SGN(CLOSE-REF(CLOSE,1)),0),10))*100,10);

Var1B:=SUM(HIGH-OPEN,N)/SUM(OPEN-LOW,N)*100;

Var1C:=SUM(MAX(0,HIGH-REF(CLOSE,1)),N)/SUM(MAX(0,REF(CLOSE,1)-LOW),N)*100;

Var1D:=EMA((SQRT(SQRT(OPEN*CLOSE*HIGH*LOW))-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3);

Var1E:=SUM(HIGH-OPEN,N)/SUM(OPEN-LOW,N)*100;

Var1F:=SUM(MAX(0,HIGH-REF(CLOSE,1)),N)/SUM(MAX(0,REF(CLOSE,1)-LOW),N)*100;

Var20:=SQRT(Var1A*Var1D);

Var21:=(2*CLOSE+HIGH+LOW+OPEN)/5;

Var22:=EMA(EMA(EMA(VarF,4),4),4);

Var23:=(Var10-REF(Var10,1))/REF(Var10,1)*100;

Var24:=MA(Var11,2);

Var25:=MA(Var11,1);

Var26:=CROSS(Var13,Var12) AND Var13<0;

Var27:=CROSS(Var13,0);

Var28:=CROSS(Var13,Var12) AND Var13>0;

Var29:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;

STICKLINE(Var20>REF(Var20,1),Var20,REF(Var20,2),4,0), , COLORRED;

STICKLINE(Var20<ref(var20,1),var20,ref(var20,2),4,1), ,="" colorgreen;

警示│: STICKLINE(Var20>REF(Var20,1) AND ISDOWN=1 AND J>K,J,0,0,0), , ;

Var2A:=(2*CLOSE+HIGH+LOW+OPEN)/5;

Var2B:=EMA(EMA(EMA(VarF,4),4),4);

Var2C:=(Var10-REF(Var10,1))/REF(Var10,1)*100;

Var2D:=MA(Var11,2);

Var2E:=MA(Var11,1);

Var2F:=CROSS(Var13,Var12) AND Var13<0;

Var30:=CROSS(Var13,0);

Var31:=CROSS(Var13,Var12) AND Var13>0;

指标参数值的含义:N、M1、M2调整KDJ线形态。

"VOL"调整成交量能图形(高度)与KDJ线的匹配状态。

红色趋势竖块:上涨 - 买入、持股 !

绿色趋势竖块:下跌 - 抛出或减仓 !

出现警示信号时说明多空较量较为激烈,更要关注图形状态,及时作出正确判断 !与其它博弈公式配合使用效果更佳 !!!

135、博弈-MACD

DIFF: EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);

DEA: EMA(DIFF,M);

MACD: 2*(DIFF-DEA), COLORSTICK;

Var2:=BARSLAST(EMA(CLOSE,N)<ref(ema(close,n),1));< p="">

Var3:=IF(Var2>0,LLV(LLV(LOW,N),Var2),LLV(LOW,N));

Var4:=IF(Var2>0,LLV(LLV(LOW,N),Var2),LLV(LOW,N));

Var5:=(2*CLOSE+HIGH+LOW+OPEN)/5;

Var6:=EMA(EMA(EMA(Var5,4),4),4);

Var7:=(Var6-REF(Var6,1))/REF(Var6,1)*100;

Var8:=MA(Var7,2);

Var9:=MA(Var7,1);

VarA:=CROSS(Var9,Var8) AND Var9<0;

VarB:=CROSS(Var9,0);

VarC:=CROSS(Var9,Var8) AND Var9>0;

VarD:=Var3+Var3*Var2*2;

VarE:=IF(VarD<ref(vard,1),ma(close,5),vard);< p="">

VarF:=BARSLAST(EMA(CLOSE,N)>REF(EMA(CLOSE,N),1));

Var10:=IF(VarF>0,HHV(HHV(HIGH,N),VarF),HHV(HIGH,N));

Var11:=IF(VarF>0,HHV(HHV(HIGH,N),VarF),HHV(HIGH,N));

Var12:=(2*CLOSE+HIGH+LOW+OPEN)/5;

Var13:=EMA(EMA(EMA(Var5,4),4),4);

Var14:=(Var6-REF(Var6,1))/REF(Var6,1)*100;

Var15:=MA(Var7,2);

Var16:=MA(Var7,1);

Var17:=CROSS(Var9,Var8) AND Var9<0;

Var18:=CROSS(Var9,0);

Var19:=CROSS(Var9,Var8) AND Var9>0;

Var1A:=Var10-Var10*VarF*2/100;

Var1B:=IF(Var1A>REF(Var1A,1),MA(CLOSE,5),Var1A);

涨: IF(ACOS(VarF)>0,-0.03,0), , COLORRED;

调整: IF(ATAN(VarF)>0,0.03,0), ,COLORGREEN ;

Var1C:=(2*CLOSE+HIGH+LOW+OPEN)/5;

Var1D:=EMA(EMA(EMA(Var5,4),4),4);

Var1E:=(Var6-REF(Var6,1))/REF(Var6,1)*100;

Var1F:=MA(Var7,2);

Var20:=MA(Var7,1);

Var21:=CROSS(Var9,Var8) AND Var9<0;

Var22:=CROSS(Var9,0);

Var23:=CROSS(Var9,Var8) AND Var9>0;

跌: IF(ASIN(VarF)>0,0.03,0), , COLORCYAN;

0;

2*(DIFF-DEA);

参数:SHORT(短期)、LONG(长期)、M 天数,一般为12、26、9

用法:

1.DIFF、DEA均为正,DIFF向上突破DEA,买入信号。

2.DIFF、DEA均为负,DIFF向下跌破DEA,卖出信号。

3.DEA线与K线发生背离,行情反转信号。

4.分析MACD柱状线,由红变绿(正变负),卖出信号;由绿变红,买入信号。

136、KDJ线  火山景观A

Var1:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));

Var2:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));

Var3:=SUM(Var1,5);

Var4:=SUM(Var2,5);

Var5:=IF(Var3>Var4,(Var3-Var4)/Var3,IF(Var3=Var4,0,(Var3-Var4)/Var4));

Var6:=MA(Var5,5);

Var8:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));

Var9:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));

VarA:=SUM(Var8,3);

VarB:=SUM(Var9,3);

VarC:=IF(VarA>VarB,(VarA-VarB)/VarA,IF(VarA=VarB,0,(VarA-VarB)/VarB));

VarD:=MA(VarC,3);

火: BARSLAST(EMA(CLOSE,5)<ref(ema(close,5),1)), ,="" colorred;

VarE:=HHV(CLOSE,2);

VarF:=BARSLAST(VarE<ref(vare,2));< p="">

Var10:=IF(VarF>=1,LLV(VarE,VarF),LOW);

Var11:=Var10+Var10*VarF*0.5/100;

Var12:=IF(Var11<ref(var11,1),ma(low,3),var11);< p="">

Var13:=Var10+Var10*(VarF-1)*1.618/100;

山: COUNT(EMA(CLOSE,5)>REF(EMA(CLOSE,5),1),5);

Var14:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));

Var15:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));

Var16:=SUM(Var8,3);

Var17:=SUM(Var9,3);

Var18:=IF(VarA>VarB,(VarA-VarB)/VarA,IF(VarA=VarB,0,(VarA-VarB)/VarB));

Var19:=MA(VarC,3);

买入或持股: STICKLINE(山>0,火,0,2,0), , COLORRED;

Var1A:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));

Var1B:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));

Var1C:=SUM(Var8,3);

Var1D:=SUM(Var9,3);

Var1E:=IF(VarA>VarB,(VarA-VarB)/VarA,IF(VarA=VarB,0,(VarA-VarB)/VarB));

Var1F:=MA(VarC,3);

下跌→抛出: STICKLINE(山>0,火,山,2,1), , COLORCYAN;

Var20:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));

Var21:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));

Var22:=SUM(Var8,3);

Var23:=SUM(Var9,3);

Var24:=IF(VarA>VarB,(VarA-VarB)/VarA,IF(VarA=VarB,0,(VarA-VarB)/VarB));

Var25:=MA(VarC,3);

观望: STICKLINE(山=0 AND 火=0,0,1,4,1), , COLORBLUE;

Var26:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));

Var27:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));

Var28:=SUM(Var8,3);

Var29:=SUM(Var9,3);

Var2A:=IF(VarA>VarB,(VarA-VarB)/VarA,IF(VarA=VarB,0,(VarA-VarB)/VarB));

Var2B:=MA(VarC,3);

植被: STICKLINE(山<火,火,山,1,0), , COLORGREEN;

Var2C:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));

Var2D:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));

Var2E:=SUM(Var8,3);

Var2F:=SUM(Var9,3);

Var30:=IF(VarA>VarB,(VarA-VarB)/VarA,IF(VarA=VarB,0,(VarA-VarB)/VarB));

Var31:=MA(VarC,3);

Var32:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*10;

K: SMA(SMA(Var32,2,1),2,1), , ;

D: SMA(SMA(SMA(Var32,2,1),2,1),3,1), , COLORYELLOW;

J: (3*SMA(SMA(Var32,2,1),2,1)-2*SMA(SMA(SMA(Var32,2,1),2,1),3,1)), , COLORMAGENTA;

Var33:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));

Var34:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));

Var35:=SUM(Var8,3);

Var36:=SUM(Var9,3);

Var37:=IF(VarA>VarB,(VarA-VarB)/VarA,IF(VarA=VarB,0,(VarA-VarB)/VarB));

Var38:=MA(VarC,3);

STICKLINE(REF(山,1)=0 AND 山>0,0,-1,2,0), , COLORRED;

DRAWTEXT(REF(火,3)>0 AND REF(火,2)>0 AND REF(火,1)>0 AND 火=0 AND REF(火,1)>山,REF(火,1),'调整'), , ;

绿色(植被)-多空双方争夺激烈。此时可以参考KDJ指标线和"火山景观B"做出判断! 历史的经验是;在红三角上方称为"植被"的绿色区段要涨是一波较大的涨幅,最好在KDJ形成下叉点出局。或持股、或抛出要根据技术图形判断决定!投资植被也许会满山翠绿; 收益丰厚! 但也可能气候不适宜; 给你带来一定的小损失!是或否就凭你的胆略了!!!

137、火山景观B

Var1:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));

Var2:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));

Var3:=SUM(Var1,5);

Var4:=SUM(Var2,5);

Var5:=IF(Var3>Var4,(Var3-Var4)/Var3,IF(Var3=Var4,0,(Var3-Var4)/Var4));

Var6:=MA(Var5,5);

Var8:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));

Var9:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));

VarA:=SUM(Var8,N);

VarB:=SUM(Var9,N);

VarC:=IF(VarA>VarB,(VarA-VarB)/VarA,IF(VarA=VarB,0,(VarA-VarB)/VarB));

VarD:=MA(VarC,3);

中期: ATAN(BARSLAST(EMA(CLOSE,30)<ref(ema(close,30),1))) 2,="" ,="" colorgreen;

VarE:=HHV(CLOSE,2);

VarF:=BARSLAST(VarE<ref(vare,2));< p="">

Var10:=IF(VarF>=1,LLV(VarE,VarF),LOW);

Var11:=Var10+Var10*VarF*0.5/100;

Var12:=IF(Var11<ref(var11,1),ma(low,3),var11);< p="">

Var13:=Var10+Var10*(VarF-1)*1.618/100;

Var14:=IF(Var13<ref(var13,1),ma(close,3),var13);< p="">

短期: ATAN(BARSLAST(EMA(CLOSE,N)<ref(ema(close,n),1))) 3,="" ,="" colorred;

Var15:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));

Var16:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));

Var17:=SUM(Var8,N);

Var18:=SUM(Var9,N);

Var19:=IF(VarA>VarB,(VarA-VarB)/VarA,IF(VarA=VarB,0,(VarA-VarB)/VarB));

Var1A:=MA(VarC,3);

起点: IF(ASIN(BARSLAST(EMA(CLOSE,N)<ref(ema(close,n),1)))<0,0,asin(barslast(ema(close,n)<ref(ema(close,n),1))) 5),="" ,="" coloryellow;

Var1B:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));

Var1C:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));

Var1D:=SUM(Var8,N);

Var1E:=SUM(Var9,N);

Var1F:=IF(VarA>VarB,(VarA-VarB)/VarA,IF(VarA=VarB,0,(VarA-VarB)/VarB));

Var20:=MA(VarC,3);

Var21:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));

K: SMA(Var21,3,1);

D: SMA(K,3,1);

J: 3*K-2*D, , COLORBLUE;

Var22:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));

Var23:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));

Var24:=SUM(Var8,N);

Var25:=SUM(Var9,N);

Var26:=IF(VarA>VarB,(VarA-VarB)/VarA,IF(VarA=VarB,0,(VarA-VarB)/VarB));

Var27:=MA(VarC,3);

STICKLINE(REF(ATAN(BARSLAST(EMA(CLOSE,N)<ref(ema(close,n),1))),1)=0 and="" atan(barslast(ema(close,n)0,0,-0.1,3,0),="" ,="" colorred;

DRAWTEXT(REF(中期,3)>0 AND REF(中期,2)>0 AND REF(中期,1)>0 AND 中期=0,REF(中期,1),'调整');

以KDJ指标线为主参考! "红色"-买入、持股!  "绿色"-上涨持续力度与止损点!

实用技巧:

在一轮上涨行情中根据"绿色"区段把握"红色"起落点,结合KDJ线段高抛低吸与庄博弈。最好在KDJ形成下叉点出局。或持股、或抛出要根据技术图形判断决定!结合“火山景观A”或“博弈KDJ”把握最佳抛出时机!

138、MACD+短线diff

DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);

DEA  : EMA(DIFF,9);

MACD : 2*(DIFF-DEA), COLORSTICK;

D1:=EMA(C,3)-EMA(C,8);

D2:=EMA(O,3)-EMA(O,8);

D3:=EMA(H,3)-EMA(H,8);

D4:=EMA(L,3)-EMA(L,8);

DRAWICON(cross(d1,diff) and diff<-0.05 ,d4-0.1,1);

DRAWICON(cross(diff,d1) and diff>0.1 ,d3+0.1,2);

STICKLINE(D1>=D2,D1,D2,8,0),COLOR0055AA;

STICKLINE(D1<=D2,D1,D2,8,0),COLOR006600;

STICKLINE(D1>=D2,D1,D2,5,0),COLOR0077CC;

STICKLINE(D1>=D2,D1,D2,3,0),COLOR0099DD;

STICKLINE(D1>=D2,D3,D4,0,0),COLOR00BBFF;

STICKLINE(D1<=D2,D1,D2,5,0),COLOR009900;

STICKLINE(D1<=D2,D1,D2,3,0),COLOR00BB00;

STICKLINE(D1<=D2,D3,D4,0,0),COLOR00EE00;

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约