当前位置: 网站首页 > 股票软件公式 > 同花顺公式 > 文章 当前位置: 同花顺公式 > 文章

同花顺源码:妖股暴力+神奇布林均线+高低组合指标

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

妖股暴力:

SL1:=0.99;

LJ1:=1;
SL2:=0.99;
SJ2:=72;
精准启动:=1;
精准启动1:=2;
MA10:=MA(CLOSE,10);
MA54:=MA(CLOSE,54);
HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
HJ_9:=FILTER(HJ_8,10);
HJ_10:=BARSLAST(HJ_9);
HJ_11:=REF(HIGH,HJ_10+2);
HJ_12:=REF(HIGH,HJ_10+1);
HJ_13:=REF(HIGH,HJ_10);
HJ_14:=MAX(HJ_11,HJ_12);
HJ_15:=MAX(HJ_14,HJ_13);
HJ_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
HJ_17:=HJ_10<150;
HJ_18:=(OPEN-HJ_15)/HJ_15*100<30;
HJ_19:=(CLOSE-LLV(LOW,HJ_10))/LLV(LOW,HJ_10)*100<50;
HJ_20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
HJ_21:=VOL/MA(VOL,5)<3.5;
HJ_22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
HJ_25:=HJ_16 AND HJ_17 AND HJ_18 AND HJ_19 AND HJ_20 AND HJ_21 AND HJ_22;
暴利:=FILTER(HJ_25,15);
PL1:=(((CLOSE-MA54)/MA54)<0.1);
PL2:=(((CLOSE-MA10)/MA10)<0.3);
偏离率:=(((PL1=1) AND (PL2=1))*0.2);
平台突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);
妖股突破:=平台突破=-0.1;
xdf:=(暴利 OR 妖股突破);
VARA:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VARAA:=DYNAINFO(7)/(REF(CLOSE,1))>1.05 AND (DYNAINFO(7)/O>1.05);
FLIGA:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2);
XG:IF(xdf AND C/REF(C,1)>1.095 AND FLIGA AND VARAA,2,0),colorred,LINETHICK4;
N:=0.93;
VAR1:=MA((LOW+HIGH+CLOSE+OPEN)/4,25)*1.23;
VAR2:=MA(LOW,24)*1.09;
VAR3:=MA(LOW,24)*1.19;
VAR4:=EMA(SLOPE(CLOSE,13)*13+CLOSE,13);
VAR5:=HHV(VAR4,26);
VAR6:=EMA(SLOPE(CLOSE,10)*10+CLOSE,30);
VAR7:=HHV(VAR6,30);
VAR8:=EMA(SLOPE(CLOSE,25)*25+CLOSE,25);
VAR9:=HHV(VAR8,55);
VAR10:=(LOW+HIGH+CLOSE+OPEN)/3.8;
VAR11:=HHV(MA(VAR10,8),60);
VAR12:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,9)-LLV(LOW,12))*123;
VAR13:=SMA(VAR12,3,1);
VAR14:=SMA(VAR13,3,1);
VAR15:=5*VAR13-3*VAR14;
VAR16:=7*VAR13-6*VAR14;
VAR17:=MA(LOW,13)*1.19;
VAR18:=MA(LOW,11)*1.09;
VAR19:=REF(COUNT(VAR17>REF(VAR17,1),3)=3,1);
VAR20:=REF(VAR15>REF(VAR15,1) AND VAR16>REF(VAR16,1),1) AND VAR15>240 AND VAR16>150;
私募:IF(CROSS(CLOSE,VAR9) AND HIGH>VAR11 OR (CROSS(CLOSE,VAR11) AND HIGH>VAR9) AND CLOSE/VAR3>N AND OPEN/LOW<1.009 AND VAR20 AND VAR11>VAR2 AND REF(VAR2>VAR7,1) AND REF(COUNT(CLOSE/REF(CLOSE,1)>1.075,5)<1,1) AND CLOSE>VAR5 AND CLOSE>VAR2 AND CLOSE/REF(CLOSE,1)>1.049,1.5,0),colorgreen,LINETHICK3;
STICKLINE(私募,0,0.8,4,0),colorgreen,LINETHICK3;




