公式注释:
指标左上角cdl后括号中数字是来回手续费,为千分之几。8为千分之8,9为千分之9, 10为百分之1,可以在调整指标参数中根据自己的实际情况选定S。
本公式的止损率设为2.5%,最前一根阳线的收盘价下跌25%为止损价。
买价是所定日的收盘价,后面的都是以它为准赔2.5%所定的止损价,平仓价,赚2%价,赚4%价,赚5%价...赚10 %价。
最高为当天的最高价,
逃命价为阶段最高价下跌11%的止损价。
当标准参数KDJ的J大于98时发出“顶”信号。
当中的图形为MACD,和标准的完全一样,只是数值大了10000倍,为了把图编在一个指标中不得已而为之,有效数字完全一样,不影响使用。
中轴下面发出的黄色坑为黄金坑,发出后一般有个低位。
用cdl指标的黄金坑选股时选“日线”,“黄金坑”,“满足下面条件”应设为“小于 0”才选得出。黄金坑出现一般是低位区,有一次机会。
用本指标选“顶”时直接在选股中选技术指标CDL,日或60分中的“顶”,大于5即可。
C/C++ Code复制内容到剪贴板
- 通达信:
- S:=8;
- 买:C,COLORFFFFFF,NODRAW;
- 止:买/(1+0.005+2/100-S/1000),COLOR00FF00,NODRAW;
- 平:买*(1+S/1000),COLORYELLOW,NODRAW;
- 二:买*(1.02+S/1000),COLORRED,NODRAW;
- 三:买*(1.03+S/1000),COLOR00FF00,NODRAW;
- 五:买*(1.05+S/1000),COLORFFFFFF,NODRAW;
- 十:买*(1.10+S/1000),COLOR00FF00,NODRAW;
- 逃命:H/1.11,COLORFFFFFF,NODRAW;
- 最高:H,COLORMAGENTA,NODRAW;
- E40:=EMA(C,40);
- E40GL:(C-E40)/E40*100,COLORYELLOW,NODRAW;
-
- DIFF :(10000*( EMA(CLOSE,N1) - EMA(CLOSE,N2))),COLORRED;
- DEA : EMA(DIFF,N3),COLORYELLOW;
- MACD : 2*(DIFF-DEA),COLORSTICK;
- STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.1,0),COLORYELLOW;
- STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0.1,0),COLORWHITE;
- DI :=5*(EMA(CLOSE,6) - EMA(CLOSE,20));
- DE := EMA(DI,5);
- MD := (DI-DE);
- L1:=TROUGHBARS( 3,5,1 );
- L2:=TROUGHBARS( 3,5,2 );
- L3:=TROUGHBARS( 3,5,3 );
- L4:=TROUGHBARS( 3,5,4 );
- M30:=MA(C,30);
- M40:=MA(C,40);
- 乖底天数:=BARSLAST(E40GL<= LLV( E40GL,20));
- RSVK:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
- KK:=SMA(RSVK,3,1);
- DK:=SMA(KK,3,1);
- JK:=3*KK-2*DK;
- 顶:(JK<120 AND JK>98 AND JK>REF(JK,1))*1000,COLORYELLOW;
- A1:=(C/MA(C,3)>=(1+0.07) AND C=HHV(C,3) AND MA(V,2)/MA(V,40)>=3 AND MA(V,2)=HHV(MA(V,2),3) AND V>REF(V,1) AND C>REF(C,1));
- A9:=MA(C,30);
- A10:=(C-A9)/A9*100;
- A11:=MA(A10,3);
- A15:=BARSLAST(CROSS(-10,A11)=1);
- DRAWTEXT(FILTER(顶,10),顶*1.1 ,'顶' ),COLORRED;
- RR8:=MA(CLOSE,27);
- RR9:=(CLOSE-RR8)/RR8*100;
- RRA:=MA(RR9,2);
- RRB:=BARSLAST(CROSS(-10,RRA)=1);
- RRD:=RRA<-10 AND RRB>3;
- 黄金坑:( IF(RRD,-2000,0)),COLORYELLOW,STICK,LINETHICK3;
- IF(DIFF>REF(DIFF,1),DIFF,DRAWNULL),COLORRED;
- IF(DIFF<REF(DIFF,1),DIFF,DRAWNULL),COLORGREEN;
C/C++ Code复制内容到剪贴板
- 分析家:
- input:s(8,1,20,1);
- 买:c,colorFFFFFF;
- 止:买/(1+0.005+2/100-s/1000),color00ff00;
- 平:买*(1+s/1000),coloryellow;
- 二:买*(1.02+s/1000),COLORRED;
- 三:买*(1.03+s/1000),color00ff00;
- 五:买*(1.05+s/1000),COLORFFFFFF;
- 十:买*(1.10+s/1000),color00ff00;
- 最高:H,COLORMAGENTA;
- E40:=EMA(C,40);
- E40gl:(C-E40)/E40*100,coloryellow;
- c1:="1a0001$close";
- pn:=(C1/c1)*3;
- DIff :(10000*( EMA(CLOSE,12) - EMA(CLOSE,26)))*pn,colorred;
- 逃命:H/1.11,COLORFFFFFF;
- DEA : EMA(DIfF,9),coloryellow;
- Macd : 2*(DIfF-DEA),COLORSTICK;
- STICKLINE(MACD<ref(MACD,1)and MACD>0,0,MACD,2,0),COLORYELLOW;
- STICKLINE(MACD>ref(MACD,1)and MACD<0,0,MACD,2,0),COLORwhite;
- partline(DIFF,DIFF>ref(DIFF,1),rgb(255,0,0),DIFF<ref(DIFF,1),rgb(0,255,0));
- DI :=5*(EMA(CLOSE,6) - EMA(CLOSE,20));
- DE := EMA(DI,5);
- MD := (DI-DE);
- L1:=TROUGHBARS( 3,5,1,0 );
- L2:=TROUGHBARS( 3,5,2,0 );
- L3:=TROUGHBARS( 3,5,3,0 );
- L4:=TROUGHBARS( 3,5,4,0 );
- M30:=MA(C,30);
- M40:=MA(C,40);
- 乖底天数:=BARSLAST(E40gl<= LLV( E40gl,20));
- RSVK:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
- KK:=SMA(RSVK,3,1);
- DK:=SMA(KK,3,1);
- JK:=3*KK-2*DK;
- 顶:(JK<120 AND JK>98 AND JK>REF(JK,1))*5000,COLORYELLOW;
- A1:=(C/MA(C,3)>=(1+0.07) AND C=HHV(C,3) AND MA(V,2)/MA(V,40)>=3 AND
- MA(V,2)=HHV(MA(V,2),3) AND V>REF(V,1) AND C>REF(C,1));
- A9:=MA(C,30);
- A10:=(C-A9)/A9*100;
- A11:=MA(A10,3);
- A15:=BARSLAST(CROSS(-10,A11)=1);
- DRAWTEXT(FILTER(顶 , 10),顶*1.2 ,'顶' ),colorRED;
- rr8:=MA(CLOSE,27);
- rr9:=(CLOSE-rr8)/rr8*100;
- rrA:=MA(rr9,2);
- rrB:=BARSLAST(CROSS(-10,rrA)=1);
- rrD:=rrA<-10 AND rrB>3;{ 黄金坑
- 黄金坑:( IF(rrD,-2000,0)),coloryellow,stick,LINETHICK3;}
-