首页 > 编程语言 >通达信擒龙跟庄主图指标公式源码

通达信擒龙跟庄主图指标公式源码

时间:2024-03-10 11:58:28浏览次数:24  
标签:10 MA STICKLINE 擒龙 HJ 通达信 源码 CLOSE REF

{ 通达信擒龙跟庄主图指标公式源码 }

{涨家:INDEXADV,NODRAW,COLORRED;
跌家:INDEXDEC,NODRAW,COLOR00FFFF;}
A:=(3*C+L+O+H)/6;
X:=(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;
主力成本:EMA(X,13),COLORFF00FF,LINETHICK1;
N10:=3;N20:=6;N3:=12;N4:=24;
bbi:(MA(CLOSE,N10)+MA(CLOSE,N20)+MA(CLOSE,N3)+MA(CLOSE,N4))/4,COLORRED,LINETHICK2;
BB:=BBI<ref(bbi,1);
IF(BB,BBI,DRAWNULL)COLORGREEN,LINETHICK2;
DRAWICON(REF(BB,1)=1 AND BBI>REF(BBI,1),BBI*0.99,23);
DRAWKLINE(H,O,L,C);
AH:=HHV(H,60);
AL:=LLV(L,60);
A0:=(AH-AL)/21;
{JJR5}
均价:=(2*C+(C+H+L+O)/4+O)/4;
JJR1:=(2*L+3*均价)/5;
JJR2:=(2*H+3*均价)/5;
JJR3:=Abs(均价-MA((JJR1+JJR2)/2,20))/MA((JJR1+JJR2)/2,20);
JJR4:=DMA(均价,JJR3);
JJR5:(1+7/100)*JJR4,COLORRED,LINETHICK2;
IF(JJR5<ref(jjr5,1),jjr5,drawnull),linethick2,colorwhite;
C7:=REF(C,1);ZT:=IF((C-C7)*100/C7>=(10-0.01*100/C7),1,0);
STICKLINE(ZT,OPEN,CLOSE,2.0,0) ,COLORYELLOW;
{堆量}
V5:=MA(V,5);
V10:=MA(V,10);
D1:=V>REF(HHV(V,2),1) AND RANGE(V5,V10,V) AND UPNDAY(V5,2) AND UPNDAY(V10,2);
D2:=H>REF(HHV(H,2),1);
KMAX:=MAX(C,O);
D3:=KMAX>REF(HHV(KMAX,2),1);
DA:=D1 AND D2 AND D3;
P1:=BArslAST(DA=1);
P2:=REF(REF(H,1),P1);
DB:=IF(DA,0,IF(C<p2,1,0));{堆量确定};
LJ:=REF(HHV(H,P1+1),BARSLAST(DB));
NOTEXT:LJ;
DRAWICON(IF(C>LJ,IF(REF(KMAX<lj,1),1,0),0),l,18);
{趋势评分}
X01:=IF(MA(C,5)>MA(C,10),20,0);
X02:=IF(MA(C,20)>MA(C,60),10,0);
X3:=IF(kdj.J>kdJ.K,10,0);
X4:=IF(macd.DIF>MacD.DEA,10,0);
X05:=IF(MACD.MACD>0,10,0);
X6:=IF(V>MA(V,60),10,0);
X7:=IF(WINNER(C)>0.5,10,0);
X8:=IF(C/REF(C,1)>1.03,10,0);
XX:=X01+X02+X3+X4+X05+X6+X7+X8;
DRAWTEXT_FIX(V>O,0.4,0.05,0,STRCAT('趋势评分: ',STRCAT(CON2STR(XX,0),' '))),COLORYELLOW;
{主力洗盘线:MA(C,170),LINETHICK2;}
资金异动线:MA(C,136),COLORGREEN,LINETHICK2;
{擒龙跟庄}
主力攻击线:MA(C,5),DOTLINE,COLORWHITE;
主力控盘线:MA(CLOSE,18),COLORYELLOW,LINETHICK2;
IF(主力攻击线<主力控盘线 OR 主力攻击线<=MA(主力攻击线,5),主力攻击线,DRAWNULL),COLORYELLOW;
HJ_1:=C/REF(C,1)>=1.038 AND C=H;
HJ_22:=COUNT(HJ_1,2)>=1 AND NOT(COUNT(HJ_1,3)>=2);
启:=FILTER(HJ_22,13),COLORDDDDDD;
HJ_23:=COUNT(HJ_1,3)>=2 AND NOT(COUNT(HJ_1,4)>=3);
升:=FILTER(HJ_23,13),COLORGREEN;
龙头启动:=启 AND COUNT(启,18)=1,COLORWHITE;
主升:=升 AND COUNT(升,18)=1;
龙头主升:主升,COLORYELLOW,NODRAW;
STICKLINE(HJ_1 AND C>主力攻击线,C,O,2,0),COLORFF00FF;
STICKLINE(HJ_1 AND C>主力攻击线,C,O,2.5,0),COLORDA70D6;
STICKLINE(HJ_1 AND C>主力攻击线,C,O,2,0),COLOREE82EE;
STICKLINE(HJ_1 AND C>主力攻击线,C,O,1.2,0),COLORD8BFD8;
STICKLINE(HJ_1 AND C>主力攻击线,C,O,0.5,0),COLORF8F8FF;
STICKLINE(HJ_1 AND C>主力攻击线,C,O,0.05,0),COLORFFFFFF;
STICKLINE(启 AND COUNT(启,18)=1,O,C,2,0),COLORYELLOW;
STICKLINE(启 AND COUNT(启,18)=1,O,C,0.8,0),COLORF8F8FF;
STICKLINE(启 AND COUNT(启,18)=1,O,C,0.2,0),COLORFFFFFF;
DRAWICON(龙头启动,L,34);
LC:=REF(CLOSE,1);
VAR28:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(crOSS(84,rsi) AND CROSS(76,VAR28),H*1.01,'卖出'),LINETHICK4,COLORGREEN;
DRAWTEXT(龙头主升,L*0.99,'★'),COLORYELLOW,LINETHICK2;
{补仓卖}
VAB0:=531;
VAB1:=1510000;
VAB2:=VAB0 + VAB1;
VAB3:=IF(DATE > VAB2,0,1);
VARA12:=SMA(H,10,9)*VAB3;
VARA13:=SMA(L,10,9)*VAB3;
卖价:VARA12,COLORRED,NODRAW;
补仓:VARA13,COLORGREEN,NODRAW;
DRAWTEXT_FIX(1,0.75,0.05,0,STRCAT('补仓:',STRCAT(CON2STR(补仓,2),' '))),COLORRED;
DRAWTEXT_FIX(1,1,0.05,0,STRCAT('卖价:',STRCAT(CON2STR(卖价,2),' '))),COLORGREEN;
竞价额:=DYNAINFO(15)/10000;{万元}
DRAWTEXT_FIX(C>0,0.59,0.05,0,VARCAT(VARCAT('竞价: ',VAR2STR(竞价额,0)),' 万')),
COLORMAGENTA;
DRAWTEXT_FIX(V>O,0,0,0,STRCAT('属概念板块: ',GNBLOCK)),COLORRED;

 

标签:10,MA,STICKLINE,擒龙,HJ,通达信,源码,CLOSE,REF
From: https://www.cnblogs.com/zhibiao/p/18063930

相关文章

  • 通达信指路迷津副图指标源码
    {通达信指路迷津副图指标源码}使用方法:DRAWTEXT_FIX(1,0,0.1,0,'方法1:配合“探底擒妖”副图指标,当某日出现“探底点”信号时,观察当天或后续10日内,是否出现“手指”信号,如有,即可买进;'),COLORGRAY;DRAWTEXT_FIX(1,0,0.3,0,'方法2:当某日出现“手指”信号时,观察其位置,如“......
  • spring-security源码阅读-总结(二十六)
    spring-security很重?身边一提到spring-security,都觉得很重,宁愿自己写个filter快速实现认证,确实如此吗,spring-security本质也是基于servlet-filter作为切入点。作为框架,把正常验证流程差异化的地方都封装抽象出来了。我们只需要根据他的每个差异化的地方完成我们自己的配置就行......
  • 通达信买入翻倍, 年年翻倍的一个指标,没未来函数
    {通达信买入翻倍,年年翻倍的一个指标,没未来函数}买入翻倍,让年年翻倍的一个指标,没未来函数VAR1:=REF(CLOSE,1);VAR2:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(ABS(CLOSE-VAR1),6,1)*100;VAR3:=SMA(MAX(CLOSE-VAR1,0),12,1)/SMA(ABS(CLOSE-VAR1),12,1)*100;VAR4:=(BARSLAST(VAR......
  • 通达信心理重心战术副图指标公式源码
    {通达信心理重心战术副图指标公式源码}N:=12;{参数可以自己调整}stICKLINE(1,100,100,10,0),COLOR0099FF;STICKLINE(1,0,0,10,0),COLOR0099FF;STICKLINE(1,80,80,1.5,0),COLORYELLOW;STICKLINE(1,20,20,1.5,0),COLORYELLOW;STICKLINE(1,50,50,0.7,0),COLORWHITE;MID:=(......
  • 通达信分时攻击量指标公式源码
    {通达信分时攻击量指标公式源码}{指标介绍:可通过红绿多空线,即时精准判断主力做盘情况。早盘(9:30-10:30)红色多方线,上穿绿色空方线,要密切关注,大概率拉涨停!同样的道理,当绿色空方线上穿红色多方线,回调走弱!也可以通过多空线的上下顶底线,做日内T操作,红线探顶卖出参考,绿色探顶买......
  • 通达信龙头回探主图指标公式源码主图
    {通达信龙头回探主图指标公式源码主图}MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA30:MA(CLOSE,30);MA60:MA(CLOSE,60);MA120:MA(CLOSE,120);趋势线:HHV(MA5,90),COLORRED,LINETHICK2;X_1:=REF(CLOSE,3)/REF(CLOSE,4)>1.09ANDREF(CLOSE,3)=REF(HIGH,3)......
  • 通达信涨跌动因指标公式源码附图
    {通达信涨跌动因指标公式源码附图}{指标介绍:主力资金,操作线同时在50上方上涨可期,散户线上穿50代表走弱。}VAR1:=LLV(LOW,13);VAR2:=HHV(HIGH,13);VAR3:=SMA((CLOSE-VAR1)/(VAR2-VAR1)*100,5,1);VAR4:=SMA((VAR2-CLOSE)/(VAR2-VAR1)*100,5,1);DRAWBAND(VAR3,RGB(155,50,50......
  • 通达信骑牛找马选股指标公式源码附图
    {通达信骑牛找马选股指标公式源码附图}VAR1:=35;VAR2:=45;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),7,1)/SMA(Abs(CLOSE-VAR3),7,1)*100;VAR5:=SMA(MAX(CLOSE-VAR3,0),7,1)/SMA(ABS(CLOSE-VAR3),7,1)*100;牛股:=SMA(MAX(CLOSE-VAR3,0),7,1)/SMA(ABS(CLOSE-VAR3),......
  • 通达信多用途量比指标公式源码
    {通达信多用途量比指标公式源码}K:=2;D:=Abs(AMOUNT-REF(AMOUNT,1));E:=SUM(D,5)/5;F:=REF(SUM(D,250)/250,1);微元条件1:=E/F>0ANDE/F<3;FI:=EMA(SLOPE(C,21)*21+C,39);GI:=EMA(SLOPE(C,21)*21+C,55);条件2:=EMA(C,3)>FIANDFI>REF(FI,1)ANDFI>GI,NODRAW;MTR:=......
  • 通达信进出变盘提示主图指标公式源码
    {通达信进出变盘提示主图指标公式源码}MA13:MA(C,13);MA30:MA(C,30);MA60:MA(C,60);MA120:MA(C,120);MA240:MA(C,240);XL1:=((LLV(LOW,3)=LLV(LOW,60))AND((CLOSE/REF(CLOSE,1))>=1.04));XL2:=(((CLOSE-EMA(CLOSE,21))/EMA(CLOSE,21))*100);XL3:=crOSS(X......