神奇布林均线(顶尖财经 股票学院: http://58188.com):

 BOLL:MA(CLOSE,20),colorwhite,linethick3;

upper:BOLL+2*STD(CLOSE,20),colorred,linethick3;
lower:BOLL-2*STD(CLOSE,20),colorgreen,linethick3;
拉升线:MA(CLOSE,5),colorgreen;
主力线:MA(CLOSE,10),colorlimagenta,linethick1;
ma20:=MA(CLOSE,20),colorlimagenta;
生命线:=MA(CLOSE,30),colorwhite,linethick3;
多空趋势60:=MA(CLOSE,60),color555555,linethick1;
半年线:=MA(CLOSE,120),colorblue,linethick1;
DRAWTEXT(CROSS(ma20,生命线),生命线*0.98,'回头买狂升'),colorgreen,linethick2;
DRAWTEXT(CROSS(生命线,多空趋势60),多空趋势60*0.98,'中线逢低买牛'),COLOR0000FF,linethick2;
DRAWTEXT(CROSS(多空趋势60,半年线),半年线*0.98,'锁定长牛'),COLOR999999,linethick2;
aa:=CLOSE/REF(C,1)>=1.09;
STICKLINE(aa,O,C,3,0),coloryellow;
STICKLINE(aa,L,H,0,0),coloryellow;
正向分形:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
正向定位:=CROSS(C,正向分形) AND 正向分形>REF(正向分形,1);
STICKLINE(正向定位,H,L,0,1),colorligreen,LINETHICK2;
STICKLINE(正向定位,O,C,1.8,0),colorligreen,LINETHICK2;
AAA:=(3*C+H+L+O)/6;
VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1;
立桩量:=FILTER(TJ1,5);
TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));
突破:=TJ2=1;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),colorcyan;
STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),coloryellow;
TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));
三天法则:=TJ3=1;
成立:=三天法则 AND 突破;
条件成立:=FILTER(成立,3);
DRAWTEXT(条件成立,L*0.99,'大资金进'),coloryellow;
Va1:=EMA(CLOSE,8);
Va2:=EMA(Va1,20);
Va3:=CROSS(Va1,Va2);
Va4:=VOL/SUM(VOL,13);
Va5:=DMA(CLOSE,Va4);
Va6:=Va1<MA(CLOSE,120);
A3a:=Va3 AND Va6 AND (CLOSE-Va5)/Va5*100/2.5>1.6;
A4a:=CROSS( (CLOSE-Va5)/Va5*100/2.5,0 ) AND (CLOSE-Va5)/Va5*100/2.5>1.5 ;

DRAWTEXT(A4a>0 OR A3a>0,L-0.3,'追'),colorwhite;



高低组合指标:

板:=REF(C,3)*1.1-REF(C,2)<0.01 AND REF(V,2)<REF(V,1)*0.7;
板天数:IF(板,2,BARSLAST((REF(C,1)*1.1-C)<0.01)),NODRAW;
昨日百高:REF(V,板天数-1)=HHV(V,100),NODRAW;
高低: 板天数=2 AND 昨日百高 AND V<REF(V,1) AND REF(V,1)>REF(V,2) AND O<REF(MIN(O,C),1) AND C>REF(MAX(O,C),1);
高低天数:BARSLAST(高低),NODRAW;
高低价:REF(C,高低天数),NODRAW;
现价:C,NODRAW;
XG:EVERY(C<高低价,高低天数) AND 高低天数<100 ;


上一篇:同花顺源码:波段买卖+愚人寻界+压托势

下一篇:同花顺源码:金叉缠论+主力拉升+穿云第三箭