通达信一柱穿三副图指标公式源码

以下是通达信一柱穿三副图指标公式源码:

日线:=MA(C,3),COLORGREEN;

MB2:=SMA(CLOSE,25,20),COLORFFCC00,LINETHICK1;

MB3:=SMA((MB2+1.382*STD(MB2,9)),15,14),COLOR66EEEE;

MB4:=SMA(MB2+0.318*STD(CLOSE,9),15,1);

上界:=SMA(EXPMA(MB4,2),15,14),COLORFF00FF,LINETHICK2;

底界:=SMA(MB2-1.618*STD(CLOSE,9),30,1),COLORBLUE,LINETHICK2;

中迹:=(上界+底界)/2,COLORWHITE,DOTLINE;

M1:=MA(上界,1); M2:=MA(中迹,1); M3:=MA(中迹,1);

一阳1:=O<M1 AND C>M1; 一阳2:=O<M2 AND C>M2; 一阳3:=O<M3 AND C>M3;

一柱穿三线:一阳1+一阳2+一阳3>2,COLOR0055FF,LINETHICK2;

STICKLINE(一柱穿三线,0,0.45,8,0),COLORBLUE;

STICKLINE(一柱穿三线,0,1.2,4,0),COLORYELLOW;

STICKLINE(一柱穿三线,0.45,2,2,0),COLORFF00FF;

STICKLINE(一柱穿三线,0,0.5,2,0),COLOR0066FF;

STICKLINE(一柱穿三线,0,2.6,0,3),COLORRED;

DRAWICON(一柱穿三线,2.6,1);

DRAWICON(一柱穿三线,2.05,1);