平衡位 源码
2013-02-05 10:24:00来源:本站整理浏览:185
R:=AMOUNT/100000000;
R1:=IF(C>REF(C,1),R,0);
R3:=SUM(R1,21);
JJ:=R3*C;
AA:=MA(JJ,3);
A:SMA(AA,2,1),COLORWHITE;
B:SMA(SMA(AA,2,1),3,1),COLORYELLOW;
平衡位:MA(JJ,21),COLOR00FF00,LINETHICK2;
{WWW.GPXIAZAI.COM 股票软件下载网_通达信股票指标公式}
STICKLINE(AA>=REF(AA,1),REF(AA,1),AA,3.5,0),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(A,B) AND V>REF(V,1) AND REF(V,1)>REF(V,2),B*0.98,'短买'),COLORYELLOW;
DRAWTEXT(CROSS(B,A),A*1.02,'短卖'),COLORGREEN;
DRAWTEXT(CROSS(A,平衡位),平衡位*0.98,'加仓'),COLORFF00FF;
DRAWTEXT(CROSS(平衡位,A),A*1.02,'减仓'),COLOR33FF33;
DRAWTEXT(CROSS(B,平衡位),平衡位*0.98,'满仓'),COLORWHITE;
DRAWTEXT(CROSS(平衡位,B),B*1.02,'清仓');