通达信双重买点主图指标公式[源码]
N:=1;
S:=1;
阳涨幅:=4;
阳倍量:=1.5;
单阳:=C>O*(1+阳涨幅/100) AND VOL>REF(VOL,1)*阳倍量;
DRAWTEXT(CURRBARSCOUNT<100 AND 单阳,L*0.98,"阳"),COLOR00FFFF;
高不破价:=REF(C,BARSLAST(单阳));
中不破价:=REF((C+L)/2,BARSLAST(单阳));
低不破价:=REF(L,BARSLAST(单阳));
单阳不破:=CURRBARSCOUNT<100 AND BARSLAST(单阳)<11 AND (LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价);
STICKLINE(单阳不破,低不破价-低不破价*0.003,低不破价,4,0),COLORRED;
DRAWTEXT(BARSLAST(单阳)=1 AND 单阳不破,低不破价*0.98,"1"),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=2 AND 单阳不破,低不破价*0.98,"2"),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=3 AND 单阳不破,低不破价*0.98,"3"),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=4 AND 单阳不破,低不破价*0.98,"4"),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=5 AND 单阳不破,低不破价*0.98,"5"),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=6 AND 单阳不破,低不破价*0.98,"6"),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=7 AND 单阳不破,低不破价*0.98,"7"),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=8 AND 单阳不破,低不破价*0.98,"8"),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=9 AND 单阳不破,低不破价*0.98,"9"),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=10 AND 单阳不破,低不破价*0.98,"10"),COLORGREEN;
两天:=LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价;
一般:=LLV(L,BARSLAST(单阳)-2)>低不破价 OR LLV(L,BARSLAST(单阳)-2)=低不破价;
一般选股:STICKLINE(CURRBARSCOUNT<100 AND BARSLAST(单阳)<9 AND 两天 AND 一般,低不破价,低不破价,2,0),COLORWHITE;
较强:=LLV(L,BARSLAST(单阳)-2)>中不破价 OR LLV(L,BARSLAST(单阳)-2)=中不破价;
较强选股:STICKLINE(CURRBARSCOUNT<100 AND BARSLAST(单阳)<9 AND 两天 AND 较强,中不破价,中不破价,2,0),COLORMAGENTA;
最强:=LLV(L,BARSLAST(单阳)-3)>高不破价 OR LLV(L,BARSLAST(单阳)-2)=高不破价;
最强选股:STICKLINE(CURRBARSCOUNT<100 AND BARSLAST(单阳)<9 AND 两天 AND 最强,高不破价,高不破价,4,0),COLORYELLOW;
现价:DRAWLINE(CURRBARSCOUNT=TOTALBARSCOUNT,CONST(C),CURRBARSCOUNT=1,C,3)DOTLINE;
VARR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买盘:=IF(CLOSE>OPEN,VARR1*(HIGH-LOW),IF(CLOSE<OPEN,VARR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
成交量比:=买盘/VOL*100;
主力持仓:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);
主力筹码集中度:=WINNER(C)*100;
散筹筹码集中度:=(WINNER(C*1.1)-WINNER(C*0.9))*100;
量筹买点:=主力筹码集中度>主力持仓 AND 主力持仓>散筹筹码集中度
AND 成交量比>89.9 AND FINANCE(7)<2500000000 AND DYNAINFO(7)>0;
DRAWTEXT(量筹买点,REF(CLOSE,1),"量筹"),COLOR000055;
STICKLINE(量筹买点,CLOSE,O,2.8,0),COLOR000055;
STICKLINE(量筹买点,CLOSE,O,2,0),COLOR000088;
STICKLINE(量筹买点,CLOSE,O,1.5,0),COLOR0000AA;
STICKLINE(量筹买点,CLOSE,O,1,0),COLOR0000CC;
STICKLINE(量筹买点,CLOSE,O,0.5,0),COLOR0000EE;
D7:="MACD.DIF#WEEK"-"MACD.DEA#WEEK";
D8:="MACD.DIF#MONTH"-"MACD.DEA#MONTH";
黑马抄底:=CROSS("KDJ.J#WEEK"(9,3,3),0) AND D8>0 OR CROSS("KDJ.J#MONTH"(9,3,3),0) AND D7>0;
STICKLINE(黑马抄底,CLOSE,OPEN,3,0),COLORYELLOW;{KDJ和MACD的周月之间的配合}
DRAWTEXT(黑马抄底,LOW-0.03,"黑马"),COLORMAGENTA;
STICKLINE(黑马抄底,CLOSE,OPEN,3.2,0),COLOR000099;
STICKLINE(黑马抄底,CLOSE,OPEN,2.6,0),COLOR0000AA;
STICKLINE(黑马抄底,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(黑马抄底,CLOSE,OPEN,1.8,0),COLOR0000DD;
STICKLINE(黑马抄底,CLOSE,OPEN,1.3,0),COLOR0000FF;
STICKLINE(黑马抄底,CLOSE,OPEN,0.5,0),COLORCC66FF;
FH11:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);
FH21:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;
FH3:=EMA(C,30)>=REF(EMA(C,30),1) AND COUNT(EMA(C,5)>EMA(C,10) AND EMA(C,10)>EMA(C,30),1)=1;
FH4:=CROSS(C,EMA(C,30)) OR C>EMA(C,30);
FH5:=FH11 AND FH21 AND FH3 AND FH4;
FH6:=FH11 AND FH21 AND FH3 AND FH4 AND ABS((MACD.DIF-MACD.DEA)/C)<0.018;
FH7:=FH11 AND FH21 AND FH3 AND FH4 AND MACD<0.10;
腾:=FH5 OR FH6 OR FH7;
DRAWTEXT(腾,(LOW * 0.985),"腾"),COLOR00FFFF;
STICKLINE(腾,CLOSE,O,2.8,0),COLOR00FFFF;
STICKLINE(腾,CLOSE,O,2,0),COLOR0077FF;
STICKLINE(腾,CLOSE,O,1.5,0),COLOR0099FF;
STICKLINE(腾,CLOSE,O,1,0),COLOR00AAFF;
STICKLINE(腾,CLOSE,O,0.5,0),COLOR00CCFF;
M月:=CROSS("MACD.DIF#MONTH","MACD.DEA#MONTH");DRAWTEXT(M月,LOW-0.04,"M月"),COLORMAGENTA;
K月:DRAWTEXT(CROSS("KDJ.K#MONTH"(9,3,3),"KDJ.D#MONTH"(9,3,3)) ,LOW-0.05,"K月"),COLORMAGENTA;
K周:DRAWTEXT(CROSS("KD.K#WEEK"(9,3,3),"KD.D#WEEK"(9,3,3)) ,LOW-0.08,"K周"),COLORRED;
M周:=CROSS("MACD.DIF#WEEK","MACD.DEA#WEEK");DRAWTEXT(M周,LOW-0.1,"M周"),COLORRED;
月叉:DRAWTEXT(CROSS("KDJ.D#MONTH"(9,3,3),"KDJ.K#MONTH"(9,3,3)) ,H+0.05,"K20"),COLORGREEN;
- 上一篇公式:通达信短线急速选股指标公式[源码]
- 下一篇公式:通达信正差关系指标公式[源码]