MA主图指标公式[通达信公式]源码
2016/12/1 10:34:55点击:
N1=5,N2=21。
MA1:MA(C,N1),NODRAW,COLORYELLOW;
MA2:MA(C,N2),COLORRED;
STICKLINE(C>=MA2 AND C>=O,H,C,0,0),COLOR3232FF;
STICKLINE(C>=MA2 AND C>=O,C,O,3,1),COLOR3232FF;
STICKLINE(C>=MA2 AND C>=O,O,L,0,0),COLOR3232FF;
STICKLINE(C>=MA2 AND C<=O,H,L,0,0),COLOR3232FF;
STICKLINE(C>=MA2 AND C<=O,O,C,3,0),COLOR3232FF;
STICKLINE(MA1>C AND C>=MA2 AND C>=O,H,C,0,0),COLOR32CD32;
STICKLINE(MA1>C AND C>=MA2 AND C>=O,C,O,3,1),COLOR32CD32;
STICKLINE(MA1>C AND C>=MA2 AND C>=O,O,L,0,0),COLOR32CD32;
STICKLINE(MA1>C AND C>=MA2 AND C<=O,H,L,0,0),COLOR32CD32;
STICKLINE(MA1>C AND C>=MA2 AND C<=O,O,C,3,0),COLOR32CD32;
STICKLINE(C<=MA2 AND C>=O,H,C,0,0),COLORFFFF54;
STICKLINE(C<=MA2 AND C>=O,C,O,3,1),COLORFFFF54;
STICKLINE(C<=MA2 AND C>=O,O,L,0,0),COLORFFFF54;
STICKLINE(C<=MA2 AND C<=O,H,L,0,0),COLORFFFF54;
STICKLINE(C<=MA2 AND C<=O,O,C,3,0),COLORFFFF54;
NOTEXTMA1:IF(MA1>MA2,MA1,DRAWNULL),COLORYELLOW;
NOTEXTMA2:IF(MA2<REF(MA2,1),MA2,DRAWNULL),COLORGREEN;
MA1:MA(C,N1),NODRAW,COLORYELLOW;
MA2:MA(C,N2),COLORRED;
STICKLINE(C>=MA2 AND C>=O,H,C,0,0),COLOR3232FF;
STICKLINE(C>=MA2 AND C>=O,C,O,3,1),COLOR3232FF;
STICKLINE(C>=MA2 AND C>=O,O,L,0,0),COLOR3232FF;
STICKLINE(C>=MA2 AND C<=O,H,L,0,0),COLOR3232FF;
STICKLINE(C>=MA2 AND C<=O,O,C,3,0),COLOR3232FF;
STICKLINE(MA1>C AND C>=MA2 AND C>=O,H,C,0,0),COLOR32CD32;
STICKLINE(MA1>C AND C>=MA2 AND C>=O,C,O,3,1),COLOR32CD32;
STICKLINE(MA1>C AND C>=MA2 AND C>=O,O,L,0,0),COLOR32CD32;
STICKLINE(MA1>C AND C>=MA2 AND C<=O,H,L,0,0),COLOR32CD32;
STICKLINE(MA1>C AND C>=MA2 AND C<=O,O,C,3,0),COLOR32CD32;
STICKLINE(C<=MA2 AND C>=O,H,C,0,0),COLORFFFF54;
STICKLINE(C<=MA2 AND C>=O,C,O,3,1),COLORFFFF54;
STICKLINE(C<=MA2 AND C>=O,O,L,0,0),COLORFFFF54;
STICKLINE(C<=MA2 AND C<=O,H,L,0,0),COLORFFFF54;
STICKLINE(C<=MA2 AND C<=O,O,C,3,0),COLORFFFF54;
NOTEXTMA1:IF(MA1>MA2,MA1,DRAWNULL),COLORYELLOW;
NOTEXTMA2:IF(MA2<REF(MA2,1),MA2,DRAWNULL),COLORGREEN;
- 上一篇:3个分时预警 2016/12/1
- 下一篇:通达信雨季彩虹副图源码 2016/11/30