把指标中的紫色B信号提取出来添加到普通K线中
-
相关简介:编写要求: www.guhai.com.cn 股海网解答: 网友求助: 如题所示 请老师把指标中的紫色B信号提取出来用作添加到普通日K线中 谢谢 买线:EMA(C,2),pointdot,color0000DD; 卖线:EMA(SLOPE(C,21)*20+C,42),pointdot,color00DD00; BU:=cross(买线,卖线); SEL:=cross(卖线,买线); drawtext(bu,LOW*0.99,'B'),colorCC00ff,linethick1; drawt
-
文章来源:股海网作者:股海网发布时间:2019-10-12浏览次数:
编写要求:
www.guhai.com.cn股海网解答:
网友求助:
如题所示 请老师把指标中的紫色B信号提取出来用作添加到普通日K线中 谢谢
买线:EMA(C,2),pointdot,color0000DD;
卖线:EMA(SLOPE(C,21)*20+C,42),pointdot,color00DD00;
BU:=cross(买线,卖线);
SEL:=cross(卖线,买线);
drawtext(bu,LOW*0.99,'B'),colorCC00ff,linethick1;
drawtext(sel,HIGH*1.04,'S'),color00CC00,linethick1;
stickline(买线>=卖线,low,high,0.1,0),color0000CC;
stickline(买线>=卖线,close,open,7,0),color0000CC;
买线:EMA(C,2),pointdot,color0000DD;
卖线:EMA(SLOPE(C,21)*20+C,42),pointdot,color00DD00;
BU:=cross(买线,卖线);
SEL:=cross(卖线,买线);
drawtext(bu,LOW*0.99,'B'),colorCC00ff,linethick1;
drawtext(sel,HIGH*1.04,'S'),color00CC00,linethick1;
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),colorDD00DD;
stickline(cross(卖线,买线),open,close,7,0),color00DD00;
解答如下:
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=cross(买线,卖线);
drawtext(bu,LOW*0.99,'B'),colorCC00ff,linethick1;
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=cross(买线,卖线);
drawtext(bu,LOW*0.99,'B'),colorCC00ff,linethick1;
上一篇:当天K线任意N%处的画线公式
下一篇:从指定的日期开始计算成交量的平均值的公式