通达信股价四季彩图源码副图无未来

哈哈,各位同学好。网上得到一个指标公式,把每天股价变化与四个季节更换结合起来,挺有意思。本人稍做更改,源码直接发给大家,后面附有用法参考。附图四张,显示四个季节,别具一格,很好玩。

主线:=EMA(EMA(C,1),5);
本线:=EMA(HHV(主线,5),1);
 AAA:=EMA(HHV(本线,21),1);
 BBB:=EMA(HHV(AAA,21),2);
 CCC:=EMA(HHV(BBB,21),3);
 DDD:=EMA(HHV(CCC,21),4);
 EEE:=EMA(HHV(DDD,21),5);
 MMM:=EMA(HHV(EEE,21),6);
 XGG:=主线/MMM*100-100;
春:=XGG<0 AND XGG>=REF(XGG,1);
夏:=XGG>0 AND XGG>REF(XGG,1);
秋:=XGG>0 AND XGG<REF(XGG,1);
冬:=XGG<0 AND XGG<REF(XGG,1);
福:=(XGG-REF(XGG,1))/100;
 DRAWRECTREL(200,500,500,999,RGB(255,0,255));
 DRAWRECTREL(200,1,500,500,90);
 DRAWRECTREL(500,1,800,500,RGB(218,165,32));
 DRAWRECTREL(500,500,800,999,RGB(50,205,50));
 DRAWTEXT_FIX(1,0.30,0.75,1,'春........种')COLORWHITE;
 DRAWTEXT_FIX(1,0.30,0.25,1,'夏........熟')COLORWHITE;
 DRAWTEXT_FIX(1,0.75,0.25,1,'秋........收')COLORRED;
 DRAWTEXT_FIX(1,0.75,0.75,1,'冬........藏')COLORRED;
 DRAWTEXT_FIX(春=1 AND CURRBARSCOUNT=1,0.48,0.61*(1-5*福),1,'今天')COLORWHITE;
 DRAWTEXT_FIX(春=1 AND CURRBARSCOUNT=2,0.44,0.61*(1-5*福),1,'前1');
 DRAWTEXT_FIX(春=1 AND CURRBARSCOUNT=3,0.40,0.61*(1-5*福),1,'前2');
 DRAWTEXT_FIX(春=1 AND CURRBARSCOUNT=4,0.36,0.61*(1-5*福),1,'前3');
 DRAWTEXT_FIX(春=1 AND CURRBARSCOUNT=5,0.32,0.61*(1-5*福),1,'前4');
 DRAWTEXT_FIX(夏=1 AND CURRBARSCOUNT=1,0.48,0.31*(1-5*福),1,'今天')COLORWHITE;
 DRAWTEXT_FIX(夏=1 AND CURRBARSCOUNT=2,0.44,0.31*(1-5*福),1,'前1');
 DRAWTEXT_FIX(夏=1 AND CURRBARSCOUNT=3,0.40,0.31*(1-5*福),1,'前2');
 DRAWTEXT_FIX(夏=1 AND CURRBARSCOUNT=4,0.36,0.31*(1-5*福),1,'前3');
 DRAWTEXT_FIX(夏=1 AND CURRBARSCOUNT=5,0.32,0.31*(1-5*福),1,'前4');
 DRAWTEXT_FIX(秋=1 AND CURRBARSCOUNT=1,0.53,0.31*(1-5*福),1,'今天')COLORRED;
 DRAWTEXT_FIX(秋=1 AND CURRBARSCOUNT=2,0.57,0.31*(1-5*福),1,'前1');
 DRAWTEXT_FIX(秋=1 AND CURRBARSCOUNT=3,0.61,0.31*(1-5*福),1,'前2');
 DRAWTEXT_FIX(秋=1 AND CURRBARSCOUNT=4,0.69,0.31*(1-5*福),1,'前3');
 DRAWTEXT_FIX(秋=1 AND CURRBARSCOUNT=5,0.73,0.31*(1-5*福),1,'前4');
 DRAWTEXT_FIX(冬=1 AND CURRBARSCOUNT=1,0.53,0.61*(1-5*福),1,'今天')COLORRED;
 DRAWTEXT_FIX(冬=1 AND CURRBARSCOUNT=2,0.57,0.61*(1-5*福),1,'前1');
 DRAWTEXT_FIX(冬=1 AND CURRBARSCOUNT=3,0.61,0.61*(1-5*福),1,'前2');
 DRAWTEXT_FIX(冬=1 AND CURRBARSCOUNT=4,0.69,0.61*(1-5*福),1,'前3');
 DRAWTEXT_FIX(冬=1 AND CURRBARSCOUNT=5,0.73,0.61*(1-5*福),1,'前4');
 DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.5,0.1,1,C);
 DRAWTEXT_FIX(CURRBARSCOUNT=1,0.45,0.1,1,'现价');
 {用法参考:
 如果你的股处在春天格,那么最好持股待涨;
你的股处在夏天格低位,持股待涨,准备暴发,如果在高位,注意风险;
 你的股处在秋天格,那么就要减仓或清仓,随时可能暴跌;
 你的股处在冬天格,高位要减仓,低位要加仓,因为春天已经不远了。};




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

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

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

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