通达信指尖波段指标公式

VAR1:=(EMA(CLOSE,3)-EMA(CLOSE,7));
VAR2:=EMA(VAR1,3);
VAR3:=2*(VAR1-VAR2);
VAR4:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))-0.5;
VAR5:=EMA(VAR4,3);
VAR6:=EMA(VAR5,3);
VAR7:=3*VAR5-2*VAR6;
VAR8:=REF(COUNT(VAR1>0 AND VAR3<0 AND VAR3<REF(VAR3,1),4)=4,1) AND VAR3>REF(VAR3,1);
VAR16:=REF(COUNT(VAR7<REF(VAR7,1),5)>=3,1) AND REF(VAR7,1)<-0.4 AND VAR7>REF(VAR7,1);
VAR19:=REF(crOSS(0,VAR3),3) AND COUNT(VAR1>0 AND VAR3<REF(VAR3,1),4)=4;
DRAWBAND(VAR1,RGB(200,50,55),VAR2,RGB(50,100,10));
STICKLINE(VAR8,VAR3*1.2,0,2.8,0),COLORRED;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3>0,0,VAR3,1.8,0),COLOR000055;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3>0,0,VAR3,1.1,0),COLOR000099;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3>0,0,VAR3,0.6,0),COLOR0000BB;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3>0,0,VAR3,1.8,0),COLOR888888;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3>0,0,VAR3,1.1,0),COLORBBBBBB;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3>0,0,VAR3,0.6,0),COLORDDDDDD;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3<0,0,VAR3,1.8,0),COLOR3377AA;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3<0,0,VAR3,1.1,0),COLOR3388BB;
STICKLINE(VAR3>REF(VAR3,1) AND VAR3<0,0,VAR3,0.6,0),COLOR4499CC;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3<0,0,VAR3,1.8,0),COLORFF3300;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3<0,0,VAR3,1.1,0),COLORFF5500;
STICKLINE(VAR3<=REF(VAR3,1) AND VAR3<0,0,VAR3,0.6,0),COLORFF7700;
STICKLINE(VAR7<-0.5,0,0.15,1.8,0),COLORFF00FF;
DRAWICON(FILTER(VAR16,3) AND VAR3>REF(VAR3,1) AND VAR3>0,VAR3*2.08,11);
DRAWICON(VAR19,0.25,9);
DRAWTEXT_FIX(C=C,0,0.02,0,'蓝柱离场,红柱全仓,棕柱低吸,白柱风险显现 '),COLORGREEN;




来函数检测结果如下:
该公式没有未来函数


解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

VAR1赋值:(收盘价的3日指数移动平均-收盘价的7日指数移动平均)
VAR2赋值:VAR1的3日指数移动平均
VAR3赋值:2*(VAR1-VAR2)
VAR4赋值:(收盘价-5日内最低价最低值)/(5日内最高价最高值-5日内最低价最低值)-0.5
VAR5赋值:VAR4的3日指数移动平均
VAR6赋值:VAR5的3日指数移动平均
VAR7赋值:3*VAR5-2*VAR6
VAR8赋值:REF(COUNT(VAR1>0 AND VAR3<0 AND VAR3REF(VAR3,1)
VAR16:=REF(COUNT(VAR7=3,1) AND REF(VAR7,1)<-0.4 AND VAR7>REF(VAR7,1)
VAR19:=3日前的0上穿VAR3 AND COUNT(VAR1>0 AND VAR3<1日前的VAR3,4)=4
DRAWBAND(VAR1,RGB(200,50,55),VAR2,RGB(50,100,10))
当满足条件VAR8时,在VAR3*1.2和0之间画柱状线
STICKLINE(VAR3>1日前的VAR3 AND VAR3>0,0,VAR3,1.8,0),COLOR000055
STICKLINE(VAR3>1日前的VAR3 AND VAR3>0,0,VAR3,1.1,0),COLOR000099
STICKLINE(VAR3>1日前的VAR3 AND VAR3>0,0,VAR3,0.6,0),COLOR0000BB
STICKLINE(VAR3<=1日前的VAR3 AND VAR3>0,0,VAR3,1.8,0),COLOR888888
STICKLINE(VAR3<=1日前的VAR3 AND VAR3>0,0,VAR3,1.1,0),COLORBBBBBB
STICKLINE(VAR3<=1日前的VAR3 AND VAR3>0,0,VAR3,0.6,0),COLORDDDDDD
STICKLINE(VAR3>1日前的VAR3 AND VAR3<0,0,VAR3,1.8,0),COLOR3377AA
STICKLINE(VAR3>1日前的VAR3 AND VAR3<0,0,VAR3,1.1,0),COLOR3388BB
STICKLINE(VAR3>1日前的VAR3 AND VAR3<0,0,VAR3,0.6,0),COLOR4499CC
STICKLINE(VAR3<=1日前的VAR3 AND VAR3<0,0,VAR3,1.8,0),COLORFF3300
STICKLINE(VAR3<=1日前的VAR3 AND VAR3<0,0,VAR3,1.1,0),COLORFF5500
STICKLINE(VAR3<=1日前的VAR3 AND VAR3<0,0,VAR3,0.6,0),COLORFF7700
当满足条件VAR7<-0.5时,在0和0.15之间画柱状线
DRAWICON(VAR16的3过滤 AND VAR3>1日前的VAR3 AND VAR3>0,VAR3*2.08,11)
当满足条件VAR19时,在0.25和9之间画图标
当满足条件C=C时,在横轴0纵轴0.02位置书写文字


指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图