上穿平衡线为多头市场,反之为空头市场。平衡位越低说明越安全。
R:=AMOUNT/100000000;
R1:=IF(CLOSE>REF(CLOSE,1),R,0);
R3:=SUM(R1,21);
JJ:=R3*CLOSE;
aa:=MA(JJ,3);
a:SMA(aa,2,1),colorwhite;
b:SMA(SMA(aa,2,1),3,1),coloryellow;
平衡位:MA(JJ,21),color00ff00,linethick2;
STICKLINE(aa>=REF(aa,1),REF(aa,1),aa,6,0),colorred;