/*
KK1:=IFELSE(CLOSE<OPEN&&QQ<0,QQ,0);
KKK1:=IFELSE(CLOSE=OPEN,QQ*,0);
K2:=IFELSE(CLOSE<OPEN&&QQ>=0,QQ,0);
A2:=REF(LOW,NF)=LLV(LOW,4*NF+1);
B2:=FILTER(A2,NF);
CB2:=BACKSET(B2,NF+1);
D2:=FILTER(CB2,NF);//{低点}
E1:=(REF(LLV(LOW,2*NF),1)+REF(HHV(HIGH,2*NF),1))/2,COLORBLACK;
E10:=(REF(LLV(LOW,ROUND(SQRT(2*NF),2)),1)+REF(HHV(HIGH,ROUND(SQRT(2*NF),2)),1))/2,COLORRED;
E2:=(HIGH+LOW)/2;
H1:=(D1 AND NOT((D2 AND E1>=E2))) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
L1:=(D2 AND NOT((D1 AND E1<E2))),NODRAW;
H2:=D1 AND NOT((D2 AND E1>=E2));
X1:=REF(BARSLAST(H1),1)+1;
F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(LOW,X1)+1);//
G1:=F1>REF(F1,1);//
I1:=BACKSET(G1,1);//
LD:=I1>REF(I1,1);//{过滤后低点}
L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1;
F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(H,X2)+1);
G2:=F2>REF(F2,1);//
I2:=BACKSET(G2,1);//
HD:=I2>REF(I2,1) ;//{过滤后高点}
DD1:=VALUEWHEN(LD ,L);
GD1:=VALUEWHEN(HD ,H);
DRAWTEXT(LD&&NOT(HD),L,' 买'),FONTSIZE18,COLORYELLOW,VALIGN0;
DRAWTEXT(HD,H,' 卖'),FONTSIZE18,COLORGREEN,VALIGN0,VALIGN2;
Q:=BARSLAST(HD);
W:=BARSLAST(LD);
DRAWSL(Q<W,GD1,0,1,0,RGB(187,0,0)),LINETHICK3;
DRAWSL(Q>W,DD1,0,1,0,COLORBLUE),LINETHICK3;
//DRAWCOLORKLINE(W<Q,RGB(187,0,0),0);
//DRAWCOLORKLINE(W>Q,COLORBLUE,0);
//DRAWCOLORKLINE(L>=GD1,RGB(187,0,0),0);
//DRAWCOLORKLINE(H<=DD1,COLORBLUE,0);
文华财经期货软件指标公式原油股指期货最准确的指标最准确的指标 来自淘豆网m.daumloan.com转载请标明出处.