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

跌幅涨幅选股--[其他软件公式]

相关标签:

 

跌幅涨幅选股--飞狐}
短期跌幅:(CLOSE-HHV(CLOSE,HHVBARS(CLOSE,0)/3))/HHV(CLOSE,HHVBARS(CLOSE,0)/3)*100,LINETHICK3,PRECISION1;
{短期跌幅:(CLOSE-REF(CLOSE,HHVBARS(CLOSE,0)/3-1))/REF(CLOSE,HHVBARS(CLOSE,0)/3-1)*100,LINETHICK3;}

中期跌幅:(REF(CLOSE,HHVBARS(CLOSE,0)/3)-REF(HHV(CLOSE,HHVBARS(CLOSE,0)/3),HHVBARS(CLOSE,0)/3))/REF(HHV(CLOSE,HHVBARS(CLOSE,0)/3),HHVBARS(CLOSE,0)/3)*100,LINETHICK3,PRECISION1;
{中期跌幅:(REF(CLOSE,HHVBARS(CLOSE,0)/3)-REF(CLOSE,HHVBARS(CLOSE,0)/3*2-1))/REF(CLOSE,HHVBARS(CLOSE,0)/3*2-1)*100,LINETHICK3;}
长期跌幅:(REF(CLOSE,HHVBARS(CLOSE,0)/3*2)-REF(HHV(CLOSE,HHVBARS(CLOSE,0)/3),HHVBARS(CLOSE,0)/3*2))/REF(HHV(CLOSE,HHVBARS(CLOSE,0)/3),HHVBARS(CLOSE,0)/3*2)*100,LINETHICK3,PRECISION1;
{长期跌幅:(REF(CLOSE,HHVBARS(CLOSE,0)/3*2)-HHV(CLOSE,0))/HHV(CLOSE,0)*100,LINETHICK3;}
D3:(CLOSE-HHV(CLOSE,3))/HHV(CLOSE,3)*100,LINETHICK0,PRECISION1;
D5:=(CLOSE-HHV(CLOSE,5))/HHV(CLOSE,5)*100,PRECISION1;
D10:=(CLOSE-HHV(CLOSE,10))/HHV(CLOSE,10)*100,PRECISION1;
D20:=(CLOSE-HHV(CLOSE,20))/HHV(CLOSE,20)*100,PRECISION1;
D30:=(CLOSE-HHV(CLOSE,30))/HHV(CLOSE,30)*100,PRECISION1;
D60:=(CLOSE-HHV(CLOSE,60))/HHV(CLOSE,60)*100,PRECISION1;
D120:=(CLOSE-HHV(CLOSE,120))/HHV(CLOSE,120)*100,PRECISION1;
D240:=(CLOSE-HHV(CLOSE,240))/HHV(CLOSE,240)*100,PRECISION1;
D360:=(CLOSE-HHV(CLOSE,360))/HHV(CLOSE,360)*100,PRECISION1;
短期涨幅:(CLOSE-LLV(CLOSE,HHVBARS(CLOSE,0)/3))/LLV(CLOSE,HHVBARS(CLOSE,0)/3)*100,LINETHICK3,PRECISION1;
中期涨幅:(REF(CLOSE,HHVBARS(CLOSE,0)/3)-REF(llV(CLOSE,HHVBARS(CLOSE,0)/3),HHVBARS(CLOSE,0)/3))/REF(llV(CLOSE,HHVBARS(CLOSE,0)/3),HHVBARS(CLOSE,0)/3)*100,LINETHICK3,PRECISION1;
长期涨幅:(REF(CLOSE,HHVBARS(CLOSE,0)/3*2)-REF(llV(CLOSE,HHVBARS(CLOSE,0)/3),HHVBARS(CLOSE,0)/3*2))/REF(llV(CLOSE,HHVBARS(CLOSE,0)/3),HHVBARS(CLOSE,0)/3*2)*100,LINETHICK3,PRECISION1;

