Невозможно закрепить столбцы объема внизу графика

Создал пользовательский индикатор Volume в Pine Script, но я не могу закрепить его внизу графика. Я хотел бы, чтобы он отображался так же, как индикатор громкости по умолчанию.

    study("BTC Dollar Volume", overlay=true, precision=0, scale = scale.none)

    showMA = input(title = "Show MA", type = bool, defval = false)
    length = input(title = "MA Length", type = integer, defval = 20)

    currentPrice = (open + close) / 2
    currentVolume = volume
    adjustedVolume = currentVolume * currentPrice


    barColor = iff(close>close[2], green, iff(close<=close[2], red, gray))

    plot(fixnan(adjustedVolume), style = columns, color = barColor, title="Volume")
    plot(showMA?sma(adjustedVolume, length):na, color = maroon)

person Vladimir K    schedule 11.12.2018    source источник


Ответы (1)


К сожалению, нет возможности заменить индикатор громкости по умолчанию на пользовательский.

person vitvlkv    schedule 12.12.2018