趋势低吸主图指标源码
低吸是指在股票走势向下调整的时候低价买进,然后等待调整结束后继续向上拉升。 今天小编整理了趋势低吸主图指标源码供大家参考,一起来看看吧!
趋势低吸主图指标源码
实时价格:=C,COLORWHITE,LINETHICK2;
均价线:=SUM(C×V,240)/SUM(V,240),COLORRED,LINETHICK2;
VAR1:=BARSCOUNT(C);
VAR2:=REF(HHV(H,VAR1),1);
突破:=CROSS(C,REF(HHV(H,VAR1),1)) AND C/均价线< 1.09 AND VAR1>1 AND VAR1< 240;
机构买:=COUNT(突破,13)>=3 AND CROSS(C,REF(HHV(H,VAR1),1));
VAR3:=MA(((SLOPE(C,20)×5)+C),10);
VAR4:=HOUR=09 AND MINUTE=45;
VAR5:=HHV(H,15);
VAR6:=BARSLAST(VAR4);
VAR7:=REF(VAR5,VAR6);
VAR8:=CONST(VAR7),COLORFF80FF,CIRCLEDOT,LINETHICK2;
VAR9:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR10:=EMA(VAR9,9);
VAR11:=(VAR9-VAR10)×2;
VAR12:=VAR11>00 AND VAR9>0 AND VAR10>0;
VAR13:=HOUR=10 AND MINUTE=0;
VAR14:=HHV(H,30);
VAR15:=BARSLAST(VAR13);
VAR16:=REF(VAR14,VAR15);
VAR17:=CONST(VAR16);
VAR18:=CLOSE>VAR17 AND REF(C<=VAR17,1) AND CLOSE>VAR3;
VAR19:=FILTER(VAR18,100);
VAR20:=DYNAINFO(3);
VAR21:=CLOSE<=VAR20×1.04 AND CLOSE>VAR20;
量化指标:=V/REF(MA(V,5),1);
VAR22:=VAR12 AND VAR19 AND VAR21 AND VAR16>VAR20 AND 量化指标>=1;
X_1:=MAX(DYNAINFO(3),DYNAINFO(5));
X_2:=MIN(DYNAINFO(3),DYNAINFO(6));
X_3:=X_1-X_2;
压力位:=X_2+X_3×8/9,COLORLIRED,DOTLINE;
主力线:=X_2+X_3×0.5/9,COLORGREEN,DOTLINE;
DRAWTEXT(FILTER(CROSS(C,主力线),240),L-0.01,'低吸'),COLORYELLOW;
DRAWTEXT(FILTER(CROSS(C,压力位),240),H-0.01,'压力'),COLOR0000FF;
X_4:=V×C/100;
X_5:=SUM((IF(((X_4/8>20) AND (CLOSE>(REF(CLOSE,1)))),X_4,0)),0);
X_6:=SUM((IF(((X_4/8>20) AND (CLOSE< (REF(CLOSE,1)))),X_4,0)),0);
X_7:=SUM((IF(((X_4/8< 20) AND (CLOSE>(REF(CLOSE,1)))),X_4,0)),0);
X_8:=SUM((IF(((X_4/8< 20) AND (CLOSE< (REF(CLOSE,1)))),X_4,0)),0);
X_9:=BARSLAST(CLOSE=HHV(CLOSE,60));
X_10:=BARSLAST(CLOSE=LLV(CLOSE,60));
X_11:=X_10>X_9 AND X_10>X_9;
X_12:=X_10>X_9 AND X_10< X_9;
X_13:=X_9>X_10 AND X_9>X_10;
X_14:=X_9>X_10 AND X_9< X_10;
DRAWICON(FILTER(CROSS(X_10,X_9),240),OPEN×1,1);
DRAWTEXT(FILTER(CROSS(X_10,X_9),240) ,OPEN×1,' ←抓涨'),COLORRED;
Y_1:=BARSCOUNT(C);
Y_2:=SUM(C×V,Y_1)/SUM(V,Y_1);
Y_3:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);
Y_4:= C>=REF(C,1) AND REF(C,1)>REF(C,2);
量价突破:=C>Y_2 AND V>MA(V,5);
量突破:=V>=REF(V,1)×1;
价突破:=C>=HHV(C,0);
Y_5:=V>=HHV(V,0);
Y_6:=(C/DYNAINFO(3)-1)×100<=4.50;
Y_7:=Y_3 AND Y_4 AND 量价突破 AND 量突破 AND 价突破 AND Y_5 AND Y_6;
Y_8:=BARSSINCE(Y_7)+1;
首爆价:=REF(C,Y_8-1),NODRAW;
DRAWICON(Y_7,C,9);
Y_9:=FILTER(CROSS(X_10,X_9),240);
Y_10:=BARSSINCE(Y_9)+1;
Y_11:=CROSS(C,REF(HHV(H,VAR1),1)) AND HHVBARS(VOL,VAR1)=0 AND C/均价线< 1.09 AND VAR1>1 AND VAR1< 240 AND BARSLAST(机构买)>=20 AND Y_6;
DRAWICON(Y_11,C,23);
Y_12:=C/REF(C,3)>1.04 ;
DRAWTEXT(Y_12,C×0.995,' ←突破'),COLORYELLOW;
尾盘低吸指标——龙回头通达信主图/副图/选股指标源码
量化交易横行的现状,只能默默低吸,一旦追高必定被坑,所以特推出这款尾盘低吸指标。
1. 指标尽量简单易懂,大家可以根据实际情况自行调节以达到最佳效果;
2. 经测试一年,量化交易胜率大于70%,如果自行控制好止盈止损,将会扩大盈亏比,这尤为重要。
3. 明显大盘或者板块走势弱势,请谨慎开仓。
4. 该指标适合14:40尾盘开仓。
5. 盈利的单子绝对不能亏着出,哪怕1%也不能亏损出,所以建议设置微高于成本价的条件单做为最后防线。
BKMA13:=MA(INDEXC,13);
A1:=BKMA13>1.05×INDEXC;
HTFD:=100×(C-REF(C,30))/REF(C,30);
A2:=HTFD<-30;{www.gpxiazai.com}
BLFD:=100×(C-MA(C,5))/MA(C,5);
A3:=BLFD<-5;
XG:=A1 AND A2 AND A3;
DRAWICON(XG,H,34);
趋势低吸什么意思?
趋势低吸常被应用于股票交易中,趋势代表的一支股票的走向,是上涨还是下降。低吸是指投资者在股价波动低点买入,在投资股票时,高抛低吸往往是投资者成功的核心秘诀,也是所有投资者普遍知道的方法,从最高点抛出,最低点吸收进来。