月K:=”KDJ.K#MONTH”COLOR0080FF;
月D:=”KDJ.D#MONTH”;
周K:=”KDJ.K#WEEK”;
周D:=”KDJ.D#WEEK”;
日K:=”KD.K”;
日D:=”KD.D”;
日金叉:IF(CROSS(日K,日D),5,-9),COLORWHITE;
周金叉:IF(CROSS(周K,周D),12,-9),COLORRED;
月金叉:IF(CROSS(月K,月D),15,-9),COLOR0080FF;
周死叉:IF(CROSS(周D,周K),18,-9),COLORFFFF00;
月死叉:IF(CROSS(月D,月K),22,-9),COLORGREEN;
STICKLINE(CROSS(日K,日D),-3,-9,1.5,0),COLORFFFFFF;
STICKLINE(CROSS(周K,周D),3,-3,1.5,0),COLOR0000FF;
DIFF:=EMA(CLOSE,10) – EMA(CLOSE,22);
DEA :=EMA(DIFF,7.5);{
MACD :=2*(DIFF-DEA);}
AA1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
{ 概念股网_通达信股票指标公式}
BB1:=(REF(L,AA1+1)>L OR REF(C,AA1+1)>C) AND REF(L,DIFF)>REF((L,DIFF),AA1+1) AND CROSS(DIFF,DEA);{底背离}
AAA2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
BBB1:=(REF(C,AAA2+1)C AND REF(“KDJ.K”(9,3,3),AA2+1)C AND REF(“RSI.RSI1″(6,12,24),AA3+1)0,0,0),COLOR208FFF;
MACD顶背:IF(BBB1>0,0,0),COLOR00FF00;
KDJ底背:IF(BB2>0,0,0),COLOR0000FF;
KDJ顶背:IF(D2>0,0,0),COLORFFCC66;
RSI底背:IF(BB3>0,0,0),COLORFF9F00;
RSI顶背:IF(D3>0,0,0),COLORFFFFFF;
STICKLINE(BB1>0,45,50,3,0),COLOR208FFF;
STICKLINE(BBB1>0,55,50,3,0),COLOR00FF00;
STICKLINE(BB2>0,45,50,2.5,0),COLOR0000FF;
STICKLINE(D2>0,55,50,2.5,0),COLORFFCC66;
STICKLINE(BB3>0,45,50,1.5,0),COLORFF9F00;
STICKLINE(D3>0,55,50,1.5,0),COLORWHITE;
AS1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:REF(DIFF,AS1+1)REF(K,1),K,’▲’),COLORFFAAFF;
DRAWTEXT(ISLASTBAR AND KREF(JB,1),JB,’▲’),COLOR00FFFF;
DRAWTEXT(ISLASTBAR AND JB=150,101,98,1.5,0) ,COLOR508FFF;
STICKLINE(RSI1>76,104,102,1.5,0) ,COLORFFFF00;
STICKLINE(JA>90,106,104,1.5,0) ,COLOR0000FF;
RSI5:=((SMA(MAX((CLOSE – LC),0),5,1) / SMA(ABS((CLOSE – LC)),5,1)) * 100);
R:=SUM(MAX(MAX((HIGH – LOW),ABS((HIGH – REF(CLOSE,1)))),ABS((LOW – REF(CLOSE,1)))),10);
HD:=(HIGH – REF(HIGH,1));
LD:=(REF(LOW,1) – LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / R);
MDI:=((DMM * 100) / R);
ADX:=MA(((ABS((MDI – PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
WR10:=((100 * (HHV(HIGH,10) – CLOSE)) / (HHV(HIGH,10) – LLV(LOW,10)));
NEWVOL:=(RSI5 – WR10);
JDDB:=(AV + NEWVOL);
STICKLINE((JDDB < 0),9,13,2.5,0),COLORRED;
QSX:=LLV(JDDB,1);
STICKLINE((QSX >230 ),94,90,2.5,0),COLORGREEN;
【股票入门基础知识】【通达信】波段背离金叉指标公式
特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。