变色龙主图引入同花顺后K线颜色的问题
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
选股票看什么指标最好 >股票指标网
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
编写要求:
解答:
网友求助:
试引入,可以通过,但颜色很怪,红的变黄,绿的变白。谢谢。
diff:=ema(close,12)-ema(close,26);
dea:=ema(diff,9);
ma(c,5),colorwhite;
ma(c,10),coloryellow;
多头:stickline(diff>dea,c,o,8,0),colorred;
stickline(diff>dea,h,l,0,0),colorred;
空头:stickline(diff<=dea,c,o,8,0),COLORF0F000;
stickline(diff<=dea,h,l,0,0),COLORF0F000;
drawtext(cross(diff,dea),l-0.2,'买入'),colorwhite;
drawtext(cross(dea,diff),h+0.2,'卖出'),colorgreen;
解答如下:
diff:=EMA(CLOSE,12)-EMA(CLOSE,26);
dea:=EMA(diff,9);
MA(C,5),colorwhite;
MA(C,10),coloryellow;
STICKLINE(diff>dea,C,O,8,0),colorred;
STICKLINE(diff>dea,H,L,0,0),colorred;
STICKLINE(diff<=dea,C,O,8,0),COLORF0F000;
STICKLINE(diff<=dea,H,L,0,0),COLORF0F000;
DRAWTEXT(CROSS(diff,dea),L-0.2,'买入'),colorwhite;
DRAWTEXT(CROSS(dea,diff),H+0.2,'卖出'),colorgreen;
dea:=EMA(diff,9);
MA(C,5),colorwhite;
MA(C,10),coloryellow;
STICKLINE(diff>dea,C,O,8,0),colorred;
STICKLINE(diff>dea,H,L,0,0),colorred;
STICKLINE(diff<=dea,C,O,8,0),COLORF0F000;
STICKLINE(diff<=dea,H,L,0,0),COLORF0F000;
DRAWTEXT(CROSS(diff,dea),L-0.2,'买入'),colorwhite;
DRAWTEXT(CROSS(dea,diff),H+0.2,'卖出'),colorgreen;
选股票看什么指标最好 >股票指标网
精彩评论