同花顺多空线指标公式源码
-
相关简介:同花顺多空线指标公式源码 S1:=SUM(C,1);S2:=SUM(O,1);KE:=IF(S1S2,S2,S1);C0:=REF(CLOSE,0); C1:=REF(CLOSE,1);C2:=REF(CLOSE,2);C3:=REF(CLOSE,3);ZH:=c1c2;ZL:=c1c2; ZH1:=c1c2 and c1c3;ZH2:=c1c2 and c1c3;ZL1:=C1C2 and c1c3;ZL2:=c1c2 and c1c3; STICKLINE(KE,c0,c1,6.6,0),C
-
文章来源:股海网作者:股海网发布时间:2012-04-02浏览次数:
同花顺多空线指标公式源码
S1:=SUM(C,1);S2:=SUM(O,1);KE:=IF(S1<S2,S2,S1);C0:=REF(CLOSE,0);
C1:=REF(CLOSE,1);C2:=REF(CLOSE,2);C3:=REF(CLOSE,3);ZH:=c1>c2;ZL:=c1<c2;
ZH1:=c1>c2 and c1>c3;ZH2:=c1<c2 and c1>c3;ZL1:=C1<C2 and c1<c3;ZL2:=c1>c2 and c1<c3;
STICKLINE(KE,c0,c1,6.6,0),COLOR00FF00;STICKLINE(c0>c1,c0,c1,6.6,1),COLOR0000FF;
A1:=(ZH1 or ZH2) and c0>c1;STICKLINE(A1,c0,c1,6.6,1),COLOR0000FF;
A2:=(ZH1 or ZH2) AND c0<c1 and c0>c2;STICKLINE(A2,c1,c0,6.6,1),COLOR0000FF;
A3:= (ZH1 or ZH2) AND c0<c2;STICKLINE(A3,c2,c1,6.6,0),COLORFF5500;
A4:=(ZL1 OR ZL2) AND c0<c1;STICKLINE(A4,c0,c1,6.6,0),COLORGREEN;
A5:=(ZL1 OR ZL2) AND c0>c1 AND c0<=c2;STICKLINE(A5,c0,c1,6.6,0),COLORGREEN;
A6:=(ZL1 OR ZL2) AND C0>c1 and c0>c2;STICKLINE(A6,c2,c1,6.6,0 ),COLOR00FFFF;
XMA:ma(c,5),color00FF00;DD5:=XMA>REF(XMA,1);
PARTLINE(DD5,XMA),COLOR0000FF,linethick1;
x:=(3*c+l+o+h)/6;
多空线:(20*x+19*ref(x,1)+18*ref(x,2)+17*ref(x,3)+16*ref(x,4)+15*ref(x,5)+14*ref(x,6)
+13*ref(x,7)+12*ref(x,8)+11*ref(x,9)+10*ref(x,10)+9*ref(x,11)+8*ref(x,12)
+7*ref(x,13)+6*ref(x,14)+5*ref(x,15)+4*ref(x,16)+3*ref(x,17)+2*ref(x,18)+
ref(x,20))/210,colorff00ff,linethick1;
DD:=多空线<REF(多空线,1);PARTLINE(DD,多空线),colorblue,linethick2;
A:=(XMA>多空线);PARTLINE(A,多空线),COLORYELLOW,POINTDOT;
A1:=(XMA<多空线);PARTLINE(A1,多空线),COLORFFFFFF;