压力支撑回马枪通达信公式 主图 源码附图
X_1:=IF(1,(CLOSE/REF(CLOSE,1)-1)*100>9.5,0);
最后涨停距今数:BARSLAST(X_1),NODRAW,COLOR00CCCC;
X_2:=(REF(CLOSE,BARSLAST(X_1))+REF(OPEN,BARSLAST(X_1)))/2;
STICKLINE(CLOSE,X_2,REF(LOW,BARSLAST(X_1)),4,0),COLOR002828;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(X_1,OPEN,CLOSE,2.6,0),COLOR0000E5;
STICKLINE(X_1,OPEN,CLOSE,2.4,0),COLOR335555;
STICKLINE(X_1,OPEN,CLOSE,1.8,0),COLOR338888;
STICKLINE(X_1,OPEN,CLOSE,1.2,0),COLOR33AAAA;
STICKLINE(X_1,OPEN,CLOSE,0.6,0),COLOR33CCCC;
STICKLINE(X_1,OPEN,CLOSE,0.1,0),COLOR33EEEE;
X_3:=REF(CLOSE,1);
X_4:=IF((X_3-CLOSE)*100/X_3>=10-0.01*100/X_3,1,0);
STICKLINE(X_4,OPEN,CLOSE,2.6,0),COLORE50000;
MA13:MA(CLOSE,13),COLORCYAN;
IF(MA13>REF(MA13,1),MA13,DRAWNULL),COLORRED;
MA21:MA(CLOSE,21),COLOR00CCCC,LINETHICK2;
X_5:=CLOSE>MA21 AND MA13>REF(MA13,1) AND X_4!=1;
X_6:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
X_7:=REF(CLOSE,1);
X_8:=SMA(MAX(CLOSE-X_7,0),2,1)/SMA(ABS(CLOSE-X_7),2,1)*100;
X_9:=SMA(MAX(CLOSE-X_7,0),14,1)/SMA(ABS(CLOSE-X_7),14,1)*100;
X_10:=45;
X_11:=80;
X_12:=20;
X_13:=5;
X_14:=X_8<X_10 AND REF(X_8,1)>X_10;
X_15:=X_8<X_12 AND REF(X_8,1)>X_12;
X_16:=COUNT(X_1,13)>=1;
X_17:=SMA(LOW,4,3);
X_18:=X_14 OR X_15 AND X_16;
X_19:=REF(X_14,1) OR REF(X_15,1) AND LOW<MA(CLOSE,5) AND X_16 AND X_5 AND CLOSE>REF(LOW,BARSLAST(X_1));
STICKLINE(X_18 AND NOT(X_1),OPEN,CLOSE,2.4,0),COLOR550055;
STICKLINE(X_18 AND NOT(X_1),OPEN,CLOSE,1.8,0),COLOR880088;
STICKLINE(X_18 AND NOT(X_1),OPEN,CLOSE,1.2,0),COLORAA00AA;
STICKLINE(X_18 AND NOT(X_1),OPEN,CLOSE,0.6,0),COLORCC00CC;
STICKLINE(X_18,OPEN,CLOSE,0.1,0),COLOREE00EE;
STICKLINE(X_19 AND NOT(X_1),OPEN,CLOSE,1.2,0),COLOR000088;
STICKLINE(X_19 AND NOT(X_1),OPEN,CLOSE,0.6,0),COLOR0000AA;
STICKLINE(X_19 AND NOT(X_1),OPEN,CLOSE,0.3,0),COLOR0000CC;
STICKLINE(X_19,OPEN,CLOSE,0.1,0),COLOR0000EE;
STICKLINE(X_19,X_17*0.995,X_17,5,0),COLORGREEN;
DRAWICON(X_19,LOW*0.98,1);
X_20:=AMOUNT/VOL/100;
X_21:=REF(CLOSE,1);
{}
STICKLINE(CURRBARSCOUNT<21 AND X_1=1,X_20,X_20,2.5,0),COLORYELLOW;
STICKLINE(CLOSE,X_2,X_2,2,0),COLORRED;
STICKLINE(CLOSE,REF(LOW,BARSLAST(X_1)),REF(LOW,BARSLAST(X_1)),2,0),COLORCCCC00;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X_1赋值:IF(1,(收盘价/1日前的收盘价-1)*100>9.5,0)
输出最后涨停距今数:上次X_1距今天数,NODRAW,COLOR00CCCC
X_2赋值:(REF(收盘价,上次X_1距今天数)+REF(开盘价,上次X_1距今天数))/2
STICKLINE(收盘价,X_2,REF(最低价,上次X_1距今天数),4,0),COLOR002828
DRAWKLINE(最高价,开盘价,最低价,收盘价)
当满足条件X_1时,在开盘价和收盘价之间画柱状线
当满足条件X_1时,在开盘价和收盘价之间画柱状线
当满足条件X_1时,在开盘价和收盘价之间画柱状线
当满足条件X_1时,在开盘价和收盘价之间画柱状线
当满足条件X_1时,在开盘价和收盘价之间画柱状线
当满足条件X_1时,在开盘价和收盘价之间画柱状线
X_3赋值:1日前的收盘价
X_4赋值:IF((X_3-收盘价)*100/X_3>=10-0.01*100/X_3,1,0)
当满足条件X_4时,在开盘价和收盘价之间画柱状线
输出MA13:收盘价的13日简单移动平均,画青色
IF(MA13>1日前的MA13,MA13,DRAWNULL),画红色
输出MA21:收盘价的21日简单移动平均,COLOR00CCCC, 线宽为2
X_5赋值:收盘价>MA21 AND MA13>1日前的MA13 AND X_4!=1
X_6赋值:(收盘价的3日简单移动平均+收盘价的6日简单移动平均+收盘价的12日简单移动平均+收盘价的24日简单移动平均)/4
X_7赋值:1日前的收盘价
X_8赋值:SMA(收盘价-X_7和0较大值,2,1)/SMA(收盘价-X_7的绝对值,2,1)*100
X_9赋值:SMA(收盘价-X_7和0较大值,14,1)/SMA(收盘价-X_7的绝对值,14,1)*100
X_10:=45
X_11:=80
X_12:=20
X_13:=5
X_14:=X_8X_10
X_15:=X_8X_12
X_16:=统计13日满足X_1的天数>=1
最低价的4日[3日权重]移动平均
X_18:=X_14 OR X_15 AND X_16
X_19:=1日前的X_14 OR 1日前的X_15 AND 最低价<收盘价的5日简单移动平均 AND X_16 AND X_5 AND 收盘价>REF(最低价,上次X_1距今天数)
STICKLINE(X_18 AND NOT(X_1),开盘价,收盘价,2.4,0),COLOR550055
STICKLINE(X_18 AND NOT(X_1),开盘价,收盘价,1.8,0),COLOR880088
STICKLINE(X_18 AND NOT(X_1),开盘价,收盘价,1.2,0),COLORAA00AA
STICKLINE(X_18 AND NOT(X_1),开盘价,收盘价,0.6,0),COLORCC00CC
当满足条件X_18时,在开盘价和收盘价之间画柱状线
STICKLINE(X_19 AND NOT(X_1),开盘价,收盘价,1.2,0),COLOR000088
STICKLINE(X_19 AND NOT(X_1),开盘价,收盘价,0.6,0),COLOR0000AA
STICKLINE(X_19 AND NOT(X_1),开盘价,收盘价,0.3,0),COLOR0000CC
当满足条件X_19时,在开盘价和收盘价之间画柱状线
当满足条件X_19时,在X_17*0.995和X_17之间画柱状线
当满足条件X_19时,在最低价*0.98和1之间画图标
X_20:=成交额/成交量/100
X_21:=1日前的收盘价
当满足条件 到最后交易的周期<21 AND X_1=1时,在X_20和X_20之间画柱状线
当满足条件收盘价时,在X_2和X_2之间画柱状线
STICKLINE(收盘价,REF(最低价,上次X_1距今天数),REF(最低价,上次X_1距今天数),2,0),COLORCCCC00