大智慧趋势线A主图指标
-
相关简介:大智慧趋势线A主图指标 源码 {位高手兄:参考看看} {改成L2 by一鸣} input:n(5); {例} MA(CLOSE,5); MA(CLOSE,10),color00FF00; MA(CLOSE,20),COLORyellow; MA(CLOSE,34),colorFF0000; A2:=(REF(HIGH,n) = HHV(HIGH,((2 * n) + 1))); B1:=FILTER(A2,n); D1:=BACKSET(B1,(n + 1)); C2:=FILTER(D1,
-
文章来源:股海网作者:股海网发布时间:2016-03-15浏览次数:
大智慧趋势线A主图指标
源码
{位高手兄:参考看看}
{改成L2 by一鸣}
input:n(5); {例}
MA(CLOSE,5);
MA(CLOSE,10),color00FF00;
MA(CLOSE,20),COLORyellow;
MA(CLOSE,34),colorFF0000;
A2:=(REF(HIGH,n) = HHV(HIGH,((2 * n) + 1)));
B1:=FILTER(A2,n);
D1:=BACKSET(B1,(n + 1));
C2:=FILTER(D1,n);
A3:=(REF(LOW,n) = LLV(LOW,((2 * n) + 1)));
B2:=FILTER(A3,n);
D2:=BACKSET(B2,(n + 1));
C3:=FILTER(D2,n);
E2:=((REF(LLV(LOW,(2 * n)),1) + REF(HHV(HIGH,(2 * n)),1)) / 2);
H1:=((HIGH + LOW) / 2);
H2:=(((C2 AND NOT((C3 AND (E2 >= H1)))) OR BARSTATUS=2) OR (BARSCOUNT(CLOSE) = 1));
X1:=(C3 AND NOT((C2 AND (E2 < H1))));
F1:=(C2 AND NOT((C3 AND (E2 >= H1))));
G1:=(REF(BARSLAST(H2),1) + 1);
I1:=BACKSET((H2 AND (COUNT(X1,G1) > 0)),LLVBARS(IF(X1,LOW,10000),G1));
LD:=(I1 > REF(I1,1));
L2:=BACKSET(LD,2);
X2:=(L2 > REF(L2,1));
F2:=((X2 OR BARSTATUS=2) OR (BARSCOUNT(CLOSE) = 1));
G2:=(REF(BARSLAST(F2),1) + 1);
I2:=BACKSET((F2 AND (COUNT(F1,G2) > 0)),HHVBARS(IF(F1,HIGH,0),G2));
HD:=(I2 > REF(I2,1));
J1:=BACKSET(HD,2);
J2:=(J1 > REF(J1,1));
UU:=BACKSET(BARSTATUS=2,(MIN(BARSLAST(J2),BARSLAST(X2)) + 1));
VV:=(UU > REF(UU,1));
WW:=BACKSET(BARSTATUS=2,(BARSLAST(X2) + 1));
XX:=(WW > REF(WW,1));
UU2:=BACKSET(XX,(REF(BARSLAST(X2),1) + 2));
VV2:=(UU2 > REF(UU2,1));
下轨:DRAWLINE(VV2,LOW,XX,LOW,1),pointDOT,LINETHICK1,color0000FF;
WW2:=BACKSET(BARSTATUS=2,(BARSLAST(J2) + 1));
XX2:=(WW2 > REF(WW2,1));
C0:=BACKSET(XX2,(REF(BARSLAST(J2),1) + 2));
DSY:=(C0 > REF(C0,1));
上轨:DRAWLINE(DSY,HIGH,XX2,HIGH,1),pointDOT,LINETHICK1,color00FF00;
上一篇:大智慧趋势追涨主图指标
下一篇:大智慧趋势先机主图指标