在线检测未来函数

操盘手BS请帮忙做个选股公式

来源:Internet,编辑:股旁网,2012-06-09

编写要求:

股旁网解答:

 网友求助:

买线:=ZIG(3,10);
卖线:=MA(买线,3);
BU:=cross(买线,卖线);
SEL:=cross(卖线,买线);
CB5:cyc(5),colorFF00FF,linethick1,DOTLINE;
drawtext(bu,l*0.99,'买'),linethick1,color00aaff;
drawtext(sel,h*1.01,'卖'),linethick1,color00ff00;
drawtext("X09A.T">0,l*0.99,'B'),linethick1,colorFFffff;
drawtext("X09A.T1">0,l*0.99,'B'),linethick1,color0000ff;
stickline(买线>=卖线,low,high,0.1,0),color0000CC;
stickline(买线>=卖线,close,open,7,0),color0000CC;
stickline(买线<卖线,close,open,7,0),colorCCCC00;
stickline(买线<卖线,low,high,0.1,0),colorCCCC00;
stickline(cross(买线,卖线),open,close,7,0),color00AAFF;
stickline(cross(卖线,买线),open,close,7,0),color00DD00;
stickline(cross(C,CB5),o,C ,7,0 ),colorFF00FF;
stickline(cross(C,CB5),o,o+(C-o)*0.50 ,7,0 ),color0000FF;
 
 
解答如下:
买线:=ZIG(3,10);
卖线:=MA(买线,3);
XG:CROSS(买线,卖线);
 

 

相关文章