在线检测未来函数

通达信股价四季彩图指标公式

来源:Internet,编辑:股旁网,2017-11-16

{使用说明:如果你的股处在春天格,那么最好持股待涨;你的股处在夏天格低位,持股待涨,准备暴发,如果在高位,注意风险;你的股处在秋天格,那么就要减仓或清仓,随时可能暴跌;你的股处在冬天格,高位要减仓,低位要加仓,因为春天已经不远了。};

主线:=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,'现价');

通达信股价四季彩图指标公式

相关文章