涨停初现信号多通达信公式 副图 源码附图
V6:=CLOSE/REF(CLOSE,3)>=1.1;
V7:=BACKSET(V6,4);
涨停初现:IF((V7 AND COUNT(V7,3)=1),40,0),COLORCYAN,STICK,LINETHICK3;
LS:=C/REF(C,1)>1.040 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1
*FORCAST(V,5)),COLORFF6600,LINETHICK1;
买涨停:FILTER(LS,28)*40,COLORFF6600,LINETHICK3 ,STICK;
VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR27:=EMA(VAR26 ,100);
VAR28:=2*(VAR26-VAR27);
VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1);
黑马线: IF( VAR28>0.1,VAR29,0)*3, COLOR400080,LINETHICK2;
低买:IF(TROUGHBARS(3,6,1)=0 AND HIGH>LOW+0.04,50,0),COLOR00FFFF,LINETHICK1;
高卖:IF(PEAKBARS(3,6,1)<1.0=1,70,0),COLORGREEN,LINESTICK,LINETHICK1;
未来函数检测结果如下:
该公式包含未来函数:PEAK
该公式包含未来函数:PEAKBARS
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
该公式包含未来函数:BACKSET
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
V6赋值:收盘价/3日前的收盘价>=1.1
V7赋值:BACKSET(V6,4)
输出涨停初现:IF((V7 AND 统计3日满足V7的天数=1),40,0),画青色,STICK, 线宽为3
LS赋值:C/1日前的C>1.040 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1
*FORCAST(V,5)),COLORFF6600,LINETHICK1
输出买涨停:LS的28过滤*40,COLORFF6600, 线宽为3 ,STICK
VAR26赋值:收盘价的2日指数移动平均-收盘价的150日指数移动平均
VAR27赋值:VAR26 的100日指数移动平均
VAR28赋值:2*(VAR26-VAR27)
VAR29赋值:POW(VAR28,3)*0.1+POW(VAR28,1)
如果 VAR28>0.1返回VAR29否则返回0
输出低买:IF(TROUGHBARS(3,6,1)=0 AND 最高价>最低价+0.04,50,0),COLOR00FFFF,LINETHICK1
输出高卖:IF(PEAKBARS(3,6,1)<1.0=1,70,0),画绿色,LINESTICK,LINETHICK1