大智慧趋势自动画线主图指标公式

A6b:=REF(HIGH,3)=HHV(HIGH,2*3+1);

B6b:=FILTER(A6b,3);

C6b:=BacKSET(B6b,3+1);

D6b:=FILTER(C6b,3);

A7b:=REF(LOW,3)=LLV(LOW,2*3+1);

B7b:=FILTER(A7b,3);

C7b:=BACKSET(B7b,3+1);

D7b:=FILTER(C7b,3);

E6b:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;

E7b:=(HIGH+LOW)/2;

H6b:=(D6b AND NOT(D7b AND E6b>=E7b)) OR BARstATUS=2 OR BARSCOUNT(CLOSE)=1;

H7b:=D6b AND NOT(D7b AND E6b>=E7b);

L6b:=D7b AND NOT(D6b AND E6b=E7b);

X6b:=REF(BArslAST(H6b),1)+1;

{ Gupang.com 股-旁-网_大智慧股票指标公式}

F6b:=BACKSET(H6b AND COUNT(L6b,X6b)>0,LLVBARS(IF(L6b,LOW,10000),X6b));

G6b:=F6b>REF(F6b,1);

I6b:=BACKSET(G6b,2);

LD2b:=I6b>REF(I6b,1);

L7b:=LD2b OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;

X7b:=REF(BARSLAST(L7b),1)+1;

F7b:=BACKSET(L7b AND COUNT(H7b,X7b)>0,HHVBARS(IF(H7b,HIGH,0),X7b));

G7b:=F7b>REF(F7b,1);

I7b:=BACKSET(G7b,2);

HD2b:=I7b>REF(I7b,1);

UU3b:=BACKSET(BARSTATUS=2,BARSLAST(LD2b)+1);

VV3b:=UU3b>REF(UU3b,1);

WW3b:=BACKSET(VV3b,REF(BARSLAST(LD2b),1)+2);

XX3b:=WW3b>REF(WW3b,1);

DRAWLINE(XX3b,L,VV3b,L,1),Color00FF00;

UU4b:=BACKSET(BARSTATUS=2,BARSLAST(HD2b)+1);

VV4b:=UU4b>REF(UU4b,1);

WW4b:=BACKSET(VV4b,REF(BARSLAST(HD2b),1)+2);

XX4b:=WW4b>REF(WW4b,1);

DRAWLINE(XX4b,H,VV4b,H,1),COLOR0000FF;