以下是通达信稳坐泰山指标公式
C/C++Code复制内容到剪贴板
MAA:=MA(CLOSE,N1);
MAB:=MA(CLOSE,N2);
MAC:=MA(CLOSE,N3);
MA1:MA(MA(CLOSE,N1),1);
MA2:MA(MA(CLOSE,N2),2);
MA3:MA(MA(CLOSE,N3),3);
买入:STICKLINE(CROSS(MA1,MA2),HIGH,LOW,0.5,1),COLOR00FF00;
STICKLINE(CROSS(MA1,MA2),OPEN,CLOSE,8,1),LINETHICK2,COLOR00FF00;
DRAWICON(CROSS(MA1,MA2),LOW-0.1,3);
加仓:STICKLINE(COUNT(CLOSE>MA3,1)=1ANDREF(CLOSE,3)<REF(REF(MA3,3),1),HIGH,LOW,0.5,1),COLORYELLOW;
STICKLINE(COUNT(CLOSE>MA3,1)=1ANDREF(CLOSE,3)<REF(REF(MA3,3),1),OPEN,CLOSE,5,1),COLORYELLOW;
DRAWTEXT(COUNT(CLOSE>MA3,3)=3ANDREF(CLOSE,3)<REF(REF(MA3,3),1),LOW,'加仓'),COLORF0F000;
卖出:STICKLINE(CROSS(MA2,MA1),HIGH,LOW,0.5,1),COLORE66878;
STICKLINE(CROSS(MA2,MA1),OPEN,CLOSE,6,0),LINETHICK2,COLORE66878;
DRAWICON(CROSS(MA2,MA1),HIGH+0.1,4);
文章来源:通达信【稳坐泰山】(源码)
评论(0)