您现在的位置:程序化交易>> 股票公式>> 其他>> 其他软件公式>>正文内容

不错的主图指标公式[其他软件公式]

相关标签:

 

DRAWTEXT((SYSPARAM(2) = BARPOS),CLOSE,('版块:' + BLKNAME)),ALIGN4;
DRAWTEXTEX(CLOSE,1,10,50,'收益:'+ NUMTOSTR(FINANCE(33),2)+' 元'),ColorFFB060;
DRAWTEXTEX(CLOSE,1,200,50,'净资产:'+NUMTOSTR(FINANCE(34),2 )+' 元'),ColorFFB060;
DRAWTEXTEX(CLOSE,1,10,100,'流通股:'+ NUMTOSTR(FINANCE(7)/10000,2)+' 亿'),ColorFFB060;
DRAWTEXTEX(CLOSE,1,200,100,'占总股本:'+NUMTOSTR(FINANCE(7)/FINANCE(1)*100 ,2)+' %'),ColorFFB060;

{均线系统}
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA60:MA(CLOSE,60);

{通用条件}
LASTK:=(REFX(ISLASTBAR,2)=0);
上涨:=CLOSE>REF(CLOSE,1);
未跌破:=REFX(CLOSE,1)>LOW AND REFX(CLOSE,2)>LOW AND REFX(CLOSE,3)>LOW;
缩量:=VOL>0.35*(REFX(VOL,1)+REFX(VOL,2)+REFX(VOL,3)) AND VOL>REFX(VOL,1);{1.05/3,5%}
逐级缩量:=VOL>REFX(VOL,1) AND REFX(VOL,1)>REFX(VOL,2) AND REFX(VOL,2)>REFX(VOL,3);
逐级价升:=CLOSE<REFX(CLOSE,1) AND REFX(CLOSE,1)<REFX(CLOSE,2) AND REFX(CLOSE,2)<REFX(CLOSE,3);
{倍量柱}
倍量柱:VOL>=(REF(VOL,1)+REF(VOL,1))*0.9,LINETHICK0,COLORWHITE;
{高量柱}
高量柱:VOL>0.3*(REF(SUM(VOL,3),1)+REFX(SUM(VOL,3),3)) AND VOL>REF(VOL,1) AND VOL>REFX(VOL,1),LINETHICK0,COLORWHITE;{1.8/6,1.8倍}
{平量柱}
平量柱:VOL>REFX(VOL,1)*0.97 AND VOL<REFX(VOL,1)*1.03 AND VOL>=2*REF(VOL,1),LINETHICK0,COLORWHITE;
{梯量柱}
梯量柱:VOL>REF(VOL,1) AND REF(VOL,1)>REF(VOL,2) AND CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2),LINETHICK0,COLORWHITE;{虽然是梯量柱,但也不能太小}
{将军柱}
将军柱:LASTK AND 上涨 AND 未跌破 AND (倍量柱 OR 高量柱 OR 平量柱 OR 梯量柱),LINETHICK0,COLORYELLOW;
{黄金柱}
黄金柱:将军柱 AND 缩量,LINETHICK0,COLORYELLOW;
{标准黄金柱}
标准黄金柱:黄金柱 AND 逐级缩量 AND 逐级价升,LINETHICK0,COLORRED;

{输出}
DRAWICON(黄金柱 AND 标准黄金柱=0 AND BARSLAST(REF(黄金柱,1))>1,LOW,8),COLORRED;
DRAWICON(标准黄金柱,LOW,4),COLORRED;
DRAWICON(将军柱 AND BARSLAST(REF(将军柱,1))>1 AND BARSLAST(黄金柱)>1,LOW,10),COLORRED;

MA135:=MA(VOL,135);
TJ1:=(VOL=HHV(VOL,10) AND VOL>1.7*REF(VOL,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE>=OPEN AND VOL<=MA135*3.5);

LJL:=FILTER(TJ1,3);

TJ3:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(LOW,3),1,0);

ST:=TJ3=1;

CL:=FILTER(ST,3);

STICKLINE(CLOSE,REF(LOW,BARSLAST(CL)),REF(LOW,BARSLAST(CL)),5,0),COLORYELLOW;

