主力进场轨迹通达信公式 副图 源码附图
MTM:=C-REF(C,1);
ZLGJ:100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6),COLORWHITE;
{ZLGJ:100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1),COLORWHITE;}
MAZL:MA(ZLGJ,4),COLORYELLOW;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
{VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/N2,1);}
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,1 ),COLOR000055;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.6,1),COLOR000077;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.1,1 ),COLOR000099;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.5,1 ),COLOR0000BB;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.9,1),COLOR0000DD;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.3,1 ),COLOR0000FF;
洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLOR005500;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.6,0),COLOR007700;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.1,0),COLOR009900;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,1.5,0),COLOR00BB00;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.9,0),COLOR00DD00;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.3,0),COLOR00FF00;
VAR2L:=REF(LOW,1);{通达信公式大全 股票指标网}
VAR3L:=SMA(ABS(LOW-VAR2L),3,1)/SMA(MAX(LOW-VAR2L,0),3,1)*110;
VAR4L:=EMA(IF(CLOSE*1.3,VAR3L*10,VAR3L/10),3);
VAR5L:=LLV(LOW,13);
VAR6L:=HHV(VAR4L,13);
VAR7L:=IF(MA(CLOSE,34),1,0);
VAR8L:=EMA(IF(LOW<=VAR5L,(VAR4L+VAR6L*2)/2,0),3)/618*VAR7L;
VAR9LL:=IF(VAR8L>110,110,VAR8L);
STICKLINE(VAR9LL<REF(VAR9LL,1),0,VAR9LL,2,0),COLORF00FF0,LINETHICK5;
VAR10:=100*(C-COST(10))/COST(10);
VAR6:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100;
VAR7:=SMA(VAR6,4,1);
VAR8:=SMA(VAR7,2,1);
VAR9:=VOL/CAPITAL*34;
VAR12:=REF(VAR9,1);
主力建仓: IF(VAR8<8.5 AND VAR7<11,-10,0),COLORF00FF0;
未来函数检测结果如下:
该公式包含未来函数:COST
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
MTM赋值:C-1日前的C
输出ZLGJ:100*MTM的6日指数移动平均,6)/EMA(EMA(MTM的绝对值,6),6),画白色
{输出ZLGJ:100*MTM的N1日指数移动平均,N1)/EMA(EMA(MTM的绝对值,N1),N1),画白色
输出}
MAZL:ZLGJ的4日简单移动平均,画黄色
VAR1赋值:REF((最低价+开盘价+收盘价+最高价)/4,1)
{VAR1赋值:REF((最低价+开盘价+收盘价+最高价)/N2,1)
}
VAR2赋值:SMA(最低价-VAR1的绝对值,13,1)/SMA(最低价-VAR1和0较大值,10,1)
VAR3赋值:VAR2的10日指数移动平均
VAR4赋值:33日内最低价最低值
如果最低价<=VAR4返回VAR3否则返回0
输出主力进场:IF(VAR5>1日前的VAR5,VAR5,0),画红色
STICKLINE(VAR5>1日前的VAR5,0,VAR5,3,1 ),COLOR000055
STICKLINE(VAR5>1日前的VAR5,0,VAR5,2.6,1),COLOR000077
STICKLINE(VAR5>1日前的VAR5,0,VAR5,2.1,1 ),COLOR000099
STICKLINE(VAR5>1日前的VAR5,0,VAR5,1.5,1 ),COLOR0000BB
STICKLINE(VAR5>1日前的VAR5,0,VAR5,0.9,1),COLOR0000DD
STICKLINE(VAR5>1日前的VAR5,0,VAR5,0.3,1 ),COLOR0000FF
输出洗盘:IF(VAR5<1日前的VAR5,VAR5,0),画绿色
STICKLINE(VAR5<1日前的VAR5,0,VAR5,3,0),COLOR005500
STICKLINE(VAR5<1日前的VAR5,0,VAR5,2.6,0),COLOR007700
STICKLINE(VAR5<1日前的VAR5,0,VAR5,2.1,0),COLOR009900
STICKLINE(VAR5<1日前的VAR5,0,VAR5,1.5,0),COLOR00BB00
STICKLINE(VAR5<1日前的VAR5,0,VAR5,0.9,0),COLOR00DD00
STICKLINE(VAR5<1日前的VAR5,0,VAR5,0.3,0),COLOR00FF00
VAR2L赋值:1日前的最低价
{通达信公式大全 股票指标网}
VAR3L:=SMA(最低价-VAR2L的绝对值,3,1)/SMA(最低价-VAR2L和0较大值,3,1)*110
如果收盘价*1.3返回VAR3L*10否则返回VAR3L/10
VAR5L:=13日内最低价最低值
VAR6L赋值:13日内VAR4L最高值
VAR7L赋值:IF(收盘价的34日简单移动平均,1,0)
VAR8L赋值:EMA(IF(最低价<=VAR5L,(VAR4L+VAR6L*2)/2,0),3)/618*VAR7L
如果VAR8L>110返回110否则返回VAR8L
STICKLINE(VAR9LL<1日前的VAR9LL,0,VAR9LL,2,0),COLORF00FF0,LINETHICK5
VAR10:=100*(C-获利盘为10%的成本分布)/获利盘为10%的成本分布
VAR6赋值:(收盘价-28日内最低价最低值)/(28日内最高价最高值-28日内最低价最低值)*100
VAR6的4日[1日权重]移动平均
VAR7的2日[1日权重]移动平均
VAR9赋值:成交量/当前流通股本*34
VAR12:=1日前的VAR9
如果VAR8<8.5 AND VAR7<11返回-10否则返回0