UNK_Tracer|Bunny's Price density

Unknown_TracerBUNNY · study · 13 行 · 点赞 99 · TradingView 原页

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

Pine Script

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Unknown_TracerBUNNY
//This indicator allows you to measure market noise which is very use full as a market regime filter
//@version=4
study("UNK_Tracer|Bunny's Price density")
length = input(20, "period")
 
numerator = 0.0
for i = 0 to length-1
    numerator := numerator + (high[i]-low[i])
deno = highest(high, length) - lowest(low, length)
as = numerator / deno
plot(as)

← 返回列表