通达信涨停回马枪公式
XA_1:=(CLOSE/REF(CLOSE,1)-1)*100>9.5;
XA_2:=BARSLAST(XA_1);
最后涨停距今数:XA_2,NODRAW,COLOR00CCCC;
XA_3:=BARSLAST(XA_1);
XA_4:=(REF(CLOSE,XA_3)+REF(OPEN,XA_3))/2;
STICKLINE(CLOSE,XA_4,REF(LOW,XA_3),4,0),COLOR002828;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(XA_1,OPEN,CLOSE,2.6,0),COLOR0000E5;
STICKLINE(XA_1,OPEN,CLOSE,2.4,0),COLOR335555;
STICKLINE(XA_1,OPEN,CLOSE,1.8,0),COLOR338888;
STICKLINE(XA_1,OPEN,CLOSE,1.2,0),COLOR33AAAA;
STICKLINE(XA_1,OPEN,CLOSE,0.6,0),COLOR33CCCC;
STICKLINE(XA_1,OPEN,CLOSE,0.1,0),COLOR33EEEE;
XA_5:=REF(CLOSE,1);
XA_6:=IF((XA_5-CLOSE)*100/XA_5>=10-0.01*100/XA_5,1,0);
STICKLINE(XA_6,OPEN,CLOSE,2.6,0),COLORE50000;
MA13:MA(CLOSE,13),COLORCYAN;
IF(MA13>REF(MA13,1),MA13,DRAWNULL),COLORRED;
MA21:MA(CLOSE,21),COLOR00CCCC;
MA55:MA(CLOSE,55),COLOR00CC00,LINETHICK2;
XA_7:=CLOSE>MA21 AND MA13>REF(MA13,1) AND XA_6!=1;
XA_8:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
XA_9:=REF(CLOSE,1);{股票指标网}
XA_10:=SMA(MAX(CLOSE-XA_9,0),2,1)/SMA(ABS(CLOSE-XA_9),2,1)*100;
XA_11:=SMA(MAX(CLOSE-XA_9,0),14,1)/SMA(ABS(CLOSE-XA_9),14,1)*100;
XA_12:=45;
XA_13:=80;
XA_14:=20;
XA_15:=5;
XA_16:=XA_10<XA_12 AND REF(XA_10,1)>XA_12;
XA_17:=XA_10<XA_14 AND REF(XA_10,1)>XA_14;
XA_18:=COUNT(XA_1,13)>=1;
XA_19:=SMA(LOW,4,3);
XA_20:=XA_16 OR XA_17 AND XA_18;
XA_21:=REF(XA_16,1) OR REF(XA_17,1) AND LOW<MA(CLOSE,5) AND XA_18 AND XA_7 AND CLOSE>REF(LOW,XA_3);
STICKLINE(XA_20 AND NOT(XA_1),OPEN,CLOSE,2.4,0),COLOR550055;
STICKLINE(XA_20 AND NOT(XA_1),OPEN,CLOSE,1.8,0),COLOR880088;
STICKLINE(XA_20 AND NOT(XA_1),OPEN,CLOSE,1.2,0),COLORAA00AA;
STICKLINE(XA_20 AND NOT(XA_1),OPEN,CLOSE,0.6,0),COLORCC00CC;
STICKLINE(XA_20,OPEN,CLOSE,0.1,0),COLOREE00EE;
STICKLINE(XA_21 AND NOT(XA_1),OPEN,CLOSE,1.2,0),COLOR000088;
STICKLINE(XA_21 AND NOT(XA_1),OPEN,CLOSE,0.6,0),COLOR0000AA;
STICKLINE(XA_21 AND NOT(XA_1),OPEN,CLOSE,0.3,0),COLOR0000CC;
STICKLINE(XA_21,OPEN,CLOSE,0.1,0),COLOR0000EE;
STICKLINE(XA_21,XA_19*0.995,XA_19,5,0),COLORGREEN;
{股票指标网}
DRAWICON(XA_21,LOW*0.98,1);
XA_22:=AMOUNT/VOL/100;
XA_23:=REF(CLOSE,1);
STICKLINE(CURRBARSCOUNT<21 AND XA_1=1,XA_22,XA_22,2.5,0),COLORYELLOW;
STICKLINE(CLOSE,XA_4,XA_4,2,0),COLORRED;
STICKLINE(CLOSE,REF(LOW,XA_3),REF(LOW,XA_3),2,0),COLORCCCC00;
短线狙击:DRAWNULL,COLORCCCCCC;
扣799969968:DRAWNULL,COLORCCCCCC;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
XA_1赋值:(收盘价/1日前的收盘价-1)*100>9.5
XA_2赋值:上次XA_1距今天数
输出
最后涨停距今数:XA_2,NODRAW,COLOR00CCCC
XA_3赋值:上次XA_1距今天数
XA_4赋值:(XA_3日前的收盘价+XA_3日前的开盘价)/2
STICKLINE(收盘价,XA_4,XA_3日前的最低价,4,0),COLOR002828
DRAWKLINE(最高价,开盘价,最低价,收盘价)
当满足条件XA_1时,在开盘价和收盘价之间画柱状线
当满足条件XA_1时,在开盘价和收盘价之间画柱状线
当满足条件XA_1时,在开盘价和收盘价之间画柱状线
当满足条件XA_1时,在开盘价和收盘价之间画柱状线
当满足条件XA_1时,在开盘价和收盘价之间画柱状线
当满足条件XA_1时,在开盘价和收盘价之间画柱状线
XA_5赋值:1日前的收盘价
XA_6赋值:IF((XA_5-收盘价)*100/XA_5>=10-0.01*100/XA_5,1,0)
当满足条件XA_6时,在开盘价和收盘价之间画柱状线
输出
MA13:收盘价的13日简单移动平均,画青色
IF(MA13>1日前的MA13,MA13,DRAWNULL),画红色
输出
MA21:收盘价的21日简单移动平均,COLOR00CCCC
输出
MA55:收盘价的55日简单移动平均,COLOR00CC00, 线宽为2
XA_7赋值:收盘价>MA21 AND MA13>1日前的MA13 AND XA_6!=1
XA_8赋值:(收盘价的3日简单移动平均+收盘价的6日简单移动平均+收盘价的12日简单移动平均+收盘价的24日简单移动平均)/4
XA_9赋值:1日前的收盘价
{股票指标网}
XA_10:=SMA(收盘价-XA_9和0较大值,2,1)/SMA(收盘价-XA_9的绝对值,2,1)*100
XA_11:=SMA(收盘价-XA_9和0较大值,14,1)/SMA(收盘价-XA_9的绝对值,14,1)*100
XA_12:=45
XA_13:=80
XA_14:=20
XA_15:=5
XA_16:=XA_10XA_12
XA_17:=XA_10XA_14
XA_18:=统计13日满足XA_1的天数>=1
最低价的4日[3日权重]移动平均
XA_20:=XA_16 OR XA_17 AND XA_18
XA_21:=1日前的XA_16 OR 1日前的XA_17 AND 最低价<收盘价的5日简单移动平均 AND XA_18 AND XA_7 AND 收盘价>XA_3日前的最低价
STICKLINE(XA_20 AND NOT(XA_1),开盘价,收盘价,2.4,0),COLOR550055
STICKLINE(XA_20 AND NOT(XA_1),开盘价,收盘价,1.8,0),COLOR880088
STICKLINE(XA_20 AND NOT(XA_1),开盘价,收盘价,1.2,0),COLORAA00AA
STICKLINE(XA_20 AND NOT(XA_1),开盘价,收盘价,0.6,0),COLORCC00CC
当满足条件XA_20时,在开盘价和收盘价之间画柱状线
STICKLINE(XA_21 AND NOT(XA_1),开盘价,收盘价,1.2,0),COLOR000088
STICKLINE(XA_21 AND NOT(XA_1),开盘价,收盘价,0.6,0),COLOR0000AA
STICKLINE(XA_21 AND NOT(XA_1),开盘价,收盘价,0.3,0),COLOR0000CC
当满足条件XA_21时,在开盘价和收盘价之间画柱状线
当满足条件XA_21时,在XA_19*0.995和XA_19之间画柱状线
当满足条件XA_21时,在最低价*0.98和1之间画图标
XA_22:=成交额/成交量/100
XA_23:=1日前的收盘价
当满足条件 到最后交易的周期<21 AND XA_1=1时,在XA_22和XA_22之间画柱状线
当满足条件收盘价时,在XA_4和XA_4之间画柱状线
STICKLINE(收盘价,XA_3日前的最低价,XA_3日前的最低价,2,0),COLORCCCC00
输出
短线狙击:DRAWNULL,COLORCCCCCC
输出
扣799969968:DRAWNULL,COLORCCCCCC