%>
pv:=INDEXV;
lb1:=v/ref(ma(v,5),1);lb2:=pv/ref(ma(pv,5),1);
{股票教程网-股票公式网站 www.gwgz.net}
a1:=lb1>lb2;a2:=lb1<lb2;
a3:=lb1>1.3*lb2 and lb1<=2*lb2;a4:=lb1>2*lb2;
a5:=lb2>1.3*lb1 and lb2<=2*lb1;a6:=lb2>2*lb1;
低于大盘:STICKLINE(a2,h,l,0,0),COLORDDDD00;
STICKLINE(a2,o,c,8,0),COLOR888800;
STICKLINE(a2,o,c,5,0),COLORaaaa00;
STICKLINE(a2,o,c,3,0),COLORcccc00;
弱于大盘:STICKLINE(a5,h,l,0,0),COLORGREEN;
STICKLINE(a5,o,c,8,0),COLOR008800;
STICKLINE(a5,o,c,5,0),COLOR00aa00;
STICKLINE(a5,o,c,3,0),COLOR00cc00;
超弱大盘:STICKLINE(a6,h,l,0,0),COLORFF0000;
STICKLINE(a6,o,c,8,0),COLOR880000;
STICKLINE(a6,o,c,5,0),COLORaa0000;
STICKLINE(a6,o,c,3,0),COLORcc0000;
领先大盘:STICKLINE(a1,h,l,0,0),COLORFF00FF;
STICKLINE(a1,o,c,8,0),COLOR880088;
STICKLINE(a1,o,c,5,0),COLORaa00aa;
STICKLINE(a1,o,c,3,0),COLORcc00cc;
强于大盘:STICKLINE(a3,h,l,0,0),COLOR0000FF;
STICKLINE(a3,o,c,8,0),COLOR000088;
STICKLINE(a3,o,c,5,0),COLOR0000aa;
STICKLINE(a3,o,c,3,0),COLOR0000cc;
超强大盘:STICKLINE(a4,h,l,0,0),COLOR00FFFF;
STICKLINE(a4,o,c,8,0),COLOR008888;
STICKLINE(a4,o,c,5,0),COLOR00aaaa;
STICKLINE(a4,o,c,3,0),COLOR00cccc;
m1:ma(c,5);m2:ma(c,10);m3:ma(c,22);m4:ma(c,60);m5:ma(c,120);
{股票教程网-http://gwgz.net/承接通达信软件和公式破解,普通加密破解,完全加密破解,导入密码破解,时间限制破解,公式编写,可按您的要求写公式指标,价格按难度不同报价,有需要可以找我们}