通达信五行生旺指标公式

A1:MA(C,3);
A2:MA(C,8);
DRAWBAND(A1,180,A2,RGB(39,139,39));
A3:MA(C,24);
A4:MA(C,72);
A5:=MA(C,216);
胎:=A1<A2 AND A1>REF(A1,1);
养:=crOSS(A1,A2);
长生:=A1>A2 AND A1>REF(A1,1) AND A1/A2<1.01;
沐浴:=A1>A2 AND A1>REF(A1,1) AND A1/A2<1.02 AND A1/A2>1.01;
冠带:=A1>A2 AND A1>REF(A1,1) AND A1/A2<1.03 AND A1/A2>1.02;
临官:=A1>A2 AND A1>REF(A1,1) AND A1/A2<1.05 AND A1/A2>1.03;
帝旺:=A1>A2 AND A1>REF(A1,1) AND A1/A2<1.30 AND A1/A2>1.05;
衰:=A1>A2 AND A1<=REF(A1,1) AND A1/A2<1.09;
病:=A1<A2 AND A1<=REF(A1,1) AND A1/A2<1.05 AND A1/A2>1;
死:=A1<A2 AND A1<=REF(A1,1) AND A1/A2<1 AND A1/A2>0.98;
墓:=A1<A2 AND A1<=REF(A1,1) AND A1/A2<0.98 AND A1/A2>0.96;
绝:=A1<A2 AND A1<=REF(A1,1) AND A1/A2<0.96 AND A1/A2>0.85;
DRAWTEXT(胎,A1,'胎'),COLORWHITE;
DRAWTEXT(养,A1*0.99,'养'),COLORWHITE;
DRAWTEXT(长生,A1,'长生'),COLORYELLOW;
DRAWTEXT(沐浴,A1,'沐浴'),COLORYELLOW;
DRAWTEXT(冠带,A1,'冠带'),COLORYELLOW;
DRAWTEXT(临官,A1,'临官'),COLORYELLOW;
DRAWTEXT(帝旺,A1,'帝旺'),COLORYELLOW;
DRAWTEXT(衰,A1,'衰'),COLORGREEN;
DRAWTEXT(病,A1,'病'),COLORGREEN;
DRAWTEXT(死,A1,'死'),COLORGREEN;
DRAWTEXT(墓,A1,'墓'),COLORGREEN;
DRAWTEXT(绝,A1,'绝'),COLORGREEN;




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

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

输出A1:C的3日简单移动平均
输出A2:C的8日简单移动平均
DRAWBAND(A1,180,A2,RGB(39,139,39))
输出A3:C的24日简单移动平均
输出A4:C的72日简单移动平均
A5赋值:C的216日简单移动平均
胎赋值:A11日前的A1
养赋值:A1上穿A2
长生赋值:A1>A2 AND A1>1日前的A1 AND A1/A2<1.01
沐浴赋值:A1>A2 AND A1>1日前的A1 AND A1/A2<1.02 AND A1/A2>1.01
冠带赋值:A1>A2 AND A1>1日前的A1 AND A1/A2<1.03 AND A1/A2>1.02
临官赋值:A1>A2 AND A1>1日前的A1 AND A1/A2<1.05 AND A1/A2>1.03
帝旺赋值:A1>A2 AND A1>1日前的A1 AND A1/A2<1.30 AND A1/A2>1.05
衰赋值:A1>A2 AND A1<=1日前的A1 AND A1/A2<1.09
病赋值:A11
死赋值:A10.98
墓赋值:A10.96
绝赋值:A10.85
当满足条件胎时,在A1和'胎'位置书写文字
当满足条件养时,在A1*0.99和'养'位置书写文字
当满足条件长生时,在A1和'长生'位置书写文字
当满足条件沐浴时,在A1和'沐浴'位置书写文字
当满足条件冠带时,在A1和'冠带'位置书写文字
当满足条件临官时,在A1和'临官'位置书写文字
当满足条件帝旺时,在A1和'帝旺'位置书写文字
当满足条件衰时,在A1和'衰'位置书写文字
当满足条件病时,在A1和'病'位置书写文字
当满足条件死时,在A1和'死'位置书写文字
当满足条件墓时,在A1和'墓'位置书写文字
当满足条件绝时,在A1和'绝'位置书写文字


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

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