【低吸抓涨】分时指标主图支持手机电脑版
实时价格:=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;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
实时价格赋值:C,画白色, 线宽为2
均价线赋值:240的C*V日累和/240的V日累和,画红色, 线宽为2
VAR1赋值:C的有效数据周期数
VAR2赋值:REF(VAR1日内H最高值,1)
突破赋值:CROSS(C,REF(VAR1日内H最高值,1)) AND C/均价线< 1.09 AND VAR1>1 AND VAR1< 240
机构买赋值:统计13日满足突破的天数>=3 AND CROSS(C,REF(VAR1日内H最高值,1))
VAR3赋值:MA(((SLOPE(C,20)*5)+C),10)
VAR4赋值:HOUR=09 AND MINUTE=45
VAR5赋值:15日内H最高值
VAR6赋值:上次VAR4距今天数
VAR7赋值:VAR6日前的VAR5
VAR8赋值:CONST(VAR7),COLORFF80FF,CIRCLEDOT, 线宽为2
VAR9赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
VAR10:=VAR9的9日指数移动平均
VAR11:=(VAR9-VAR10)*2
VAR12:=VAR11>00 AND VAR9>0 AND VAR10>0
VAR13:=HOUR=10 AND MINUTE=0
VAR14:=30日内H最高值
VAR15:=上次VAR13距今天数
VAR16:=VAR15日前的VAR14
VAR17:=CONST(VAR16)
VAR18:=收盘价>VAR17 AND 1日前的C<=VAR17 AND 收盘价>VAR3
VAR19:=VAR18的100过滤
VAR20:=DYNAINFO(3)
VAR21:=收盘价<=VAR20*1.04 AND 收盘价>VAR20
量化指标赋值:V/REF(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,画绿色,DOTLINE
DRAWTEXT(FILTER(C上穿主力线,240),L-0.01,'低吸'),画黄色
DRAWTEXT(FILTER(C上穿压力位,240),H-0.01,'压力'),COLOR0000FF
X_4赋值:V*C/100
X_5赋值:SUM((IF(((X_4/8>20) AND (收盘价>(1日前的收盘价))),X_4,0)),0)
X_6赋值:SUM((IF(((X_4/8>20) AND (收盘价< (1日前的收盘价))),X_4,0)),0)
X_7赋值:SUM((IF(((X_4/8< 20) AND (收盘价>(1日前的收盘价))),X_4,0)),0)
X_8赋值:SUM((IF(((X_4/8< 20) AND (收盘价< (1日前的收盘价))),X_4,0)),0)
X_9赋值:上次收盘价=60日内收盘价最高值距今天数
X_10:=上次收盘价=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(X_10上穿X_9,240),开盘价*1,1)
DRAWTEXT(FILTER(X_10上穿X_9,240) ,开盘价*1,' ←抓涨'),画红色
Y_1赋值:C的有效数据周期数
Y_2赋值:Y_1的C*V日累和/Y_1的V日累和
Y_3赋值:V的5日简单移动平均>REF(V的5日简单移动平均,1) AND REF(V的5日简单移动平均,1)>REF(V的5日简单移动平均,2)
Y_4赋值: C>=1日前的C AND 1日前的C>2日前的C
量价突破赋值:C>Y_2 AND V>V的5日简单移动平均
量突破赋值:V>=1日前的V*1
价突破赋值:C>=0日内C最高值
Y_5赋值:V>=0日内V最高值
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
首爆价赋值:Y_8-1日前的C,NODRAW
当满足条件Y_7时,在C和9之间画图标
Y_9赋值:FILTER(X_10上穿X_9,240)
Y_10:=BARSSINCE(Y_9)+1
Y_11:=CROSS(C,REF(VAR1日内H最高值,1)) AND HHVBARS(成交量,VAR1)=0 AND C/均价线< 1.09 AND VAR1>1 AND VAR1< 240 AND 上次机构买距今天数>=20 AND Y_6
当满足条件Y_11时,在C和23之间画图标
Y_12:=C/3日前的C>1.04
当满足条件Y_12时,在C*0.995和' ←突破'位置书写文字