STICKLINE(CLOSE,REF(LOW,BARSLAST(LJL)),REF(LOW,BARSLAST(LJL)),5,0),COLORCYAN;

STICKLINE(LJL,OPEN,CLOSE,6,0),COLORYELLOW;

DRAWTEXT(LJL,LOW*0.99,'支撑'),COLORF00FF0;
GJTJ1:=100*(CLOSE-LLV(LOW,5))/(HHV(CLOSE,5)-LLV(LOW,5));
GJTJ2:=100*(CLOSE-LLV(LOW,10))/(HHV(CLOSE,10)-LLV(LOW,10));
GJTJ3:=100*(CLOSE-LLV(LOW,20))/(HHV(CLOSE,20)-LLV(LOW,20));
GJTJ4:=100*(CLOSE-LLV(LOW,30))/(HHV(CLOSE,30)-LLV(LOW,30));
BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;
BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
BAIJIN3:=GJTJ1>60 AND GJTJ4>70;
DRAWTEXT(BAIJIN1 AND BAIJIN2 AND BAIJIN3,LOW-0.02,'白金');

HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3;
HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
DRAWTEXT(HUANGJIN1 AND HUANGJIN2,LOW-0.03,'黄金');

XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;
DRAWTEXT(COUNT(XG,3)=1 AND XG AND CLOSE>MA(CLOSE,20),LOW-0.02,'暴涨启动'),COLORRED;

ZHENCANG1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;
ZHENCANG2:=BARSLAST(CROSS(GJTJ4,GJTJ2));
ZHENCANG3:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;
ZHENCANG4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;
ZHENCANG5:=GJTJ2<GJTJ3 AND GJTJ1=100;
ZCB1:=ZHENCANG1>0 AND REF(ZHENCANG1,1)=0 AND REF(ZHENCANG1,2)>0;
DRAWTEXT(ZHENCANG1 AND ZHENCANG2 AND ZHENCANG3 AND ZHENCANG4 AND ZHENCANG5,LOW-0.05,'震仓启点');

AA:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1;
BB:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1;
AA1:=AA AND BB;
AAA:=BARSLAST(CROSS(97,GJTJ1))<=2 AND BARSLAST(CROSS(GJTJ1,85))<=1;
BAA:=BARSLAST(CROSS(97,GJTJ2))<=2 AND BARSLAST(CROSS(GJTJ2,85))<=1;
AA2:=AA AND BB ;
AAAA:=BARSLAST(CROSS(97,GJTJ1))<=3 AND BARSLAST(CROSS(GJTJ1,85))<=1;
BAAA:=BARSLAST(CROSS(97,GJTJ2))<=3 AND BARSLAST(CROSS(GJTJ2,85))<=1;
AA3:=AAAA AND BAAA ;
BB1:=REF(AA1,1);
BB2:=REF(AA2,1);
BB3:=REF(AA3,1);
DD1:=GJTJ1=100 AND GJTJ2=100 AND AA1 ;
DD2:=GJTJ1=100 AND GJTJ2=100 AND AA2 ;
DD3:=GJTJ1=100 AND GJTJ2=100 AND AA3 ;
DRAWTEXT(DD1 OR DD2 OR DD3,LOW-0.02,'短线追涨');

AW:=BARSLAST(CROSS(95,GJTJ1))<=2;
BW:=BARSLAST(CROSS(95,GJTJ2))<=2;
EW:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ3;
FW:=GJTJ2>50 AND GJTJ3>50;
GW:=GJTJ1=100 AND GJTJ2=100;
TXW:=COUNT(GW,2)=1;
DRAWTEXT(AW AND BW AND EW AND FW AND TXW,LOW-0.03,'起涨首日');

AQ:=GJTJ3=100;
BQ:=GJTJ4<90;
DRAWTEXT(COUNT(AQ,2) = 2 AND BQ,LOW-0.02,'波启前兆');
AA1:=AMOUNT/VOL;
BB1:=LOW<AA1*0.9;
CC1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;
DD1:=LOW<MA(CLOSE,5)*0.921;
EE1:=VOL<MA(VOL,5)*1.5;
老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0;
DRAWTEXT(老鼠仓,(LOW* 0.99),'老鼠仓'),COLOR40CCFF;

 

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

 

 

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

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

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

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

 


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

相关文章

    没有相关内容