如何更改标签形状内文本的颜色?我不想为了保持对比而改变标签的颜色。
(趋势== 1和Trend1 == -1?趋势: na,color=lime,style=shape.labelup,text=‘BUY’(趋势== -1和Trend1 == 1?)趋势: na,color=red,style=shape.labeldown,text='SELL')
发布于 2019-06-03 09:01:15
plotshape()函数有color和textcolor参数。
形状的color颜色。
文本的textcolor颜色。
//@version=3
study("My Script", overlay=true)
plotshape(series=close > open, text="Green\nCandle", style=shape.labelup, location=location.belowbar, color=green, textcolor=red, size=size.small)

https://stackoverflow.com/questions/56423713
复制相似问题