江恩角度平移指标源码[其他软件公式]
相关标签:通达信抓牛股超好指标 、 通达信手机指标源码 、 bbi指标详解买入绝技 、 通达信九龙神奇指标 、 捕捉牛股最准确的指标 、 股票中最神奇的指标 、 准确率100的技术指标 、 犇股方程式指标源码 、 甘氏线指标公式 、 精准逃顶指标公式 、 通达信主图公式 、 暴涨牛股指标源码 、
s2:=SYSPARAM(2);
s3:=SYSPARAM(3);
s4:=SYSPARAM(4);
s5:=SYSPARAM(5);
hh:=hhvbars(H,s3-s2+1);
ll:=llvbars(L,s3-s2+1);
x:=barpos=s3-hh[s3];
y:=barpos=s3-ll[s3];
k:=(s4-s5)/(s3-s2);
DRAWSL(x,h,-5.5*k/45,0,0),POINTDOT,COLORCYAN;
DRAWSL(x,h,-11*k/45,0,0),POINTDOT,COLORCYAN;
DRAWSL(x,h,-15*k/45,0,0),POINTDOT,COLORCYAN;
DRAWSL(x,h,-22*k/45,0,0),POINTDOT,COLORCYAN;
DRAWSL(x,h,-45*k/45,0,0),COLORCYAN;
DRAWSL(x,h,-90*k/45,0,0),POINTDOT,COLORCYAN;
DRAWSL(x,h,-135*k/45,0,0),POINTDOT,COLORCYAN;
DRAWSL(x,h,-180*k/45,0,0),POINTDOT,COLORCYAN;
DRAWSL(x,h,-360*k/45,0,0),POINTDOT,COLORCYAN;
DRAWSL(x,s5,5.5*k/45,0,0),POINTDOT,COLORMAGENTA;
DRAWSL(x,s5,11*k/45,0,0),POINTDOT,COLORMAGENTA;
DRAWSL(x,s5,15*k/45,0,0),POINTDOT,COLORMAGENTA;
DRAWSL(x,s5,22*k/45,0,0),POINTDOT,COLORMAGENTA;
DRAWSL(x,s5,45*k/45,0,0),COLORMAGENTA;
DRAWSL(x,s5,90*k/45,0,0),POINTDOT,COLORMAGENTA;
DRAWSL(x,s5,135*k/45,0,0),POINTDOT,COLORMAGENTA;
DRAWSL(x,s5,180*k/45,0,0),POINTDOT,COLORMAGENTA;
DRAWSL(x,s5,360*k/45,0,0),POINTDOT,COLORMAGENTA;
DRAWSL(y,s4,-5.5*k/45,0,0),POINTDOT,COLORCYAN;
DRAWSL(y,s4,-11*k/45,0,0),POINTDOT,COLORCYAN;
DRAWSL(y,s4,-15*k/45,0,0),POINTDOT,COLORCYAN;
DRAWSL(y,s4,-22*k/45,0,0),POINTDOT,COLORCYAN;
DRAWSL(y,s4,-45*k/45,0,0),COLORCYAN;
DRAWSL(y,s4,-90*k/45,0,0),POINTDOT,COLORCYAN;
DRAWSL(y,s4,-135*k/45,0,0),POINTDOT,COLORCYAN;
DRAWSL(y,s4,-180*k/45,0,0),POINTDOT,COLORCYAN;
DRAWSL(y,s4,-360*k/45,0,0),POINTDOT,COLORCYAN;
DRAWSL(y,s5,5.5*k/45,0,0),POINTDOT,COLORMAGENTA;
DRAWSL(y,s5,11*k/45,0,0),POINTDOT,COLORMAGENTA;
DRAWSL(y,s5,15*k/45,0,0),POINTDOT,COLORMAGENTA;
DRAWSL(y,s5,22*k/45,0,0),POINTDOT,COLORMAGENTA;
DRAWSL(y,s5,45*k/45,0,0),COLORMAGENTA;
DRAWSL(y,s5,90*k/45,0,0),POINTDOT,COLORMAGENTA;
DRAWSL(y,s5,135*k/45,0,0),POINTDOT,COLORMAGENTA;
DRAWSL(y,s5,180*k/45,0,0),POINTDOT,COLORMAGENTA;
DRAWSL(y,s5,360*k/45,0,0),POINTDOT,COLORMAGENTA;
JJ:=(C*2+H+L-O)/3;
E:=IF(L>AMOUNT/100/vol,JJ*V,AMOUNT/100);
A1:=SUM(E,3)/SUM(VOL,3);
A2:=SUM(E,8)/SUM(VOL,8);
A3:=SUM(E,21)/SUM(VOL,21);
DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:= 2*(DIFF-DEA);
V1:=C-(A1+MA(C,3))/2;
V2:=C-(A2+MA(C,8))/2;
V3:=C-(A3+MA(C,21))/2;
VA1:=(C+V3-V1+MACD);
VA4:=(C+V2-V1+MACD);
DX:=EMA((VA1+VA4)/2,6);
生:DX;
PARTLINE(dx>=ref(dx,1),dx),COLORRED, LINETHICK2;
PARTLINE(dx<ref(dx,1),dx),COLORgreen, LINETHICK2;
th:=BARSLAST(h=s4);
tl:=BARSLAST(l=s5);
tm:=abs(th-tl);
drawtext(th=tm*1.5 or tl=tm*1.5,l-0.02,'时窗'),COLORWHITE;
drawtext(th=tm*2 or tl=tm*2,l-0.02,'时窗'),COLORyellow;
drawtext(th=tm*2.5 or tl=tm*2.5,l-0.02,'时窗'),COLORwhite;
drawtext(th=tm*3 or tl=tm*3,l-0.02,'时窗'),COLORyellow;
drawtext(th=tm*4 or tl=tm*4,l-0.02,'时窗'),COLORyellow;
drawtext(th=tm*5 or tl=tm*5,l-0.02,'时窗'),COLORyellow;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
相关文章
-
没有相关内容