通达信顶底结构副图副图指标公式源码


DEA : EMA(DIFF,9);
ZERO : 0;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,2,0),COLORRED;
STICKLINE(MACD< 0 AND MACD>=REF(MACD,1),0,MACD,2,0),COLORLIRED;
L4:=LLV(GJ,4);
GT:=DEA>REF(DEA,1) AND REF(DEA,1)< REF(DEA,2);
底部结构:=REF(L4,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND GT;
DRAWLINE(底部结构,DEA,底部结构,REF(DEA,A1),0),COLORRED,LINETHICK2;
H4:=HHV(GJ,4);
A2:=BARSLAST(REF(GT2,1));
DRAWLINE(A2=0 ,DEA,顶部结构,REF(DEA,A2),0),COLORGREEN,LINETHICK2;
DRAWTEXT(顶部结构,REF(DEA,A2)*1.18,' 顶部结构'),COLORGREEN;
A11:=A0>REF(A0,1);
A4:=COUNT(DEA>0 AND DIFF >0,A3)=0;
A6:=BARSLAST(A5);
A8:=(DIFF+DEA)/2;
A10:=A5 AND A7< A3 AND A4 AND A8>REF(A8,A7) AND A9< REF(A9,A7) AND MACD>0;