本页源码来自 TradingView 公开发布的开源脚本,版权归原作者所有, 请遵循其原始许可(Pine 脚本常见 CC BY-NC-SA / MPL-2.0 / MIT)。 本项目仅用于研究检索与许可范围内的移植。
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
//
// This indicator repaints the candles so that every candle's open price is the
// previous candle's close price. This helps visualize stocks and ETFs that have
// big gaps, usually between trading days.
//
// You should hide visibility of the ticker for this to be displayed properly.
//
// © echepata
//@version=4
study("No gaps candles", overlay=true)
myOpen = close[1]
myClose = close
myHigh = high
myLow = low
candleColor = myOpen <= myClose ? color.teal : color.red
plotcandle(myOpen, myHigh, myLow, myClose, color=candleColor, bordercolor=candleColor, wickcolor=candleColor)