通达信精准提前必涨停副图选股公式源码
A:=IF(DATE 1280210,0,1);
X00:=O;
MX000:=(0.3609454219*X00-0.03309329629*REF(X00,1)-0.04241822779*REF(X00,2)-0.026737249*REF(X00,3)-0.007010041271*REF(X00,4)-0.002652859952*REF(X00,5)-0.0008415042966*REF(X00,6)-0.0002891931964*REF(X00,7)-0.0000956265934*REF(X00,8)-0.0000321286052*REF(X00,9)-0.0000106773454*REF(X00,10)-0.0000035457562*REF(X00,11)-0.0000011670713*REF(X00,12) )/ (1-0.7522406533 );
明日重心涨跌幅:=(MX000-X00)/X00*100;
资金动力:=明日重心涨跌幅*100;
ST:=NOT(C/REF(C,1) =1.045 AND O=C)*A;
ST1:=IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1);
涨停:=REF(C,1)*1.1-C 0.01 AND H=C;{涨停}
最低成本:=COST(5);
最高成本:=COST(95);
平均成本:=COST(50);
成本重心:=(平均成本-最低成本)/(最高成本-最低成本)*100;
成本带宽CBW:=(最高成本-最低成本)/最低成本*100*A;
中线位置:=(C-LLV(最低成本,120))/LLV(最低成本,120)*100*A;
成本突破:=(中线位置 50 AND 成本带宽CBW 40)*A;
XG5:=BARSLASTCOUNT(成本突破)*A;
AHC1:=CLOSE*VOL;
AHC2:=EMA((EMA(AHC1,3)/EMA(VOL,3)+EMA(AHC1,6)/EMA(VOL,6)+EMA(AHC1,12)/EMA(VOL,12)+EMA(AHC1,24)/EMA(VOL,24))/4,13);
内上:=1.06*AHC2*A;
内下:=AHC2*0.94;
XXX:=(MA(CLOSE,120) 内下 AND MA(CLOSE,60) 内下 AND MA(CLOSE,20) 内下 AND MA(CLOSE,10) 内下 AND MA(CLOSE,5) 内下
AND MA(CLOSE,120) 内上 AND MA(CLOSE,60) 内上 AND MA(CLOSE,20) 内上 AND MA(CLOSE,10) 内上 AND MA(CLOSE,5) 内上)/2*A;
VAR61 := MA(C,26);
VAR62 := POW(C - VAR61,2);
VAR63 := MA(VAR62,13);
VAR64 := SQRT(VAR63);
VAR65 :=VAR61 + (2 * VAR64);
XG14:=COUNT(REF(L,0)/REF(L,1) 1.03,5)=1;
XG9:=BARSLASTCOUNT(XG14);
XG15:=COUNT(REF(L,0)/REF(L,1) 1.03,5)=1;
XG10:=BARSLASTCOUNT(XG15);
A1:=(C-REF(C,1))/REF(C,1)*100*A;
涨停多:=NOT(REF(涨停,1)) AND REF(A1,1) 3 AND REF(A1,2) 3 AND REF(A1,3) 3 AND REF(A1,4) 3 AND REF(A1,5) 3 AND REF(A1,6)
D:=MA(O,4)+0.03;
霸气:={CROSS(VAR32,50) AND }O/REF(C,1) 1.02 AND HIGH REF(VAR65,1) AND 资金动力 =400 AND 涨停多 AND XG9=1;
霸气2:={CROSS(VAR32,50) AND }O/REF(C,1) 1.02 AND HIGH REF(VAR65,1) AND 涨停多 AND XG9=1 AND XXX AND XG5 AND ST1 AND ST AND O/REF(C,1) 1.06 AND REF(C,1)
VAR34 := ZJL.折价率#WEEK;
VAR35 := MA(VAR34,PERIOD) + (2 * STD(VAR34,PERIOD));
VAR36 := (MA(VAR34,3 * PERIOD)) + (2 * (STD(VAR34,3 * PERIOD)));
VAR37 := (MA(VAR34,5 * PERIOD)) + (2 * (STD(VAR34,5 * PERIOD)));
VAR38 := (MA(VAR34,6 * PERIOD)) + (2 * (STD(VAR34,6 * PERIOD)));
VAR39 := (MA(VAR34,7 * PERIOD)) + (2 * (STD(VAR34,7 * PERIOD)));
VAR40 := (MA(VAR35 - (REF(VAR35,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR35 - (REF(VAR35,3 * PERIOD)),PERIOD)));
VAR41 := (MA(VAR36 - (REF(VAR36,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR36 - (REF(VAR36,3 * PERIOD)),PERIOD)));
VAR42 := (MA(VAR37 - (REF(VAR37,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR37 - (REF(VAR37,3 * PERIOD)),PERIOD)));
VAR43 := (MA(VAR38 - (REF(VAR38,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR38 - (REF(VAR38,3 * PERIOD)),PERIOD)));
VAR44 := (MA(VAR39 - (REF(VAR39,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR39 - (REF(VAR39,3 * PERIOD)),PERIOD)));
VAR45 := REF(HHV(VAR37,5),1);
VAR46 := REF(HHV(VAR37,5),6);
VAR47 := REF(HHV(VAR37,5),11);
VAR48 := REF(HHV(VAR37,5),16);
VAR49 := REF(HHV(VAR37,5),21);
VAR50 := REF(HHV(VAR37,5),26);
VAR51 := IF(VAR45 REF(MAX(VAR46,VAR47),BARSLAST(CROSS(VAR37,MAX(VAR46,VAR47)))),REF(MAX(VAR46,VAR47),BARSLAST(CROSS(VAR37,MAX(VAR46,VAR47)))),VAR45);
气:=((((VAR37 VAR51)) AND (VAR38 VAR51)) AND (VAR39 VAR51)),COLORRED;
必涨停:XXX AND XG5 AND 霸气 AND ST1 AND ST{ AND 气}*A,COLORFF00FF;
必涨停2:=霸气2 AND (REF(C,2) REF(O,1) OR REF(C,1) REF(O,1) OR REF(C,4) REF(O,1) OR REF(C,3) REF(O,1))*A;
MA34:=EMA(H,5);
确定涨停:(必涨停2 AND REF(C,1) REF(MA34,1) { AND 底部 =0.13}){ OR (必涨停 AND MACD.DIF 0.2)}{AND XG10=1},COLORRED,NODRAW;
STICKLINE(确定涨停,0,0.5,4,0 )*A,COLOR000099;
STICKLINE(确定涨停,0,0.5,3,0 )*A,COLOR0000BB;
STICKLINE(确定涨停,0,0.5,1.5,0 )*A,COLOR0000DD;
STICKLINE(确定涨停,0,0.5,0.3,0 )*A,COLOR0000FF;
DRAWTEXT_FIX(1,0.033,0.89,0,' 【一抓就涨停 】'),COLORYELLOW;
DRAWTEXT_FIX(1,0.033,0.77,0,' 【公式网】'),COLORRED;