Var1:=COUNT(CLOSE>OPEN,21);
Var2:=COUNT(CLOSE<OPEN,21);
Var3:=IF(Var1>Var2,CLOSE,HIGH);
Var4:=EMA(Var3,13);
Var5:=EMA(Var3,55);
Var6:=(Var4-Var5)*10;
短线趋势: MA(Var6,5),;
个股趋势: MA(Var6,13),;
大盘趋势: MA(Var6,34),;
STICKLINE(Var6>=0,Var6,Var6+1,6,1), colorred;
STICKLINE(Var6<=0,Var6,Var6-1,6,1), colorbbccbb;
STICKLINE(Var6>=0 AND Var6<REF(Var6,1),Var6,Var6+1,6,0),color00ff00 ;
STICKLINE(Var6<=0 AND Var6>REF(Var6,1),Var6,Var6-1,6,0),colorff00ff ;
强弱分界: 0,ColorFFFF00 ;

 

战略趋势(同花顺)

同花顺战略趋势指标公式的选股公式如下: