【发布时间】:2022-10-25 10:07:03
【问题描述】:
我想给所有蜡烛上色,所有向下的蜡烛都是红色的,所有向上的蜡烛都是绿色的,当前的蜡烛是黑色的(如果还没有关闭)
这是例如
//@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)
【问题讨论】:
标签: pine-script cryptocurrency pine-script-v4 forex