您现在的位置:程序化交易>> 股票公式>> 大智慧>> 大智慧公式>>正文内容

操盘铁律公式源码[大智慧公式]

相关标签:通达信操盘线指标源码 、 通达信操盘线指标公式 、 通达信公式转大智慧 、 通达信指标公式源码 、 大黑马指标源码通达信 、 通达信益盟操盘线源码 、 通达信bs操盘线源码 、 通达信绝密操盘源码 、 通达信大底公式源码 、 大智慧指标公式源码 、 操盘线指标公式源码 、 操盘论势指标源码公式 、 大智慧ddi操盘源码 、 通达信庄家操盘线指标 、 通达信操盘提醒指标 、

 

 

 

原理解析:


 

 来源:程序化99( WWW.CXH99.COM )

源码:

 

 

MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)
+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)
+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)
+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)
+2*REF(MID,18)+REF(MID,20))/210,COLORRED;
马线:MA(牛线,6),COLORGREEN;
VAR0:=SMA(MAX(CLOSE-REF(C,1),0),12,1)/SMA(ABS(CLOSE-REF(C,1)),15,1)*100;
DRAWTEXT(CROSS(82,VAR0),HIGH,'快卖'),COLORWHITE;
{DRAWTEXT_FIX(1,0.2,0.05,0,STRCAT(,)L+' '+STKNAME+' '+BKNAME),COLOR00FFFF;}S:=C-REF(C,1);
DX:=100*EMA(EMA(S,6),6)/EMA(EMA(ABS(S),6),6);
买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
DRAWTEXT(FILTER(买=1,5),LOW-0.03,'拉升'),COLORFFDE00;
DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;
DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;
DRAWTEXT(CROSS(DA-DB,0),L*0.95,'B'),COLORRED;
JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
DRAWTEXT(CROSS(84,JH),H*1.05,'☆S'),COLORGREEN;
YC:=REF(CLOSE,1);
止损价位:(YC*1.0035*97+0.2)/99.65,COLORRED,LINETHICK0;
DRAWTEXT_FIX(1,0.01,0.02,0,' ======================'),COLORRED;DRAWTEXT_FIX(1,0.01,0.09,0,'盘 '),COLORRED;
DRAWTEXT_FIX(1,0.01,0.12,0,'铁'),COLORRED;
DRAWTEXT_FIX(1,0.01,0.15,0,'律'),COLORRED;
DRAWTEXT_FIX(1,0.01,0.18,0,' ======================'),COLORRED;DRAWTEXT_FIX(C>0,0.02,0.09,0,' 买入时间 2:30以后' ),COLORYELLOW;
DRAWTEXT_FIX(1,0.02,0.12,0,STRCAT(' 止损价位 ',STRCAT(CON2STR(止损价位,2),'元'))),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.02,0.15,0,' 线上:工作 线下:休息'),COLOR00FFFF;
E:=(HIGH+LOW+OPEN+2*CLOSE)/5;
明日阻力:=2*E-LOW;
明日支撑:=2*E-HIGH;
明日突破:=E+(HIGH-LOW);
明日反转:=E-(HIGH-LOW);
今日阻力:=REF(明日阻力 , 1);
今日支撑:=REF(明日支撑 , 1);
DRAWTEXT_FIX(1,0.14,0.04,0,STRCAT('今日阻力=',CON2STR(今日阻力,2))),COLORCYAN;DRAWTEXT_FIX(BARSTATUS=2 AND SZ2,0.25,0.03,0,'上升通道走势良好'),COLORRED;DRAWTEXT_FIX(BARSTATUS=2 AND SZ3,0.25,0.03,0,'股价偏离注意调整'),COLORRED;DRAWTEXT_FIX(BARSTATUS=2 AND SZ4,0.25,0.03,0,'上升通道调整洗盘'),COLORGREEN;DRAWTEXT_FIX(BARSTATUS=2 AND SZ5,0.25,0.03,0,'转向特征注意离场'),COLORGREEN;DRAWTEXT_FIX(BARSTATUS=2 AND SZ6,0.25,0.03,0,'通道改变坚决离场'),COLORGREEN;DRAWTEXT_FIX(BARSTATUS=2 AND XD1,0.25,0.03,0,'下跌通道只宜观望'),COLORGREEN;DRAWTEXT_FIX(BARSTATUS=2 AND XD2,0.25,0.03,0,'短期底部准备进入'),COLORYELLOW;STICKLINE(CLOSE>OPEN,OPEN,LOW,0,0 ),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0 ,0 ),COLOR0000FF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0 ,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0 ,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3.1,0 ),COLORFF7700;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2.5,0 ),COLORFF9900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORFFBB00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.5,0 ),COLORFFCC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORFFDD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.5,0 ),COLORFFEE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0.1,0 ),COLORFFFF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.1,0) ,COLOR000055;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.5,0) ,COLOR000066;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR000077;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0) ,COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000BB;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0) ,COLOR0000DD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.1,0) ,COLOR0000FF;
VAR9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))
OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4)
AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4)
AND C>=REF(C,1) AND C>=REF(C,2);
STICKLINE(VAR9Q,C,(O+C)/2,3.1,0),COLOR000055;
STICKLINE(VAR9Q,C,(O+C)/2,2.5,0),COLOR000066;
STICKLINE(VAR9Q,C,(O+C)/2,2,0),COLOR000077;
STICKLINE(VAR9Q,C,(O+C)/2,1.5,0),COLOR000099;
STICKLINE(VAR9Q,C,(O+C)/2,1,0),COLOR0000BB;
STICKLINE(VAR9Q,C,(O+C)/2,0.5,0),COLOR0000DD;
STICKLINE(VAR9Q,C,(O+C)/2,0.1,0),COLOR0000FF;
VARAQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);
STICKLINE(VARAQ,C,(O+C)/2,3.1,0),COLORFF11FF;
STICKLINE(VARAQ,C,(O+C)/2,2.5,0),COLORFF33FF;
STICKLINE(VARAQ,C,(O+C)/2,2,0),COLORFF55FF;
STICKLINE(VARAQ,C,(O+C)/2,1.5,0),COLORFF77FF;
STICKLINE(VARAQ,C,(O+C)/2,1,0),COLORFF99FF;
STICKLINE(VARAQ,C,(O+C)/2,0.5,0),COLORFFBBFF;
STICKLINE(VARAQ,C,(O+C)/2,0.1,0),COLORFFDDFF;
VARBQ:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3))
OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4)
AND REF(C,1)<>HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4)
AND C<REF(C,1) AND C<REF(C,2);
STICKLINE(VARBQ,C,(O+C)/2,3.1,0),COLOR333333;
STICKLINE(VARBQ,C,(O+C)/2,2.5,0),COLOR555555;
STICKLINE(VARBQ,C,(O+C)/2,2,0),COLOR777777;
STICKLINE(VARBQ,C,(O+C)/2,1.5,0),COLOR999999;
STICKLINE(VARBQ,C,(O+C)/2,1,0),COLORBBBBBB;
STICKLINE(VARBQ,C,(O+C)/2,0.5,0),COLORDDDDDD;
STICKLINE(VARBQ,C,(O+C)/2,0.11,0),COLORFFFFFF;
VARCQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4)
AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
STICKLINE(VARCQ,O,(O+C)/2,3.1,0),COLOR00aaff;CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
WARNING('http://www.cxh99.com',CURRENTTIME>180000 and (CXH=1 OR CXH=6));
DRAWTEXTREL(10 ,10 ,'指标公式');

 

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  有需要帮忙请点击这里留言!!!进行 有偿 编写!不贵!点击查看价格!

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容