您将如何修改此Tradingview Pine脚本,以使最后一个当前实时条像其他蜡烛一样被打印成蜡烛

问题描述

下面的代码在交易视图范围条形图中绘制蜡烛,因为平台没有提供将条形(OHLC)更改为蜡烛的选项。下面的代码是一种变通方法,但是它不会使最后一根柱线(当前柱线)变成蜡烛,并且我不知道如何解决此问题。感谢您的协助。

//@version=4
// Copyright (c) 2020-present,Alex Orekhov (everget)
// Range Candles script may be freely distributed under the terms of the GPL-3.0 license.

study("Range Candles",overlay=true)

bullColor = #095616
bearColor = #ac0011
isBull = close >= open

plotcandle(
 isBull ? open : na,isBull ? high : na,isBull ? low : na,isBull ? close : na,title="",color=bullColor,bordercolor=bullColor,wickcolor=#5d606b
 )

 plotcandle(
 isBull ? na : open,isBull ? na : high,isBull ? na : low,isBull ? na : close,color=bearColor,bordercolor=bearColor,wickcolor=#5d606b
 )

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...