求某一天两条线背离的大智慧指标和选股公式

如题所述

顶底背离:0,COLORYELLOW;
A1:=BARSLAST(ref(cross("macd.diff"(12,26,9),"macd.dea"(12,26,9)),1));
B1:=ref(c,A1+1)>c and ref("macd.diff"(12,26,9),A1+1)<"macd.diff"(12,26,9) and cross

("macd.diff"(12,26,9),"macd.dea"(12,26,9));
MACD底背离:STICKLINE(FILTER(B1>0,5),0,0.75,3,0),COLORGREEN;
DRAWTEXT(FILTER(B1>0,5),0.57,'MACD底背离'),COLORGREEN;
A2:=BARSLAST(ref(cross("kdj.k"(9,9,3),"kdj.d"(9,9,3)),1));
B2:=ref(c,A2+1)>c and ref("kdj.k"(9,9,3),A2+1)<"kdj.k"(9,9,3) and cross

("kdj.k"(9,9,3),"kdj.d"(9,9,3));
KDJ底背离:STICKLINE(FILTER(B2>0,5),0,1,3,0),COLORYELLOW;
DRAWTEXT(FILTER(B2>0,5),0.80,'KDJ底背离'),COLORYELLOW;
A3:=BARSLAST(ref(cross("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
B3:=ref(c,A3+1)>c and ref("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) and cross

("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
RSI底背离:STICKLINE(FILTER(B3>0,5),0,0.5,3,0),COLORffcc66;
DRAWTEXT(FILTER(B3>0,5),0.25,'RSI底背离'),COLORffcc66;

2,COLORRED;
C1:=BARSLAST(ref(cross("macd.dea"(12,26,9),"macd.diff"(12,26,9)),1));
D1:=ref(c,C1+1)<c and ref("macd.diff"(12,26,9),C1+1)>"macd.diff"(12,26,9) and cross

("macd.dea"(12,26,9),"macd.diff"(12,26,9));
MACD顶背离:STICKLINE(FILTER(D1>0,5),2,1.25,3,0),COLOR0066FF;
DRAWTEXT(FILTER(D1>0,5),1.47,'MACD顶背离'),COLOR0066FF;
C2:=BARSLAST(ref(cross("kdj.d"(9,9,3),"kdj.k"(9,9,3)),1));
D2:=ref(c,C2+1)<c and ref("kdj.k"(9,9,3),C2+1)>"kdj.k"(9,9,3) and cross

("kdj.d"(9,9,3),"kdj.k"(9,9,3));
KDJ顶背离:STICKLINE(FILTER(D2>0,5),2,1,3,0),COLORRED;
DRAWTEXT(FILTER(D2>0,5),1.2,'KDJ顶背离'),COLORRED;
C3:=BARSLAST(ref(cross("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
D3:=ref(c,C3+1)<c and ref("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) and cross

("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
RSI顶背离:STICKLINE(FILTER(D3>0,5),2,1.5,3,0),COLORff00ff;
DRAWTEXT(FILTER(D3>0,5),1.75,'RSI顶背离'),COLORff00ff;

选股公式

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
A4:=BARSLAST(ref(cross(diff,dea),1));
B1:=ref(c,A4+1)>c and ref(diff,A4+1)<diff and cross(diff,dea);
FILTER(B1>0,5);

KDJ底背离

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
A5:=BARSLAST(ref(cross(k,d),1));
B2:=ref(c,A5+1)>c and ref(k,A5+1)<k and cross(k,d);
FILTER(B2>0,5);

RSI底背离

LC :=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
A6:=BARSLAST(ref(cross(RSI1,RSI2),1));
B3:=ref(c,A6+1)>c and ref(RSI1,A6+1)<RSI1 and cross(RSI1,RSI2);
FILTER(B3>0,5);
温馨提示:内容为网友见解,仅供参考
无其他回答

求大智慧RSI、CCI、KDJ、MACD顶背离和底背离选股公式
DRAWTEXT(C底背离,IF(BARSCOUNT(C),12,14.2),'(√)'),LINETHICK2,COLORGREEN;DRAWTEXT(R底背离,IF(BARSCOUNT(C),8.5,10),'(√)'),LINETHICK2,COLORBLUE;DRAWTEXT(M底背离,IF(BARSCOUNT(C),4.5,6),'(√)'),LINETHICK2,COLORMAGENTA;DRAWTEXT(K底背离,IF(BARSCOUNT(C),1.5,3),'(...

大智慧KDJ顶背离选股公式
B1:=REF(J,1)=HHV(J,7) ;A2:=BARSLAST(REF(B1,1));A3:C>REF(C,A2) AND B1 and J<REF(J,A2) ;这个指标会滞后一根K线显示,因为当前是很难判断j 值是不是成了一个峰,所以就再加了一个条件就是其后一个周期的是J值会小于前一周期的J值,如此就形成了一个峰。补充:因为如果那个最...

大侠求选股公式(n日内的最高价-n日内的最低价)\/n日前的收盘价(大智慧软...
xg:(hhv(h,n)-llv(l,n))\/ref(c,n);

求大智慧 CCI底背离选股公式,谢谢!
{大智慧测试通过--CCI底背离选股} TYP:=(HIGH+LOW+CLOSE)\/3;CCI:=(TYP-MA(TYP,14))\/(0.015*AVEDEV(TYP,14));CCI<-100 AND C<REF(C,1) AND CCI>REF(CCI,1);

求高手编一个大智慧经典版KDJ背离选股公式
{KDJ底背离选股:} "KDJ.K"<10 AND "KDJ.D"<20 AND "KDJ.J"<10 ;{KDJ顶背离选股:} "KDJ.K">90 AND "KDJ.D">80 AND "KDJ.J">100 ;

大智慧:KDJ的D值底背离的选股公式
C<=LLV(C,60) AND "KDJ.D">=LLV("KDJ.D",60) AND "KDJ.D">=REF("KDJ.D",1);

求大智慧MACD底背离和顶背离公式
如果你想要的公式效果如下可以联系我由于字数限制代码过长背离时会画线不背离时不会画线,并且只提示最近的.

麻烦帮我写两个大智慧的DMI-QLL指标的选股公式
ADX金叉ADXR:CROSS(ADX,ADXR);PDI(白线)刚刚拐头向下:PDI<REF(PDI,1);

用大智慧或通达信等软件筛选rsi指标底背离的个股。
24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));底背离: B3>0;通达信软件用 点开公式管理器,找到条件选股,选择其他类型,把原码粘贴上去!

大智慧 技术分析图macd 怎么看?
在判断形态时以DIF线为主,MACD线为辅。当价格持续升高,而MACD指标走出一波比一波低的走势时,意味着顶背离出现,预示着价格将可能在不久之后出现转头下行,当价格持续降低,而MACD 指标却走出一波高于一波的走势时,意味着底背离现象的出现,预示着价格将很快结束下跌,转头上涨。 5.牛皮市道中指标将失真。当价格并不是...

相似回答
大家正在搜