通达信仓位控制管理指标公式

VAR2:=MA(CLOSE,5);
VAR3:=MA(CLOSE,15);
VAR4:=MA(CLOSE,20);
VAR5:=MA(CLOSE,45);
满仓:100,POINTDOT,COLORRED;
八成:80,POINTDOT,COLORMAGENTA;
半仓:50,POINTDOT,COLORYELLOW;
三成:30,POINTDOT,COLORGREEN;
空仓:0,POINTDOT,COLORWHITE;
VAR6:=CLOSE<VAR2 AND CLOSE<VAR3 AND CLOSE<VAR4 AND CLOSE<VAR5;
VAR7:=CLOSE>VAR2 AND CLOSE<VAR3 AND CLOSE<VAR4 AND CLOSE<VAR5;
VAR8:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSE<VAR4 AND CLOSE<VAR5;
VAR9:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSE<VAR5;
VAR10:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR11:=CLOSE<VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR12:=CLOSE<VAR2 AND CLOSE<VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR13:=CLOSE<VAR2 AND CLOSE<VAR3 AND CLOSE<VAR4 AND CLOSE>VAR5;
VAR14:=CLOSE<VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSE<VAR5;
VAR15:=CLOSE<VAR2 AND CLOSE>VAR3 AND CLOSE<VAR4 AND CLOSE<VAR5;
VAR16:=CLOSE>VAR2 AND CLOSE<VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR17:=CLOSE>VAR2 AND CLOSE=VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR18:=CLOSE>VAR2 AND CLOSE<VAR3 AND CLOSE<VAR4 AND CLOSE>VAR5;
VAR19:=CLOSE<VAR2 AND CLOSE<VAR3 AND CLOSE>VAR4 AND CLOSE<VAR5;
VAR20:=CLOSE>VAR2 AND CLOSE<VAR3 AND CLOSE>VAR4 AND CLOSE<VAR5;
VAR21:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSE<VAR4 AND CLOSE>VAR5;
STICKLINE(VAR6,0,5,3,0),COLORWHITE;
STICKLINE(VAR7 OR VAR18 OR VAR19 OR VAR21,0,30,3,0),COLORGREEN;
DRAWICON(((VAR7 OR VAR18 OR VAR19 OR VAR21) AND REF(VAR6,1)),30,1);
STICKLINE(VAR8 OR VAR20,0,50,3,0),COLORYELLOW;
DRAWICON(((VAR8 OR VAR20) AND REF((VAR7 OR VAR18 OR VAR19 OR VAR21),1)),50,7);
STICKLINE(VAR9,0,80,3,0),COLORLIMAGENTA;
DRAWICON((VAR9 AND REF((VAR8 OR VAR20),1)),80,23);
STICKLINE(VAR10,0,100,3,0),COLORRED;
STICKLINE(VAR11,0,80,3,0),COLORMAGENTA;
DRAWICON((VAR10 AND REF(VAR11,1)),90,9);
STICKLINE(VAR12,0,50,3,0),COLORYELLOW;
STICKLINE(VAR13,0,20,3,0),COLORGREEN;
STICKLINE(VAR14 OR VAR15 OR VAR16 OR VAR17,0,50,3,0),COLORGRAY;




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

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

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

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