通达信CYS量价背离指标公式

通达信强势横盘不破选股指标公式

通达信CYS量价背离指标公式:

DRAWGBK(O>=0,RGB(22,22,22),RGB(22,22,22),0,'0',0);

+5,DOTLINE,COLORYELLOW;

DRAWTEXT(ISLAstBAR,+5,' +5金线'),COLORWHITE;

-6,DOTLINE,COLORRED;

DRAWTEXT(ISLASTBAR,-6,' -6'),COLORWHITE;

DRAWBAND(-16,RGB(64,128,64),-20,RGB(22,22,22));

DRAWBAND(-20,RGB(0,100,0),-25,RGB(22,22,22));

DRAWTEXT(ISLASTBAR,-16,' -16'),COLORWHITE;

DRAWTEXT(ISLASTBAR,-20,' -20'),COLORWHITE;

DRAWTEXT(ISLASTBAR,-25,' -25'),COLORWHITE;

cyc13:=0.01*EMA(AMOUNT,13)/EMA(vol,13);

CYS:(CLOSE-CYC13)/CYC13*100,COLORYELLOW,LINETHICK2;

N:=5;

底背离:=REF(C,BArslAST(REF(FILTER(BacKSET(REF(cys,N)=LLV(CYS,2*N+1),N+1),N) AND CYS=LLV(CYS,N+1),1))+1)>C AND REF(CYS,BARSLAST(REF(FILTER(BACKSET(REF(CYS,N)=LLV(CYS,2*N+1),N+1),N) AND CYS=LLV(CYS,N+1),1))+1)<CYS AND FILTER(BACKSET(REF(CYS,N)=LLV(CYS,2*N+1),N+1),N) AND CYS=LLV(CYS,N+1),COLORWHITE,NODRAW;

DRAWLINE(FILTER(BACKSET(REF(CYS,N)=LLV(CYS,2*N+1),N+1),N) AND CYS=LLV(CYS,N+1),CYS,FILTER(底背离>0,5),CYS,0),COLORWHITE,DOTLINE;

DRAWTEXT(底背离,CYS,'↑底背离'),COLORWHITE;

顶背离:=REF(C,BARSLAST(REF(FILTER(BACKSET(REF(CYS,N)=HHV(CYS,2*N+1),N+1),N) AND CYS=HHV(CYS,N+1),1))+1)<C AND REF(CYS,BARSLAST(REF(FILTER(BACKSET(REF(CYS,N)=HHV(CYS,2*N+1),N+1),N) AND CYS=HHV(CYS,N+1),1))+1)>CYS AND FILTER(BACKSET(REF(CYS,N)=HHV(CYS,2*N+1),N+1),N) AND CYS=HHV(CYS,N+1),COLORGREEN,NODRAW;

DRAWLINE(FILTER(BACKSET(REF(CYS,N)=HHV(CYS,2*N+1),N+1),N) AND CYS=HHV(CYS,N+1),CYS,FILTER(顶背离>0,5),CYS,0),COLORGREEN,DOTLINE;

DRAWTEXT(顶背离,CYS,'↓顶背离'),COLORGREEN;

DRAWTEXT_FIX(C>0,0.65,0.90,0,'穿过红线(-6)是多头'),COLORLIRED;

DRAWTEXT_FIX(C>0,0.78,0.90,0,'绿色(-16~-25)是超卖区(关注)'),COLORLIGREEN;

DRAWTEXT_FIX(C>0,0.01,0.9,0,'CYS - 市场盈亏指标'),COLORYELLOW;

通达信突破炸板选股指标公式