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

自用成交[大智慧公式]

相关标签:

 

自用成交
网上源码组合
参数N=5

DRAWGBKLAST(DATE>900101,STRIP(RGB(75,75,75),RGB(0,0,0),0));
DRAWTEXTABS(10,10,STKLABEL+' '+STKNAME+' '+BKNAME),COLOR00FFFF;
总股本(亿):FINANCE2(35)/10000,COLORYELLOW,LINETHICK0;
流通(亿):FINANCE2(37)/10000,COLORFFFFFF,LINETHICK0;
均价:=(3*C+H+L+O)/6;
VAR1x:=(8*均价+7*REF(均价,1)+6*REF(均价,2)+5*REF(均价,3)+4*REF(均价,4)+3*REF(均价,5)+2*REF(均价,6)+REF(均价,8))/36;
VAR2x:=(LLV(VAR1x,2)+LLV(VAR1x,4)+LLV(VAR1x,6))/3;
SZ1:=REF(VAR1x,1)=REF(VAR2x,1) AND VAR1x>VAR2x AND CLOSE>VAR1x;
SZ2:=VAR1x>VAR2x AND VAR1x>REF(VAR1x,1) AND VAR2x>REF(VAR2x,1) AND H/VAR1x<1.1 AND L>VAR2x AND CLOSE>VAR1x;
SZ3:=VAR1x>VAR2x AND VAR1x>REF(VAR1x,1) AND VAR2x>=REF(VAR2x,1) AND H/VAR1x>1.1;
SZ4:=VAR1x>VAR2x AND VAR1x>REF(VAR1x,1) AND VAR2x>REF(VAR2x,1) AND CLOSE>VAR2x AND CLOSE<VAR1x;
SZ5:=(VAR1x>VAR2x AND VAR2x>REF(VAR2x,1) AND VAR1x<>REF(VAR1x,1) AND CLOSE<VAR2x) OR (VAR1x>VAR2x AND VAR1x<REF(VAR1x,1) AND VAR2x<REF(VAR2x,1) AND CLOSE<VAR2x);
SZ6:=REF(VAR1x,1)>REF(VAR2x,1) AND VAR1x=VAR2x AND CLOSE<VAR2x;
XD1:=VAR1x=VAR2x AND CLOSE<VAR2x OR (VAR1x<REF(VAR1x,1) AND VAR2x<REF(VAR2x,1) AND REF(VAR1x,1)=REF(VAR2x,1) AND CLOSE<VAR2x);
XD2:=VAR1x=VAR2x AND CLOSE>VAR1x;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N));
量能饱和度:=IF(SAT>1,1,SAT)*100;
IF BARSTATUS=2 AND SZ1 THEN BEGIN
DRAWTEXTABS(320,25,'调整结束短线介入'),COLORRED;
END
ELSE
IF BARSTATUS=2 AND SZ2 THEN BEGIN
DRAWTEXTABS(320,25,'上升通道走势良好'),COLORRED;
END
ELSE
IF BARSTATUS=2 AND SZ3 THEN BEGIN
DRAWTEXTABS(320,25,'股价偏离注意调整'),COLORRED;
END
ELSE
IF BARSTATUS=2 AND SZ4 THEN BEGIN
DRAWTEXTABS(320,25,'上升通道调整洗盘'),COLORGREEN;{http://www.cxh99.com}
END
ELSE
IF BARSTATUS=2 AND SZ5 THEN BEGIN
DRAWTEXTABS(320,25,'转向特征注意离场'),COLORGREEN;{http://www.cxh99.com}
END
ELSE
IF BARSTATUS=2 AND SZ6 THEN BEGIN
DRAWTEXTABS(320,25,'通道改变坚决离场'),COLORGREEN;{http://www.cxh99.com}
END
ELSE
IF BARSTATUS=2 AND XD1 THEN BEGIN
DRAWTEXTABS(320,25,'下跌通道只宜观望'),COLORGREEN;{http://www.cxh99.com}
END
ELSE
IF BARSTATUS=2 AND XD2 THEN BEGIN
DRAWTEXTABS(320,25,'短期底部准备进入'),COLORYELLOW;
END;
AB1:=COST(0.33);
AB2:=COST(5);
AB3:=COST(15);
AB4:=COST(55);
AB5:=COST(97);
AA1:=COST(90);
AA2:=COST(70);
AA3:=COST(30);
AA4:=COST(10);
获利:=WINNER(CLOSE)*100;
套牢:=100-WINNER(CLOSE)*100;
DRAWTEXTABS(15,25,'量能饱和度:'+NUMTOSTRN(量能饱和度,2)+'%'),COLOR00FFFF;
DRAWTEXTABS(15,40,'90成本:'+NUMTOSTRN(AA1,2)),COLOR00FFFF;
DRAWTEXTABS(15,55,'70成本:'+NUMTOSTRN(AA2,2)),COLOR00FFFF;
DRAWTEXTABS(15,70,'30成本:'+NUMTOSTRN(AA3,2)),COLOR00FFFF;
DRAWTEXTABS(15,85,'10成本:'+NUMTOSTRN(AA4,2)),COLOR00FFFF;
VOL,VOLSTICK;
T1:1/VOL*1000>0.01 AND "KDJ.J"<0;
选股:REF(T1,1)=1 AND T1=0;
选股*MIN(vol*3,MA(V,5)*2),COLORYELLOW,LINETHICK3;

{程序化交易 www.cxh99.com }


{程序化交易 www.cxh99.com }


{程序化交易 www.cxh99.com }
{程序化交易 www.cxh99.com }

 

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

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


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

相关文章

    没有相关内容