a1:=forcast(ema(c,6),7);
a2:=forcast(ema(c,9),7);
a3:=forcast(ema(c,12),7);
a4:=forcast(ema(c,15),7);
a5:=forcast(ema(c,18),7);
b:=a1+a2+a3+a4-4*a5;
amway:=ema(b,2);
stickline(amway<ref(amway,1),amway,ref(amway,1),2,0),colorliblue;
stickline(amway<ref(amway,1),amway,ref(amway,1),1.5,0),color770000;
stickline(amway<ref(amway,1),amway,ref(amway,1),0.8,0),colorbb0000;
stickline(amway<ref(amway,1),amway,ref(amway,1),0.3,0),coloree3300;
stickline(amway<ref(amway,1),amway,ref(amway,1),2,0),coloree7700;
stickline(amway<ref(amway,1),amway,ref(amway,1),1.5,0),coloreebb00;
stickline(amway<ref(amway,1),amway,ref(amway,1),0.8,0),colorliblue;
stickline(amway>=ref(amway,1),amway,ref(amway,1),3,0),color000035;
stickline(amway>=ref(amway,1),amway,ref(amway,1),2.5,0),color000055;
stickline(amway>=ref(amway,1),amway,ref(amway,1),2,0),color000075;
stickline(amway>=ref(amway,1),amway,ref(amway,1),1.5,0),color0000b5;
stickline(amway>=ref(amway,1),amway,ref(amway,1),1,0),color0000b5;
stickline(amway>=ref(amway,1),amway,ref(amway,1),0.8,0),color0000d5;
stickline(amway>=ref(amway,1),amway,ref(amway,1),0.5,0),color0000e5;
drawtext(longcross(amway<ref(amway,1),0.5,7)&&count(longcross(amway<ref(amway,1),0.5,7),barslast(longcross(amway>=ref(amway,1),0.5,7)))<2,1.107*amway,'◎卖'),colorgreen;
drawtext(longcross(amway>=ref(amway,1),0.5,7),1.091*amway,'△买'),coloryellow;
201752612244142184.jpg
201752612244530104.jpg
|