飘逸波段副图通达信指标 副图 源码附图
VAR2:=(2*CLOSE+HIGH+LOW)/4;
VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
趋势: EMA((VAR2-VAR4)/(VAR5-VAR4)*100,1)*VAR3;
量能: EMA(0.667*REF(趋势,1)+0.333*趋势,3)*VAR3;
DRAWTEXT(CROSS(趋势,量能) AND 趋势< 50 AND 29< 趋势,20,'短快进'),COLOR00FF00;
DRAWTEXT(CROSS(量能,趋势) AND 趋势>40 AND 71>趋势,50,'短快出'),COLOR00FFFF;
DRAWTEXT(CROSS(趋势,量能) AND 趋势< 30,0,'逢低吸'),COLOR3399CC;
DRAWTEXT(CROSS(量能,趋势) AND 趋势>70,75,'逢高减'),COLORFFFF33;
DRAWICON(CROSS(趋势,量能) AND 趋势< 30,20,1);
DRAWICON(CROSS(量能,趋势) AND 趋势 >70,80,2);
VAR9:=CLOSE-REF(CLOSE,3);
VARA:=EMA(EMA(VAR9,3),3)/EMA(EMA(ABS(VAR9),3),4)*100;
VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20)*100;
卖出: IF(VARA>0 AND CROSS(VARC,VARA),90,100);
DRAWTEXT(VARA>0 AND CROSS(VARC,VARA),90,'中线逃吧!'),COLOR0033FF;
DRAWBAND( 趋势,RGB(250,0,250),量能,RGB(0,250,0));
DRAWICON(卖出< 0,100,2);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR2赋值:(2*收盘价+最高价+最低价)/4
如果YEAR>=2099 AND MONTH>2返回0否则返回1
VAR4赋值:5日内最低价最低值
VAR5赋值:4日内最高价最高值
输出趋势: EMA((VAR2-VAR4)/(VAR5-VAR4)*100,1)*VAR3
输出量能: E0.667*1日前的趋势+0.333*趋势的3日简单移动平均*VAR3
DRAWTEXT(趋势上穿量能 AND 趋势< 50 AND 29< 趋势,20,'短快进'),COLOR00FF00
DRAWTEXT(量能上穿趋势 AND 趋势>40 AND 71>趋势,50,'短快出'),COLOR00FFFF
DRAWTEXT(趋势上穿量能 AND 趋势< 30,0,'逢低吸'),COLOR3399CC
DRAWTEXT(量能上穿趋势 AND 趋势>70,75,'逢高减'),COLORFFFF33
DRAWICON(趋势上穿量能 AND 趋势< 30,20,1)
DRAWICON(量能上穿趋势 AND 趋势 >70,80,2)
VAR9赋值:收盘价-3日前的收盘价
VARA赋值:VAR9的3日指数移动平均,3)/EMA(EMA(VAR9的绝对值,3),4)*100
VARC赋值:VAR9的20日指数移动平均,20)/EMA(EMA(VAR9的绝对值,20),20)*100
输出卖出: IF(VARA>0 AND VARC上穿VARA,90,100)
DRAWTEXT(VARA>0 AND VARC上穿VARA,90,'中线逃吧!'),COLOR0033FF
DRAWBAND( 趋势,RGB(250,0,250),量能,RGB(0,250,0))
当满足条件卖出< 0时,在100和2之间画图标