价量:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
主力活跃力度:=(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25);
主力筹码:=EMA(WINNER(CLOSE)*40,3);
散户筹码:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
ER:=V/FINANCE(7)*100;
MAXcyc:=DMA((C+O)/2,ER/TMA(ER,(1-ER),1));
T1:=BArslAST(C>MAXCYC*POW(1.1,0.9));
T2:=BARSLAST(C<MAXCYC*POW(1.1,-0.9));
T3:=crOSS(T1,T2) OR CROSS(T2,T1) OR BARSSINCE(T1+1)=0 OR BARSSINCE(T2+1)=0 OR BARSCOUNT(C)=0;
T4:=REF(MAXCYC,BARSLAST(T3));
主力最大盈利:=LN(C/T4)/LN(1.1)*10;
换手率:=vol/CAPITAL*100;
主线:=EMA(EMA(C,1),5);
本:=EMA(HHV(主线,5),1);
急:=EMA(HHV(本,21),1);
稳:=EMA(HHV(急,21),2);
投:=EMA(HHV(稳,21),3);
散:=EMA(HHV(投,21),4);
集:=EMA(HHV(散,21),5);
日线:=CLOSE;
VAR3:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
疯牛强势分界线:=IF(C>200,C,DMA(VAR3,VOL/CAPITAL))*1.1;
疯牛马线:=EMA(HHV(集,21),6);
TT:=(2*CLOSE+OPEN+HIGH+LOW);
Y:=(H+O+L+3*C)/6;
净资金流向:=EMA(100-(100/(1+SUM(IF(Y>REF(Y,1),Y*VOL,0),14)/SUM(IF(Y<REF(Y,1),Y*VOL,0),14))),5);
主导动能:=(TT/EMA(TT,4)-1)*100;
FF:=主导动能*5;
角度1:=ATAN((净资金流向/REF(净资金流向,1)-1)*100)*180/3.1416;
角度2:=ATAN((FF/REF(FF,1)-1)*100)*180/3.1416;
放量2:=(FF-REF(FF,1))*100/REF(FF,1);
主力疯狂做多:IF((主力最大盈利>0)AND(主力最大盈利<150)AND(主力活跃力度>50)AND(C>疯牛强势分界线)AND(日线>疯牛马线)AND(换手率<20)AND(放量2>10)AND(角度1>2)AND(主力筹码>散户筹码),48,0);