通达信绝密暴涨主副图指标 源码 附图
TTS1:=1;
TTS2:=BARSCOUNT(CLOSE)*3.142/180;
A2:SIN(TTS2*8)*40,COLORYELLOW;
TTS3:=1;
IF(A2>REF(A2,1),A2,DRAWNULL)*TTS1,COLORMAGENTA;
A3:COS(TTS2*8)*40,COLORGRAY;
IF(A3>REF(A3,1),A3,DRAWNULL)*TTS1,COLORRED;
TTS4:=(CLOSE*2+HIGH+LOW)/4;
TTS5:=EMA(TTS4,13)-EMA(TTS4,34)*TTS1;
TTS6:=EMA(TTS5,9)*TTS3;
0,POINTDOT;
KONG:(-2)*(TTS5-TTS6)*TTS3*61.799999,COLORCYAN;
DUO:2*(TTS5-TTS6)*TTS3*61.799999,COLORAA77AA;
STICKLINE(DUO>REF(DUO,1),DUO,REF(DUO,1),2.6,0),COLOR000088;
STICKLINE(DUO>REF(DUO,1),DUO,REF(DUO,1),1.8,0),COLOR0000AA;
STICKLINE(DUO>REF(DUO,1),DUO,REF(DUO,1),1,0),COLOR0000CC;
STICKLINE(DUO>REF(DUO,1),DUO,REF(DUO,1),0.1,0),COLOR0000DD;
STICKLINE(KONG>REF(KONG,1),KONG,REF(KONG,1),2.6,0),COLOR008800;
STICKLINE(KONG>REF(KONG,1),KONG,REF(KONG,1),1.8,0),COLOR00AA00;
STICKLINE(KONG>REF(KONG,1),KONG,REF(KONG,1),1,0),COLOR00CC00;
STICKLINE(KONG>REF(KONG,1),KONG,REF(KONG,1),0.1,0),COLOR00DD00;
STICKLINE(REF(KONG,2)>REF(KONG,1) AND KONG>REF(KONG,1) AND KONG<=0,KONG,REF(KONG,1),2.6,0),COLOR888888;
STICKLINE(REF(KONG,2)>REF(KONG,1) AND KONG>REF(KONG,1) AND KONG<=0,KONG,REF(KONG,1),1.8,0),COLORAAAAAA;
STICKLINE(REF(KONG,2)>REF(KONG,1) AND KONG>REF(KONG,1) AND KONG<=0,KONG,REF(KONG,1),1,0),COLORCCCCCC;
STICKLINE(REF(KONG,2)>REF(KONG,1) AND KONG>REF(KONG,1) AND KONG<=0,KONG,REF(KONG,1),0.1,0),COLORDDDDDD;
STICKLINE(REF(DUO,2)>REF(DUO,1) AND DUO>REF(DUO,1),DUO,REF(DUO,1),2.6,0),COLOR006666;
STICKLINE(REF(DUO,2)>REF(DUO,1) AND DUO>REF(DUO,1),DUO,REF(DUO,1),1.8,0),COLOR008888;
STICKLINE(REF(DUO,2)>REF(DUO,1) AND DUO>REF(DUO,1),DUO,REF(DUO,1),1,0),COLOR00AAAA;
STICKLINE(REF(DUO,2)>REF(DUO,1) AND DUO>REF(DUO,1),DUO,REF(DUO,1),0.1,0),COLOR00CCCC;
DRAWICON(REF(DUO,2)>REF(DUO,1) AND DUO>REF(DUO,1),DUO-0.5,1);
DRAWICON(REF(KONG,2)>REF(KONG,1) AND KONG>REF(KONG,1) AND KONG<=0,KONG-0.5,2);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
TTS1赋值:1
TTS2赋值:收盘价的有效数据周期数*3.142/180
输出A2:SIN(TTS2*8)*40,画黄色
TTS3赋值:1
IF(A2>1日前的A2,A2,DRAWNULL)*TTS1,画洋红色
输出A3:COS(TTS2*8)*40,COLORGRAY
IF(A3>1日前的A3,A3,DRAWNULL)*TTS1,画红色
TTS4赋值:(收盘价*2+最高价+最低价)/4
TTS5赋值:TTS4的13日指数移动平均-TTS4的34日指数移动平均*TTS1
TTS6赋值:TTS5的9日指数移动平均*TTS3
0,POINTDOT
输出KONG:(-2)*(TTS5-TTS6)*TTS3*61.799999,画青色
输出DUO:2*(TTS5-TTS6)*TTS3*61.799999,COLORAA77AA
STICKLINE(DUO>1日前的DUO,DUO,1日前的DUO,2.6,0),COLOR000088
STICKLINE(DUO>1日前的DUO,DUO,1日前的DUO,1.8,0),COLOR0000AA
STICKLINE(DUO>1日前的DUO,DUO,1日前的DUO,1,0),COLOR0000CC
STICKLINE(DUO>1日前的DUO,DUO,1日前的DUO,0.1,0),COLOR0000DD
STICKLINE(KONG>1日前的KONG,KONG,1日前的KONG,2.6,0),COLOR008800
STICKLINE(KONG>1日前的KONG,KONG,1日前的KONG,1.8,0),COLOR00AA00
STICKLINE(KONG>1日前的KONG,KONG,1日前的KONG,1,0),COLOR00CC00
STICKLINE(KONG>1日前的KONG,KONG,1日前的KONG,0.1,0),COLOR00DD00
STICKLINE(2日前的KONG>1日前的KONG AND KONG>1日前的KONG AND KONG<=0,KONG,1日前的KONG,2.6,0),COLOR888888
STICKLINE(2日前的KONG>1日前的KONG AND KONG>1日前的KONG AND KONG<=0,KONG,1日前的KONG,1.8,0),COLORAAAAAA
STICKLINE(2日前的KONG>1日前的KONG AND KONG>1日前的KONG AND KONG<=0,KONG,1日前的KONG,1,0),COLORCCCCCC
STICKLINE(2日前的KONG>1日前的KONG AND KONG>1日前的KONG AND KONG<=0,KONG,1日前的KONG,0.1,0),COLORDDDDDD
STICKLINE(2日前的DUO>1日前的DUO AND DUO>1日前的DUO,DUO,1日前的DUO,2.6,0),COLOR006666
STICKLINE(2日前的DUO>1日前的DUO AND DUO>1日前的DUO,DUO,1日前的DUO,1.8,0),COLOR008888
STICKLINE(2日前的DUO>1日前的DUO AND DUO>1日前的DUO,DUO,1日前的DUO,1,0),COLOR00AAAA
STICKLINE(2日前的DUO>1日前的DUO AND DUO>1日前的DUO,DUO,1日前的DUO,0.1,0),COLOR00CCCC
DRAWICON(2日前的DUO>1日前的DUO AND DUO>1日前的DUO,DUO-0.5,1)
DRAWICON(2日前的KONG>1日前的KONG AND KONG>1日前的KONG AND KONG<=0,KONG-0.5,2)