Pine script 无法将音量条固定到图表底部

Pine script 无法将音量条固定到图表底部,pine-script,Pine Script,在Pine脚本中创建了自定义音量指示器,但我无法将其固定到图表底部。我希望它的显示方式与默认音量指示器相同 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 = int

在Pine脚本中创建了自定义音量指示器,但我无法将其固定到图表底部。我希望它的显示方式与默认音量指示器相同

    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)
研究(“BTC美元量”,叠加=真,精度=0,标度=标度。无)
showMA=input(title=“showMA”,type=bool,deffal=false)
长度=输入(title=“MA长度”,类型=整数,定义=20)
当前价格=(打开+关闭)/2
当前体积=体积
调整量=当前量*当前价格

barColor=iff(关闭>关闭[2],绿色,iff(关闭不幸的是,无法用自定义音量指示器替换默认音量指示器