B买点&背离主图各种背离清楚标注通达信公式 主图 源码附图

VAR1:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND IF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0);
STICKLINE(VAR1>90,L,L*0.92,0.1,0),COLORRED;
DRAWTEXT(VAR1>90,LOW*0.92,'B'),COLORRED;
 
买线:=EMA(CLOSE,2); 
卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42); 
B11:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK4,COLORRED; 
S11:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK4,COLORGREEN; 
VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;
S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK4,COLORGREEN; 
 
A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1)); 
B1:=REF(C,A1+1)> C AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA"); 
DRAWTEXT(B1> 0,L-0.02,'M底'),COLOR00FFFF;{MACD底背离} 
A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1)); 
B2:=REF(C,A2+1)> C AND REF("KDJ.K",A2+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D"); 
DRAWTEXT(B2,L-0.10,'K底'),COLORFF00FF;{KDJ底背离} 
A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1)); 
B3:=REF(C,A3+1)> C AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2"); 
DRAWTEXT(B3> 0,L-0.18,'R底'),COLOR0000FF;{RSI底背离} 
C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1)); 
D1:=REF(C,C1+1)<C AND REF("MACD.DIF",C1+1)> "MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF"); 
DRAWTEXT(D1> 0,H+0.16,'M顶'),COLOR00FF00;{MACD顶背离} 
C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1)); 
D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)> "KDJ.K" AND CROSS("KDJ.D","KDJ.K"); 
DRAWTEXT(D2> 0,H+0.08,'K顶'),COLORFFFFCC;{KDJ顶背离} 
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1)); 
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)> "RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1"); 
DRAWTEXT(D3> 0,H+0.04,'R顶'),COLORFF9900;{RSI顶背离};
 



来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图