您的位置:查股网 > 查股公式 > 通达信盘古MACD信号副图指标 标注斐波那契数字源码[查股公式]
股票行情消息查询:

通达信盘古MACD信号副图指标 标注斐波那契数字源码[查股公式]

2022/6/24 12:19:39

{标注斐波那契数字}
TJ:=MACD>0;
T:=MACD<0;
A:=LLV(MACD,50)=MACD;
DRAWICON(A AND FILTERX(A,20), MACD,1);
{DRAWTEXT(BARSLAST(TJ)=1,MACD-0.1,'1'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=2,MACD-0.1,'2'),COLORYELLOW;}
DRAWTEXT(BARSLAST(TJ)=3,MACD-0.1,'3'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=5,MACD-0.1,'5'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=8,MACD-0.1,'8'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=13,MACD-0.1,'13'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=21,MACD-0.1,'21'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=34,MACD-0.1,'34'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=55,MACD-0.1,'55'),COLORYELLOW;
{DRAWTEXT(BARSLAST(T)=1,MACD+0.1,'1'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=2,MACD+0.1,'2'),COLORGREEN;}
DRAWTEXT(BARSLAST(T)=3,MACD+0.1,'3'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=5,MACD+0.1,'5'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=8,MACD+0.1,'8'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=13,MACD+0.1,'13'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=21,MACD+0.1,'21'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=34,MACD+0.1,'34'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=55,MACD+0.1,'55'),COLORGREEN;
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
低位金叉:=CROSS(DIF,DEA) AND DIF<-0.1;
STICKLINE(低位金叉,0,-0.18,0,0),COLORYELLOW;
DRAWTEXT(低位金叉,-0.15,' 低位金叉'),COLORRED;
JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,-0.18,0,0),COLORFF00FF;
DRAWTEXT(二次金叉,-0.3,' 二次金叉'),COLORFF00FF;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA);
STICKLINE(底背离,0,0.13,1,0),COLOR00FF00;
DRAWTEXT(底背离,0.18,' 底背离'),COLOR00FF00;
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF);
DRAWTEXT(低位金叉 AND 二次金叉 AND 底背离,0.51,'三重'),COLORYELLOW,LINETHICK1;
DRAWTEXT(低位金叉 AND 底背离,0.31,'二重'),COLORLIBLUE,LINETHICK1;
上翘:IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK1;
下拐:IF(DIF<REF(DIF,1),DIF,DRAWNULL),COLORLIBLUE,LINETHICK1;
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,-0.2,'RSI底离'),COLORCYAN;{RSI底背离};
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,0.3,'RSI顶离'),COLORGREEN;{RSI顶背离};

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

股票公式分类

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