N:=5;
UP:=SMA(IF(CLOSE>REF(CLOSE,1), CLOSE-REF(CLOSE,1),0),N,1);
DN:=SMA(IF (CLOSE<=REF(CLOSE,1),Abs(CLOSE-REF(CLOSE,1)),0),N,1);
指标:=100*UP/(UP+DN);
强弱指标:MA(指标,3);
平均强弱:MA(强弱指标,3);
安全:20,COLORGREEN;
风险:80,COLORRED;
平衡:50;
N:=5;
UP:=SMA(IF(CLOSE>REF(CLOSE,1), CLOSE-REF(CLOSE,1),0),N,1);
DN:=SMA(IF (CLOSE<=REF(CLOSE,1),Abs(CLOSE-REF(CLOSE,1)),0),N,1);
指标:=100*UP/(UP+DN);
强弱指标:MA(指标,3);
平均强弱:MA(强弱指标,3);
安全:20,COLORGREEN;
风险:80,COLORRED;
平衡:50;