cxl720111 发表于 2018-7-3 16:53

请老师将大智慧操盘线发出B字时编成一个预警公式

bu:=cross(high,SAR(3,1,20));
sel:=cross(SAR(3,1,20),low);

var1:=last(high<SAR(3,1,20));
var2:=last(low>sar(3,1,20));

drawflagtext(bu,high,'买入');
drawflagtext(sel,low,'卖出');

drawtext(bu,LOW,'B'),valign0,align1,coloryellow,linethick2;
drawtext(sel,HIGH,'S'),valign2,align1,colorgreen,linethick2;

STICKLINE(low>SAR(3,1,20) and isdown,high,open,0.5,1),colorred;
STICKLINE(low>SAR(3,1,20) and isdown,close,open,7.5,1),colorred;
STICKLINE(low>SAR(3,1,20) and isdown,close,low,0.5,1),colorred;

STICKLINE(high<SAR(3,1,20) and isup,high,close,0.5,1),colorcyan;
STICKLINE(high<SAR(3,1,20) and isup,close,open,7.5,1),colorcyan;
STICKLINE(high<SAR(3,1,20) and isup,open,low,0.5,1),colorcyan;



drawflagtext(high<SAR(3,1,20) and high>=ref(high,1),high,'明日突破'+forcast(sar(6,1,60),max(var1,2))+'建议关注');
drawflagtext(high<SAR(3,1,20) and high<ref(high,1),high,'持币观望');

drawflagtext(low>SAR(3,1,20) and low<=ref(low,1),low,'明日跌破'+forcast(sar(6,1,60),max(var2,2))+'注意止盈');
drawflagtext(low>SAR(3,1,20) and low>ref(low,1),low,'继续持股');

chenjiaq1111 发表于 2018-7-4 13:46

cross(high,SAR(3,1,20));

cxl720111 发表于 2018-7-12 11:42

谢谢老师的答复。好人一生平安。一年中个500万的大彩票。:loveliness
页: [1]
查看完整版本: 请老师将大智慧操盘线发出B字时编成一个预警公式