Real Price

DreamsDefined · study · 18 行 · 点赞 2,363 · TradingView 原页

本页源码来自 TradingView 公开发布的开源脚本,版权归原作者所有, 请遵循其原始许可(Pine 脚本常见 CC BY-NC-SA / MPL-2.0 / MIT)。 本项目仅用于研究检索与许可范围内的移植。

Pine Script

//@version=3
 
study("Real Price", overlay=true, precision=5)
 
so = input(true, "Show Open Price")
sh = input(true, "Show High Price")
sl = input(true, "Show Low Price")
sc = input(true, "Show Close Price")
 
op = so ? security(tickerid(syminfo.prefix, ticker), period, open) :  na
hi = sh ? security(tickerid(syminfo.prefix, ticker), period, high) : na
lo = sl ? security(tickerid(syminfo.prefix, ticker), period, low) : na
cl = sc ? security(tickerid(syminfo.prefix, ticker), period, close) : na
 
plot(op, linewidth=4, transp=100) 
plot(hi, linewidth=4, transp=100) 
plot(lo, linewidth=4, transp=100) 
plot(cl, linewidth=4, transp=100)

← 返回列表