文章目录:
- 1、rsi顶底背离选股公式请高手制作 通信达软件的 每一个大小顶底的波段背离都选出来只要过去式就可以了
- 2、通达信软件的公式管理器w5.06 上怎样添加个 macd顶底背离技术指标公式
- 3、跪求通达信冠军MACD和冠军背离线附图指标源码,那位大神给下!
- 4、通达信多空趋势,kdj,macd,rsi顶底背离信号提示的指标源码?
- 5、通达信kdj,macd,rsi的底背离副图指标源码黄色显示低吸,柱条变红显示最佳买入,
rsi顶底背离选股公式请高手制作 通信达软件的 每一个大小顶底的波段背离都选出来只要过去式就可以了
LC:=REF(CLOSE,1);
A:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
底背离:C=LLV(C,60) AND ALLV(A,60) AND A=REF(A,1);
上面这个是底背离的,下面的是顶背离的:
LC:=REF(CLOSE,1);
A:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
顶背离:C=LLV(C,60) AND ALLV(A,60) AND A=REF(A,1);
通达信软件的公式管理器w5.06 上怎样添加个 macd顶底背离技术指标公式
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK;
STICKLINE(MACDREF(MACD,1) AND MACD0,0,MACD,0,0),COLORGREEN;
STICKLINE(MACDREF(MACD,1) AND MACD0,0,MACD,0,0),COLORMAGENTA;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA=0));
金叉:=CROSS(DIFF,DEA) AND DEA0 AND COUNT(JCCOUNT=1,21)=1;
STICKLINE(金叉,0,0.1,5,0),COLOR0000FF;
DRAWTEXT(金叉,-0.095,'金叉'),COLOR0000FF;
二金叉:=CROSS(DIFF,DEA) AND DEA0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二金叉,0,0.15,5,0),COLORLIRED;
DRAWTEXT(二金叉,0.23,'二次金叉'),COLORLIRED;
三金叉:=CROSS(DIFF,DEA) AND DEA0 AND COUNT(JCCOUNT=3,28)=1;
STICKLINE(三金叉,0,0.2,5,0),COLORLIGREEN;
DRAWTEXT(三金叉,0.28,'三次金叉'),COLORLIGREEN;
四金叉:=CROSS(DIFF,DEA) AND DEA0 AND COUNT(JCCOUNT=4,28)=1;
STICKLINE(四金叉,0,0.25,5,0),COLORCYAN;
DRAWTEXT(四金叉,0.33,'四次金叉'),COLORCYAN;
五金叉:=CROSS(DIFF,DEA) AND DEA0 AND COUNT(JCCOUNT=5,33)=1;
STICKLINE(五金叉,0,0.3,5,0),COLORBLUE;
DRAWTEXT(五金叉,0.37,'五次金叉'),COLORBLUE;
六金叉:=CROSS(DIFF,DEA) AND DEA0 AND COUNT(JCCOUNT=6,33)=1;
STICKLINE(六金叉,0,0.35,5,0),COLORYELLOW;
DRAWTEXT(六金叉,0.0.7,'黄金底'),COLORYELLOW;
DRAWTEXT(六金叉,0.42,'六次金叉'),COLORYELLOW;
七金叉:=CROSS(DIFF,DEA) AND DEA0 AND COUNT(JCCOUNT=7,33)=1;
STICKLINE(七金叉,0,0.4,5,0),COLORWHITE;
DRAWTEXT(七金叉,0.0.88,'白金底'),COLORWHITE;
DRAWTEXT(七金叉,0.47,'七次金叉'),COLORWHITE;
八金叉:=CROSS(DIFF,DEA) AND DEA0 AND COUNT(JCCOUNT=8,33)=1;
STICKLINE(八金叉,0,0.5,5,0),COLORMAGENTA;
DRAWTEXT(八金叉,0.0.8,'钻石底'),COLORMAGENTA;
DRAWTEXT(八金叉,0.57,'八次金叉'),COLORMAGENTA;
九金叉:=CROSS(DIFF,DEA) AND DEA0 AND COUNT(JCCOUNT=9,33)=1;
STICKLINE(九金叉,0,0.55,5,0),COLORRED;
DRAWTEXT(九金叉,0.0.8,'金钻底'),COLORRED;
DRAWTEXT(九金叉,0.6,'九次金叉'),COLORRED;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=(REF(L,A1+1)L OR REF(C,A1+1)C) AND (L,DIFF)REF((L,DIFF),A1+1) AND CROSS(DIFF,DEA);
STICKLINE(底背离,0,-0.1,5,0),COLORRED;
DRAWTEXT(底背离,DEA,'底背离')COLORRED;
DRAWLINE(A1=0,DEA,底背离,DEA,0),COLOR0000FF,LINETHICK2;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=(REF(C,A2+1)C OR REF(H,A2+1)H) AND REF((H,DIFF),A2+1)(H,DIFF) AND CROSS(DEA,DIFF);
DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORFF00FF,LINETHICK2;
STICKLINE(顶背离,0,0.1,5,0),COLORGREEN;
DRAWTEXT(顶背离,DEA,'顶背离')COLORGREEN;
DRAWTEXT(CROSS(DIFF,DEA) AND 二金叉 AND 底背离,0.3,'三全底'),COLOR0000FF;
IF(DIFFDEA,DIFF,DRAWNULL),COLORWHITE,LINETHICK2;
IF(DEAREF(DEA,1) AND DIFFDEA,DEA,DRAWNULL),COLORYELLOW,LINETHICK2;
跪求通达信冠军MACD和冠军背离线附图指标源码,那位大神给下!
{供参考}
{冠军MACD+顶底背离画线}
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD2:=2*(DIFF-DEA);
DU0:=CROSS(DIFF,0);
UD0:=CROSS(0,DIFF);
TDU0:=BARSLAST(DU0);
TUD0:=BARSLAST(UD0);
DU3:=REF(DU0,1);
UD3:=REF(UD0,1);
TDU3:=BARSLAST(DU3);
TUD3:=BARSLAST(UD3);
UDGLINE:=IF(TDU3TUD3,REF(HHV(HIGH,2),TDU3),REF(LLV(LOW,2),TUD3));
JDU0:=REF(CLOSE,1)=REF(UDGLINE,1) AND CLOSEUDGLINE AND TDU0TUD0;
JUD0:=REF(CLOSE,1)=REF(UDGLINE,1) AND CLOSEUDGLINE AND TUD0TDU0;
JDU1:=JDU0 AND COUNT(JDU0,TDU0)=1;
JUD1:=JUD0 AND COUNT(JUD0,TUD0)=1;
STICKLINE(MACD2=0,0,MACD2,1,1),COLOR0000FF;
STICKLINE(MACD2=0 AND MACD2REF(MACD2,1),0,MACD2,1,0),COLORGREEN;
STICKLINE(MACD20,0,MACD2,2,0),COLORFFFF00;
STICKLINE(MACD20 AND MACD2REF(MACD2,1),0,MACD2,1,1),COLORFFFF00;
STICKLINE(CLOSE0,0,0,1,0),COLOR808080;
DEFUT:=BARSLAST(CROSS(MACD2,0));
DEFDT:=BARSLAST(CROSS(0,MACD2));
DEFUL:=IF(MACD2=0,HHV(MACD2,DEFUT+1),REF(HHV(MACD2,DEFUT+1),DEFDT+1));
DEFDL:=IF(MACD20,LLV(MACD2,DEFDT+1),REF(LLV(MACD2,DEFDT+1),DEFUT+1));
DEFU2L:=REF(DEFUL,DEFUT+1);
DEFD2L:=REF(DEFDL,DEFDT+1);
DRAWICON(LLV(MACD2,4)0 AND MACD2REF(MACD2,1) AND REF(MACD2,1)REF(MACD2,2) AND REF(MACD2,2)REF(MACD2,3),MACD2+0.38,9);
DRAWICON(HHV(MACD2,4)0 AND MACD2REF(MACD2,1) AND REF(MACD2,1)REF(MACD2,2) AND REF(MACD2,2)REF(MACD2,3),MACD2-0.13,11);
DRAWICON((JUD1 OR BARSLAST(JDU1)BARSLAST(JUD1)) AND MACD2=0 AND REF(MACD2,1)REF(DEFU2L,1) AND MACD2DEFU2L,MACD2+0.50,5);
DRAWICON((JDU1 OR BARSLAST(JDU1)BARSLAST(JUD1)) AND MACD20 AND REF(MACD2,1)REF(DEFD2L,1) AND MACD2DEFD2L,MACD2-0.14,6);
VAR111:=JDU1 OR BARSLAST(JDU1)BARSLAST(JUD1);
VAR112:=HHV(MACD2,4)0 AND MACD2REF(MACD2,1) AND REF(MACD2,1)REF(MACD2,2) AND REF(MACD2,2)REF(MACD2,3);
价因子:=IF(CLOSE/OPEN1.06,2.5,0),COLORLIBLUE;
STICKLINE(价因子,0,1,1,1),COLORYELLOW;
量变线:=VOL/MA(VOL,5)COLORWHITE,LINETHICK2;
量因子:=IF(VOL/MA(VOL,5)2,2.5,0);
STICKLINE(量因子,0,1,1,1),COLORYELLOW;
DRAWICON(CLOSE/OPEN1.06,1,24);
DRAWICON(VOL/MA(VOL,5)2,0.8,25);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)CLOSE AND DIFFREF(DIFF,A1+1) AND CROSS(DIFF,DEA);
STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;
底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK4;
DRAWTEXT(底背离,0.12,' 底背离'),COLORFF00FF;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)CLOSE AND REF(DIFF,A2+1)DIFF AND CROSS(DEA,DIFF);
顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK4;
DRAWICON(CROSS(DIFF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIFF),DEA,2);
通达信多空趋势,kdj,macd,rsi顶底背离信号提示的指标源码?
可以编写通达信德多空趋势,kdj,macd,rsi,顶背离的指标,但这些条件你好说明清楚如何判断,例如顶背离最少要有高点确认条件你才能判断,这三个指标每个指标都不是一个输出,都有3个具体对比哪个这些具体条件说明清楚才能编写指标公式。
通达信kdj,macd,rsi的底背离副图指标源码黄色显示低吸,柱条变红显示最佳买入,
可以编写kdj,macd,rsi 底背离公式,也可以在低吸德时候显示黄色,买入显示红色,但具体底背离判断方法要说明清楚,只要是底背离就涉及到高低点的位置确认问题,这个高低点确认属于典型的主观分析,还有对比判断的细节,例如macd背离可以是dif背离,可以是dea背离,还可以是macd柱高低背离面积背离。还可以是金叉位置背离,判断的位置条件,判断的内容条件,这些所有条件都说明清楚才能编写公式,而不是说个名字就可以编写公式了。
例如下图有kdj背离,macd背离,rsi背离的主图指标,幅图指标,选股位置提示指标截图。
TICKLINE(金叉,0,0.1,5,0),COLOR0000FF;DRAWTEXT(金叉,-0.095,'金叉'),COLOR0000FF;二金叉:=CROSS(DIFF,DEA) AND DEA0 AND COUNT(JCCOUNT=2,
ROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)CLOSE AND DIFFREF(DIFF,A1+1) AND CROSS(DIFF,DEA);STICKLINE(底背离,0,0.03,6,0