A1:=HHV(H,500);
A2:=LLV(L,500);
A3:=(A1+A2)/2;
M5:MA(C,5),LINETHICK2;
M10:MA(C,10),LINETHICK2;
M20:MA(C,20),LINETHICK2;
M60:MA(C,60),LINETHICK2;
K0:(0.5*A1+0.5*A2),COLORRED,LINETHICK2;
K1:(0.618*A1+0.382*A2),COLORLIRED,LINETHICK2;
K2:A2+(A1-A2)*0.74,LINETHICK2;
K3:A2+(A1-A2)*0.865,LINETHICK2;
K4:A2+(A1-A2)*0.98,LINETHICK2;
K5:(0.382*A1+0.618*A2),COLORLIBLUE,LINETHICK2;
K6:A1-(A1-A2)*0.74,LINETHICK2;
{ _通达信股票指标公式}
K7:A1-(A1-A2)*0.865,COLORLIMAGENTA,LINETHICK2;
K8:A1-(A1-A2)*0.98,COLORBLUE,LINETHICK3;
DRAWTEXT(ISLASTBAR>0 ,Abs(K0)*1.0,’0′);
DRAWTEXT(ISLASTBAR>0 ,ABS(K1)*1.0,’+1′);
DRAWTEXT(ISLASTBAR>0 ,ABS(K2)*1.0,’+2′);
DRAWTEXT(ISLASTBAR>0 ,ABS(K3)*1.0,’+3′);
DRAWTEXT(ISLASTBAR>0 ,ABS(K4)*1.0,’+4′);
DRAWTEXT(ISLASTBAR>0 ,ABS(K5)*1.0,’-1′);
DRAWTEXT(ISLASTBAR>0 ,ABS(K6)*1.0,’-2′);
DRAWTEXT(ISLASTBAR>0 ,ABS(K7)*1.0,’-3′);
DRAWTEXT(ISLASTBAR>0 ,ABS(K8)*1.0,’-4′);
DRAWTEXT(CURRBARSCOUNT=5,K0*1.0,’5′);
DRAWTEXT(CURRBARSCOUNT=10,K0*1.0,’10’);
DRAWTEXT(CURRBARSCOUNT=15,K0*1.0,’15’);
DRAWTEXT(CURRBARSCOUNT=20,K0*1.0,’20’);
DRAWTEXT(CURRBARSCOUNT=30,K0*1.0,’30’);
DRAWTEXT(CURRBARSCOUNT=34,K0*1.0,’34’);
DRAWTEXT(CURRBARSCOUNT=40,K0*1.0,’40’);
DRAWTEXT(CURRBARSCOUNT=50,K0*1.0,’50’);
DRAWTEXT(CURRBARSCOUNT=55,K0*1.0,’55’);
DRAWTEXT(CURRBARSCOUNT=60,K0*1.0,’60’);
DRAWTEXT(CURRBARSCOUNT=70,K0*1.0,’70’);
DRAWTEXT(CURRBARSCOUNT=80,K0*1.0,’80’);
DRAWTEXT(CURRBARSCOUNT=89,K0*1.0,’89’);
DRAWTEXT(CURRBARSCOUNT=100,K0*1.0,’100′);
DRAWTEXT(CURRBARSCOUNT=110,K0*1.0,’110′);
DRAWTEXT(CURRBARSCOUNT=120,K0*1.0,’120′);
DRAWTEXT(CURRBARSCOUNT=144,K0*1.0,’144′);

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。