同花顺决策密码(源码 主图叠加 贴图)介绍
同花顺决策密码(源码 主图叠加 贴图)
同花顺决策密码原版:(通达信使用)
VAR1:=AMOUNT/VOL;
A:=SMA(VAR1,5,1)-SMA(VAR1,55,1);
B:=SMA((A-SMA(A,5,1)),5,1);
STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),L,H,0,0),COLOR0000FF;
STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),C,O,2,1),COLOR0000FF;
STICKLINE(CROSS(CLOSE,MA(CLOSE,5)) AND A>REF(A,1) AND B>REF(B,1),C,O,2,0),COLOR0000FF;
STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),L,H,0,0),COLORFFFFFF;
STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),C,O,2,1),COLORFFFFFF;
STICKLINE(A<REF(A,3) AND B<REF(B,3),L,H,0,0),COLOR00FF00;
STICKLINE(A<REF(A,3) AND B<REF(B,3),C,O,2,1),COLOR00FF00;
STICKLINE(A>REF(A,1) AND B<REF(B,1),L,H,0,0),COLORFFFFFF;
STICKLINE(A>REF(A,1) AND B<REF(B,1),C,O,2,1),COLORFFFFFF;
STICKLINE(A<REF(A,1) AND B>REF(B,1),L,H,0,0),COLORFFFFFF;
STICKLINE(A<REF(A,1) AND B>REF(B,1),C,O,2,1),COLORFFFFFF;
简洁版如下可以叠加到K线里面:
VAR1:=AMOUNT/VOL;
A:=SMA(VAR1,5,1)-SMA(VAR1,55,1);
B:=SMA((A-SMA(A,5,1)),5,1);
STICKLINE(CROSS(CLOSE,MA(CLOSE,5)) AND A>REF(A,1) AND B>REF(B,1),C,O,3,0),COLORRED;
gd13952