松文脚本:当前蜡烛的颜色不同的颜色
我想为所有蜡烛上色,所有的蜡烛都会是红色的,所有蜡烛都将是绿色的,当前的蜡烛将是黑色的(如果还没有关闭),
例如
//@version=4
study("color all except current candle", overlay=true)
this_is_current_candle_function = ?????????????
redbar = close < open
greenbar = close > open
barcolor(not this_is_current_candle_function and redbar ? color.red:color.black)
barcolor(not this_is_current_candle_function and greenbar ? color.green:color.black)
i wanna to color all candles , all down candles will be red ,, all up candle will be green and the current candle will be black (if not closed yet)
this is for example
//@version=4
study("color all except current candle", overlay=true)
this_is_current_candle_function = ?????????????
redbar = close < open
greenbar = close > open
barcolor(not this_is_current_candle_function and redbar ? color.red:color.black)
barcolor(not this_is_current_candle_function and greenbar ? color.green:color.black)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用
barstate.isconfirded
函数you use
barstate.isconfirmed
function