通达信组合买点,量能 平台起飞 一阳穿三线 涨停螺旋 稳操胜券 追涨
装: DRAWGBK(1,RGB(36,38,40),RGB(24,16,51),0,1,0);
抄底红箭 := ((LLV(VAR1B,2) = LLV(VAR1B,7)) AND (COUNT(VAR1B < 0,2))) AND CROSS(VAR1B,MA(VAR1B,2));
股价 := IF(((CLOSE - MA(CLOSE,22)) / MA(CLOSE,22)) = DRAWNULL,(CLOSE - EMA(CLOSE,22)) / EMA(CLOSE,22),(CLOSE - MA(CLOSE,22)) / MA(CLOSE,22));
量能金叉 := CROSS(主力量能,0);
CCI := (TYP - MA(TYP,14)) / (0.015 * AVEDEV(TYP,14));
A1 := EMA(C,14);
出击A := IF(A1X >= 0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0)) + 1),DRAWNULL);
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
MACD金叉 := CROSS(DIFF,DEA);
HD := HIGH - REF(HIGH,1);
DMP := EXPMEMA(IF((HD > 0) AND (HD > LD),HD,0),14);
PDI := (DMP * 100) / MTR;
ADX := EXPMEMA(((ABS(MDI - PDI)) / (MDI + PDI)) * 100,6);
X1 := MAX(C,O);
X := ((REF(C > O,2)) AND (REF(X1,2) >= HHV(X1,2))) AND (REF(X2,2) <= LLV(X2,2));
A := ((REF(X1,B) >= HHV(X1,B)) AND (REF(X2,B) <= LLV(X2,B))) AND (EVERY(V <= REF(V,1),B));
平台起飞 : IF(((LAST(((H - L) / REF(C,1)) < 0.1,5,0)) AND (VOL > (REF(VOL,1) * 2))) AND (C > (REF(C,1) * 1.05)),1,DRAWNULL),NODRAW,COLOR6060A0;
LOWV := LLV(LOW,NH);
MAV := MA(V,3);
放量1 := V >= (1.8 * MAV);
启动 : IF((横盘 AND 放量1) AND 今天大阳,1,DRAWNULL),NODRAW,COLOR4080FF;
B☆ := VOL / (((H - L) * 2) - (ABS(C - O)));
A☆☆ := (C☆☆ / 20) / 1.15;
B☆☆ := EMA(攻击流量,3);
AA☆ := ((MAX(C,O) - MIN(C,O)) / MIN(C,O)) < 0.00618;
DD☆ := ((MIN(C,O) - L) / L) > 0.00382;
星☆星 := ((AA☆ AND BB☆) AND DD☆) AND EE☆;
星线确认 : IF(((IF((REF(星线选,1) = 1) AND (C >= REF(C,1)),1,0)) AND (C > O)) AND (((C - REF(C,1)) / REF(C,1)) > 0.00618),1,DRAWNULL),NODRAW,COLORFF3399;
T31 := (REF(C,1) / REF(C,2)) >= 1.095;
T33 := ((H > C) AND (O > L)) AND (L >= REF(C,1));
涨停螺旋 : IF(((T31 AND T32) AND T33) AND T34,1,DRAWNULL),NODRAW,COLOR002080;
K := SMA(RSV,3,1);
J := (3 * K) - (2 * D);
A1B := EMA(((L + H) + (C * 2)) / 4,14);
出击B := IF((A1XB >= 0) AND (BARSLAST(CROSS(A1XB,0)) > 0),REF((C + O) / 2,BARSLAST(CROSS(A1XB,0))),DRAWNULL);
WMTM := CLOSE - REF(CLOSE,12);
VAR1 := (CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2));
VAR3 := (REF(VAR2,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2));
VAR5 := (REF(VAR4,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2));
VAR7 := (REF(VAR6,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2));
VAR9 := (REF(VAR8,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2));
VARB := (REF(VARA,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2));
VARD := (CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2));
VARF := (REF(VARE,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2));
VAR11 := (REF(VAR10,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2));
VAR13 := (REF(VAR12,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2));
VAR15 := (REF(VAR14,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2));
VAR17 := (REF(VAR16,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2));
K线金底 := (REF(((((((((((VARD OR VARE) OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18,1)) AND VAR1;
K线银底 := (下跌 AND (C > O)) AND (C > REF(C,1));
HLC := REF(MA(((HIGH + LOW) + CLOSE) / 3,10),1);
LV := EMA(LLV(LOW,10),3);
短线突击 := EMA((C + REF(C,1)) / 2,3);
PSYMA := MA(PSY,6);
做空衰歇 := CROSS(ADX,MDI);
拉升金叉 := CROSS(ADX,ADXR) AND (PDI > MDI);
初选基础池 := (预选安全区域 AND (((金银K线 OR 抄底红箭) OR 动量金叉) OR (做空衰歇 OR 做多金叉))) AND ((初选量能金叉 OR CCI金叉) OR 出击A金叉);
出击B金叉确认 := 出击B金叉 AND ((REF(CCI金叉 OR KD金叉,1)) OR 做空衰歇);
MACD金叉确认 := MACD金叉 AND REF(量能金叉,1);
稳操胜券 : IF((REF(初选基础池,1) AND ((动量金叉确认 OR 出击B金叉确认) OR 启动)) AND ((做多金叉确认 OR MACD金叉确认) OR KD金叉确认),1,DRAWNULL),COLORA000FF;
关注 := ((((((((金银K线 + 抄底红箭) + 量能金叉) + CCI金叉) + CROSS(出击A,0)) + CROSS(出击B,0)) + 拉升金叉) + 做多金叉) + KD金叉) + MACD金叉;
STICKLINE(稳操胜券,0,9.0,0.8,0),COLORLIMAGENTA;
STICKLINE(星线确认,0,3.5,0.0,0),COLORFF0080;
STICKLINE(一阳穿三线,0,2.5,1.8,0),COLORB040B0;
STICKLINE(平台起飞,0,1.5,2.8,0),COLOR6060A0;
金K线显示条件 := ((REFX(稳操胜券 OR 追涨显示条件,1)) OR 初选基础池) OR ((CURRBARSCOUNT <= 2) AND 初选基础池);
STICKLINE(K线银底 AND 银K线显示条件,0,0.5,3.5,0),COLORLIGRAY;
图标显示 := ((REFX(稳操胜券,1) OR 稳操胜券) OR 追涨显示条件) OR ((CURRBARSCOUNT <= 2) AND 初选基础池);
DRAWICON(出击A金叉 AND 图标显示,1.0,16);
DRAWICON(CCI金叉 AND 图标显示,3.0,25);
DRAWICON(KD金叉 AND 图标显示,5.0,27);
DRAWICON(做多金叉 AND 图标显示,7.0,13);
DRAWICON(拉升金叉 AND 图标显示,8.0,23);
STICKLINE(CURRBARSCOUNT<2,HHV(C,40),LLV(C,40),4,1),COLORGRAY;
STICKLINE(CURRBARSCOUNT<2 AND C<REF(C,1),C,LLV(C,40),3,0),COLORCYAN;
STICKLINE(CURRBARSCOUNT<2 AND C>REF(C,1),L,L+量比/10,2,0),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT<2 AND O/LLV(C,20)<1.05 AND 量比>2.2 AND C>REF(C,1),REF(C,1)*1.02,'2~3个点买'),COLORMAGENTA;
DRAWNUMBER(CURRBARSCOUNT<2,C,AB1),COLORMAGENTA;
未来函数检测结果如下:
该公式包含未来函数:REFX
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出装: DRAWGBK(1,RGB(36,38,40),RGB(24,16,51),0,1,0)
抄底红箭 := ((2日内VAR1B最低值 = 7日内VAR1B最低值) AND (统计2日满足VAR1B < 0的天数)) AND CROSS(VAR1B,VAR1B的2日简单移动平均)
股价 := IF(((收盘价 - 收盘价的22日简单移动平均) / 收盘价的22日简单移动平均) = DRAWNULL,(收盘价 - 收盘价的22日指数移动平均) / 收盘价的22日指数移动平均,(收盘价 - 收盘价的22日简单移动平均) / 收盘价的22日简单移动平均)
量能金叉 := 主力量能上穿0
CCI := (TYP - TYP的14日简单移动平均) / (0.015 * AVEDEV(TYP,14))
A1 := C的14日指数移动平均
出击A := IF(A1X >= 0,REF(C的14日指数移动平均,上次A1X上穿0距今天数 + 1),DRAWNULL)
DIFF := 收盘价的12日指数移动平均 - 收盘价的26日指数移动平均
MACD金叉 := DIFF上穿DEA
HD := 最高价 - 1日前的最高价
DMP := EXPMEMA(IF((HD > 0) AND (HD > LD),HD,0),14)
PDI := (DMP * 100) / MTR
ADX := EXPMEMA(((MDI - PDI的绝对值) / (MDI + PDI)) * 100,6)
X1 := C和O较大值
X := ((2日前的C > O) AND (2日前的X1 >= 2日内X1最高值)) AND (2日前的X2 <= 2日内X2最低值)
A := ((B日前的X1 >= B日内X1最高值) AND (B日前的X2 <= B日内X2最低值)) AND (EVERY(V <= 1日前的V,B))
平台起飞 : IF(((LAST(((H - L) / 1日前的C) < 0.1,5,0)) AND (成交量 > (1日前的成交量 * 2))) AND (C > (1日前的C * 1.05)),1,DRAWNULL),NODRAW,COLOR6060A0
LOWV := NH日内最低价最低值
MAV := V的3日简单移动平均
放量1 := V >= (1.8 * MAV)
启动 : IF((横盘 AND 放量1) AND 今天大阳,1,DRAWNULL),NODRAW,COLOR4080FF
B☆ := 成交量 / (((H - L) * 2) - (C - O的绝对值))
A☆☆ := (C☆☆ / 20) / 1.15
B☆☆ := 攻击流量的3日指数移动平均
AA☆ := ((C和O较大值 - C和O的较小值) / C和O的较小值) < 0.00618
DD☆ := ((C和O的较小值 - L) / L) > 0.00382
星☆星 := ((AA☆ AND BB☆) AND DD☆) AND EE☆
星线确认 : IF(((IF((1日前的星线选 = 1) AND (C >= 1日前的C),1,0)) AND (C > O)) AND (((C - 1日前的C) / 1日前的C) > 0.00618),1,DRAWNULL),NODRAW,COLORFF3399
T31 := (1日前的C / 2日前的C) >= 1.095
T33 := ((H > C) AND (O > L)) AND (L >= 1日前的C)
涨停螺旋 : IF(((T31 AND T32) AND T33) AND T34,1,DRAWNULL),NODRAW,COLOR002080
RSV的3日[1日权重]移动平均
J := (3 * K) - (2 * D)
A1B := EMA(((L + H) + (C * 2)) / 4,14)
出击B := IF((A1XB >= 0) AND (上次A1XB上穿0距今天数 > 0),REF((C + O) / 2,上次A1XB上穿0距今天数),DRAWNULL)
WMTM := 收盘价 - 12日前的收盘价
VAR1 := (收盘价 > 1日前的收盘价) AND (收盘价 > 2日前的收盘价)
VAR3 := (1日前的VAR2 AND (收盘价 >= 1日前的收盘价)) AND (收盘价 <= 2日前的收盘价)
VAR5 := (1日前的VAR4 AND (收盘价 >= 1日前的收盘价)) AND (收盘价 <= 2日前的收盘价)
VAR7 := (1日前的VAR6 AND (收盘价 >= 1日前的收盘价)) AND (收盘价 <= 2日前的收盘价)
VAR9 := (1日前的VAR8 AND (收盘价 >= 1日前的收盘价)) AND (收盘价 <= 2日前的收盘价)
VARB := (1日前的VARA AND (收盘价 >= 1日前的收盘价)) AND (收盘价 <= 2日前的收盘价)
VARD := (收盘价 < 1日前的收盘价) AND (收盘价 < 2日前的收盘价)
VARF := (1日前的VARE AND (收盘价 <= 1日前的收盘价)) AND (收盘价 >= 2日前的收盘价)
VAR11 := (1日前的VAR10 AND (收盘价 <= 1日前的收盘价)) AND (收盘价 >= 2日前的收盘价)
VAR13 := (1日前的VAR12 AND (收盘价 <= 1日前的收盘价)) AND (收盘价 >= 2日前的收盘价)
VAR15 := (1日前的VAR14 AND (收盘价 <= 1日前的收盘价)) AND (收盘价 >= 2日前的收盘价)
VAR17 := (1日前的VAR16 AND (收盘价 <= 1日前的收盘价)) AND (收盘价 >= 2日前的收盘价)
K线金底 := (REF(((((((((((VARD OR VARE) OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18,1)) AND VAR1
K线银底 := (下跌 AND (C > O)) AND (C > 1日前的C)
HLC := REF(MA(((最高价 + 最低价) + 收盘价) / 3,10),1)
LV := E10日内最低价最低值的3日简单移动平均
短线突击 := EMA((C + 1日前的C) / 2,3)
PSYMA := PSY的6日简单移动平均
做空衰歇 := ADX上穿MDI
拉升金叉 := ADX上穿ADXR AND (PDI > MDI)
初选基础池 := (预选安全区域 AND (((金银K线 OR 抄底红箭) OR 动量金叉) OR (做空衰歇 OR 做多金叉))) AND ((初选量能金叉 OR CCI金叉) OR 出击A金叉)
出击B金叉确认 := 出击B金叉 AND ((1日前的CCI金叉 OR KD金叉) OR 做空衰歇)
MACD金叉确认 := MACD金叉 AND 1日前的量能金叉
稳操胜券 : IF((1日前的初选基础池 AND ((动量金叉确认 OR 出击B金叉确认) OR 启动)) AND ((做多金叉确认 OR MACD金叉确认) OR KD金叉确认),1,DRAWNULL),COLORA000FF
关注 := ((((((((金银K线 + 抄底红箭) + 量能金叉) + CCI金叉) + 出击A上穿0) + 出击B上穿0) + 拉升金叉) + 做多金叉) + KD金叉) + MACD金叉
当满足条件稳操胜券时,在0和9.0之间画柱状线
当满足条件星线确认时,在0和3.5之间画柱状线
当满足条件一阳穿三线时,在0和2.5之间画柱状线
当满足条件平台起飞时,在0和1.5之间画柱状线
金K线显示条件 := ((REFX(稳操胜券 OR 追涨显示条件,1)) OR 初选基础池) OR ((CURRBARSCOUNT <= 2) AND 初选基础池)
当满足条件K线银底 AND 银K线显示条件时,在0和0.5之间画柱状线
图标显示 := ((REFX(稳操胜券,1) OR 稳操胜券) OR 追涨显示条件) OR ((CURRBARSCOUNT <= 2) AND 初选基础池)
当满足条件出击A金叉 AND 图标显示时,在1.0和16之间画图标
当满足条件CCI金叉 AND 图标显示时,在3.0和25之间画图标
当满足条件KD金叉 AND 图标显示时,在5.0和27之间画图标
当满足条件做多金叉 AND 图标显示时,在7.0和13之间画图标
当满足条件拉升金叉 AND 图标显示时,在8.0和23之间画图标
STICKLINE(CURRBARSCOUNT<2,40日内C最高值,40日内C最低值,4,1),COLORGRAY
STICKLINE(CURRBARSCOUNT<2 AND C<1日前的C,C,40日内C最低值,3,0),COLORCYAN
STICKLINE(CURRBARSCOUNT<2 AND C>1日前的C,L,L+量比/10,2,0),画黄色
DRAWTEXT(CURRBARSCOUNT<2 AND O/20日内C最低值<1.05 AND 量比>2.2 AND C>1日前的C,1日前的C*1.02,'2~3个点买'),COLORMAGENTA
DRAWNUMBER(CURRBARSCOUNT<2,C,AB1),COLORMAGENTA