Z3:(CLOSE-LLV(CLOSE,3))/LLV(CLOSE,3)*100,LINETHICK0,PRECISION1;
Z5:=(CLOSE-LLV(CLOSE,5))/LLV(CLOSE,5)*100,PRECISION1;
Z10:=(CLOSE-LLV(CLOSE,10))/LLV(CLOSE,10)*100,PRECISION1;
Z20:=(CLOSE-LLV(CLOSE,20))/LLV(CLOSE,20)*100,PRECISION1;
Z30:=(CLOSE-LLV(CLOSE,30))/LLV(CLOSE,30)*100,PRECISION1;
Z60:=(CLOSE-LLV(CLOSE,60))/LLV(CLOSE,60)*100,PRECISION1;
Z120:=(CLOSE-LLV(CLOSE,120))/LLV(CLOSE,120)*100,PRECISION1;
Z240:=(CLOSE-LLV(CLOSE,240))/LLV(CLOSE,240)*100,PRECISION1;
Z360:=(CLOSE-LLV(CLOSE,360))/LLV(CLOSE,360)*100,PRECISION1;

{提示文字--纯属胡诌}
//选股:短期跌幅>中期跌幅 AND 中期跌幅>长期跌幅,COLORYELLOW;
选股:短期跌幅<MIN(中期跌幅,长期跌幅) AND 短期涨幅<MIN(中期涨幅,长期涨幅) AND 短期跌幅>REF(短期跌幅,1) AND 短期涨幅>REF(短期涨幅,1),COLORYELLOW;
DRAWTEXT(选股,0*1.005,'↑\n↑\n↑'),COLORRED,ALIGN0;
买点A:CROSS(短期跌幅,MIN(中期跌幅,长期跌幅)),COLOR0066CC;
买点B:CROSS(短期涨幅,MIN(中期涨幅,长期涨幅)),COLOR0033FF;
卖点A:CROSS(MIN(中期跌幅,长期跌幅),短期跌幅),COLORFF6633;
卖点B:CROSS(MIN(中期涨幅,长期涨幅),短期涨幅),COLORFFCC33;
DRAWTEXT(买点A,MIN(中期跌幅,长期跌幅)*0.95,'买\n点\nA'),COLOR0066CC,ALIGN0;
DRAWTEXT(买点B,MIN(中期涨幅,长期涨幅)*0.95,'买\n点\nB'),COLOR0033FF,ALIGN0;
DRAWTEXT(卖点A,MIN(中期跌幅,长期跌幅)*1.07,'卖\n点\nA'),COLORFF6633,ALIGN0,PXUP100;
DRAWTEXT(卖点B,MIN(中期涨幅,长期涨幅)*1.07,'卖\n点\nB'),COLORFFCC33,ALIGN0,PXUP100;
加仓A:CROSS(短期跌幅,MAX(中期跌幅,长期跌幅)),COLOR0099CC;
加仓B:CROSS(短期涨幅,MAX(中期涨幅,长期涨幅)),COLOR6666CC;
减仓A:CROSS(MAX(中期跌幅,长期跌幅),短期跌幅),COLOR33FF66;
减仓B:CROSS(MAX(中期涨幅,长期涨幅),短期涨幅),COLORCC0099;
DRAWTEXT(加仓A,MAX(中期跌幅,长期跌幅)*0.95,'加\n仓\nA'),COLOR0099CC,ALIGN0;
DRAWTEXT(加仓B,MAX(中期涨幅,长期涨幅)*0.95,'加\n仓\nB'),COLOR6666CC,ALIGN0;
DRAWTEXT(减仓A,MAX(中期跌幅,长期跌幅)*1.07,'减\n仓\nA'),COLOR33FF66,ALIGN0,PXUP100;
DRAWTEXT(减仓B,MAX(中期涨幅,长期涨幅)*1.07,'减\n仓\nB'),COLORCC0099,ALIGN0,PXUP100;

 

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

 

 

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

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

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

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

 


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

相关文章

    没有相关内容