通达信强势股选股指标公式

N:=20;M:=20;
      VAR1C:=(CLOSE-REF(OPEN,20))/REF(OPEN,20);
      VAR2C:=(INDEXC-REF(INDEXO,20))/REF(INDEXO,20);
      强势股:IF(VAR1C>0 AND VAR2C>0 AND VAR1C/VAR2C>=20/10 OR VAR1C>VAR2C AND VAR2C=0 OR 0>VAR1C AND VAR1C>VAR2C AND VAR2C/VAR1C>=20/10,1,0),COLORRED;
      DRAWTEXT(强势股,10,'▲'),COLORRED;

(0)

相关推荐