《股票-通达信RSI划线底背离买入指标公式.docx》由会员分享,可在线阅读,更多相关《股票-通达信RSI划线底背离买入指标公式.docx(5页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、通达信RSI划线底背离买入指标公式_正点财经LC:=REF(CLOSE,1);RSI5:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,NODRAW,COLORFFAAFF;RSI10:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100,NODRAW,COLORDDAADD;RSI20:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100,NODRAW,COLORAA99AA;DRAWBAND(RSI5,RGB(195,125
2、,195),RSI10,RGB(0,130,50);DRAWBAND(RSI10,RGB(165,95,165),RSI20,RGB(0,100,20);金叉死叉金叉:CROSS(RSI5,RSI20)ANDCROSS(RSI10,RSI20),COLORRED,NODRAW;DRAWTEXT(金叉,RSI5,),COLORRED;死叉:CROSS(RSI20,RSI10)ANDCROSS(RSI20,RSI5),COLORGREEN,NODRAW;DRAWTEXT(死叉,RSI5,),COLORGREEN;RSI顶底背离RS:=BARSLAST(REF(CROSS(RSI20,RSI5),1
3、);RS1:=REF(CLOSE,RS+1)CLOSEANDREF(RSI5,RS+1)RSI5ANDCROSS(RSI20,RSI5);顶背离:IF(RS1,RSI5,DRAWNULL),CIRCLEDOT,COLORFFCC00;STICKLINE(RS1,RSI5,RSI5*0.9,0,0),COLORFFCC00;DRAWTEXT(RS1,RSI5*0.9,顶背离),COLORFFCC00;S1:=BARSLAST(REF(CROSS(RSI5,RSI20),1);S1A:=REF(CLOSE,S1+1)CLOSEANDRSI5REF(RSI5,S1+1)ANDCROSS(RSI5,R
4、SI20);底背离:IF(S1A,RSI5,DRAWNULL),CIRCLEDOT,COLOR6699FF;STICKLINE(S1A,RSI5,RSI5*1.1,0,0),COLOR6699FF;DRAWTEXT(S1A,RSI5*1.1,底背离),COLOR6699FF;RSI划线OB:=RSI5;A1:=REF(OB,P)=HHV(OB,2*P+1);B1:=FILTER(A1,P);C1:=BACKSET(B1,P+1);D1:=FILTER(C1,P);高点A2:=REF(OB,P)=LLV(OB,2*P+1);B2:=FILTER(A2,P);C2:=BACKSET(B2,P+1)
5、;D2:=FILTER(C2,P);低点R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);S11:=R11REF(R11,1);压力线:DRAWLINE(D1,OB,S11,OB,1),LINETHICK1,COLORCC33CC;T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);U11:=T11REF(T11,1);支撑线:DRAWLINE(D2,OB,U11,OB,1),COLOR00CCCC;DRAWTEXT(CURRBARSCOUNT=30,25,强弱用来看趋势背离用来看顶底),COLORCC99FF;DRAWTEXT(CURRBARSCOUNT=30,15,支撑压力辨起落设定周期参数P),COLORCC99FF;通达信RSI划线底背离买入指标公式实例图解:通达信RSI划线底背离买入指标公式