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

准确率还是挺高的趋势线买点准备指标公式[大智慧公式]

 

源代码:

趋势线:(3)*(SMA(((C-LLV(L,27))/(HHV(H,27)-LLV(L,27)))*(100),5,1))-(2)*(SMA(SMA(((C-LLV(L,27))/(HHV(H,27)-LLV(L,27)))*(95),5,1),3,1)),CoLorF0F000;

买点准备:IF((趋势线<=10),12,0),Linethick2,CoLor0000FF;
V1:=MA(((100)*(C-LLV(C,34)))/(HHV(H,34)-LLV(L,34)),5)-20;
V2:=(2)*(ABS(V1));
V3:=100-100-(3)*(SMA(((C-LLV(L,55))/(HHV(H,55)-LLV(L,55)))*(100),20,1))+(2)*(SMA(SMA(((C-LLV(L,55))/(HHV(H,55)-LLV(L,55)))*(100),20,1),15,1));
V4:=100-100-(3)*(SMA(((O-LLV(L,55))/(HHV(H,55)-LLV(L,55)))*(100),20,1))+(2)*(SMA(SMA(((O-LLV(L,55))/(HHV(H,55)-LLV(L,55)))*(100),20,1),15,1));
V5:=(H+L+C)/(3);
V6:=(V5-MA(V5,10))/((0.015)*(AVEDEV(V5,10)));
V7:=(V5-MA(V5,30))/((0.015)*(AVEDEV(V5,30)));
V8:=IF((V6>=150) AND (V6<200) AND (V7>=150) AND (V7<200),10,0);
V9:=IF((V6<=(-150)) AND (V6>(-200)) AND (V7<=(-150)) AND (V7>(-200)),(-10),V8);
VA:=((C-MA(C,13))/(MA(C,13)))*(100);
VB:=100-ABS(VA);
VC:=(3)*(SMA(((INDEXC-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55)))*(100),20,1))-(2)*(SMA(SMA(((INDEXC-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55)))*(100),20,1),15,1));
VD:=(3)*(SMA(((INDEXO-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55)))*(100),20,1))-(2)*(SMA(SMA(((INDEXO-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55)))*(100),20,1),15,1));
VE:=(REF(L,1))*(0.9);
VF:=(L)*(0.9);
顶线:=IF((VB<90),VB,100);
多方:IF((V1>0),V1,0),LINESTICK,CoLorFF00FF;
空方:(-IF((V1<0),V2,0)),LINESTICK,CoLorF0F000;
预警系统:IF(((V7>=200) AND (V6>=150) or CROSS(65,多方)),15,IF((V7<=(-200)) AND (V6<=(-150)),(-15),V9))+65,CoLor000000;
大趋势:=V3;
STICKLINE((V3<=REF(V4,1)),V3,V4,8,0),CoLor00FF00;
STICKLINE((V3>REF(V4,1)),V3,V4,8,0),CoLor0000FF;
T1:=(C>MA(C,20)) AND (MA(C,20)>=REF(MA(C,20),1));
T2:=C;
T3:=(多方>60) AND (预警系统>65) AND (顶线=100);
T4:=(多方>48) AND (预警系统>65) AND (顶线<100);
T5:=(空方<(-38)) AND (预警系统<65);
T7:=(V3>REF(V4,1)) AND (V>REF(V,1)) AND (C>REF(C,1));
T8:(V3<=REF(V4,1)) AND C AND (空方>=REF(空方,1)) AND VC,CoLorFF0000;
DRAWTEXT(T1 AND (COUNT(T1,30)=1),10,'上升通道!'),CoLor00FFFF;
下降通道:DRAWTEXT(T2 AND (COUNT(T2,30)=1),80,'下降通道'),CoLorFFFFFF;
上涨过急:DRAWTEXT(T3 AND (COUNT(T3,30)=1),80,'上涨过急'),CoLor00FF00;
资金进场:DRAWTEXT(T7 AND (COUNT(T7,30)=1),(-10),'资金进场'),CoLor00FFFF;
DRAWTEXT(T8 AND (COUNT(T8,30)=1),90,'见顶回落'),CoLorF0F000;
A1:=((HHV(H,50))/(LLV(L,100))>1.5);
A2:=(HHV(H,50)-L)/(HHV(H,50)-LLV(L,100));
A3:=(L-LLV(L,100))/(HHV(H,50)-LLV(L,100));
A4:=(HHVBARS(H,50)<LLVBARS(L,100));
A5:=A1 AND (A2>0.5) AND (A3>0.3) AND A4;
A6:=(COUNT(A5,20)=1);
抢反弹:IF(A6 AND A5,26,0),Stick,Linethick2,CoLor00FFFF;
DRAWTEXT(抢反弹,32,'抢反弹'),CoLor0099FF;
cxh2W:=100-((100)*(HHV(H,14)-C))/(HHV(H,14)-LLV(L,14));
MW:=EMA(cxh2W,3);
cxh3W:=EMA(cxh2W,7);
M1:=EMA(cxh3W,5);
MB1:=CROSS(MW,M1) AND (M1<20);
抄底:IF(MB1,40,0),Linethick2,CoLorFFFFFF;
DRAWTEXT(抄底,62,''),CoLor00FFFF;
DRAWTEXT(抄底,52,'抄底 '),CoLorFF00FF;
A11:=MA(C,5);
A12:=MA(C,10);
A13:=MA(C,20);
A14:=MA(C,30);
均线多头排列:IF((A11>A12) AND (A12>A13) AND CROSS(A13,A14) AND ISUP,25,0),Stick,Linethick2,CoLor00BBFF;
DRAWTEXT((A11>A12) AND (A12>A13) AND CROSS(A13,A14) AND ISUP,35,'均线多头'),CoLorBBFFFF;


{程序化交易 www.cxh99.com }
准确率还是挺高的趋势线买点准备指标公式{程序化交易 www.cxh99.com }
准确率还是挺高的趋势线买点准备指标公式

 

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

 

 

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

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

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

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

 


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

相关文章

    没有相关内容