您的位置:查股网 > 查股公式 > 同花顺背离主图指标[查股公式]
股票行情消息查询:
大盘云图

同花顺背离主图指标[查股公式]

2022/8/11 19:24:42

同花顺背离主图指标

源码

MA3:MA(CLOSE,3); 
MA5:MA(CLOSE,5); 
MA10:MA(CLOSE,10); 
MA20:MA(CLOSE,20); 
MA30:MA(CLOSE,30); 
MA60:MA(CLOSE,60); 
MA120:MA(CLOSE,120); 
MA250:MA(CLOSE,250);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,8);
A1:=BARSLAST(REF(CROSS(diff,dea),1)); 
B1:=REF(C,A1+1)>C AND REF(diff,A1+1)<diff AND CROSS(diff,dea); 
DRAWTEXT(IF(B1>0,1,0),L-0.1,'MACD底背'),colorgreen;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
k:=SMA(RSV,3,1);
d:=SMA(k,3,1);
A2:=BARSLAST(REF(CROSS(k,d),1)); 
B2:=REF(C,A2+1)>C AND REF(k,A2+1)<k AND CROSS(k,d); 
DRAWTEXT(IF(B2>0,1,0),L-0.25,'KDJ底背'),coloryellow;
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;
A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1)); 
B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2); 
DRAWTEXT(IF(B3>0,1,0),L-0.4,'RSI底背'),colorcyan; 
C1:=BARSLAST(REF(CROSS(dea,diff),1)); 
D1:=REF(C,C1+1)<C AND REF(diff,C1+1)>diff AND CROSS(dea,diff); 
DRAWTEXT(IF(D1>0,1,0),H+0.1,'MACD顶背'),colorwhite;
C2:=BARSLAST(REF(CROSS(d,K),1)); 
D2:=REF(C,C2+1)<C AND REF(k,C2+1)>k AND CROSS(d,K); 
DRAWTEXT(IF(D2>0,1,0),H+0.25,'KDJ顶背'),colorwhite; 
C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1)); 
D3:=REF(C,C3+1)<C AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1); 
DRAWTEXT(IF(D3>0,1,0),H+0.4,'RSI顶背'),colormagenta;

相关文章列表
天天查股公式列表

股票公式分类

查股网:股票行情消息 实时DDX在线 资金流向 千股千评 业绩报告 十大股东 最新消息 超赢数据 大小非解禁 停牌复牌 股票分红查询 股票评级报告
广告客服:315126368   843010021
天天查股网免费查股,本站内容与数据仅供参考,不构成投资建议,据此操作,风险自担,股市有风险,投资需谨慎。 沪ICP备15043930号-29