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

[复制链接]
查看265 | 回复0 | 2021-8-20 02:25:03 | 显示全部楼层 |阅读模式

以下是通达信股价四季彩图源码副图无未来(无源码的请下载附件导入)

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

主线:=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,'现价');
 {用法参考:
 如果你的股处在春天格,那么最好持股待涨;
你的股处在夏天格低位,持股待涨,准备暴发,如果在高位,注意风险;
 你的股处在秋天格,那么就要减仓或清仓,随时可能暴跌;
 你的股处在冬天格,高位要减仓,低位要加仓,因为春天已经不远了。};

634122743.jpg

634122743.jpg

634233169.jpg

634233169.jpg

634322853.jpg

634322853.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则