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