b_biddles

Biddles OI Weighted Average Price

b_biddles Updated   
Ahoy!

This script calculates Open Interested Weighted Average Price for the following lookback periods:

- 7, 30, 60

e.g. On the 1D chart, you will see OIWAP for the past 7, 30, and 60 days. It works on any timeframe though.

It works with any ticker that TV's OI indicator supports, and has ticker override if you are looking at an exchange that's unsupported, but for an asset that is.

e.g. If you're looking at Bybit's BTCUSDT.P which is unsupported- you can override to get OI data from Binance's BTCUSDT.P which is supported.

=====
Open-Sourced + Crowd Sourcing Goals
=====

I am open sourcing this in hopes we can work together to find interesting signal/observation, and make the script better.

The only way I could think of to calculate the OIWAP for the lookback periods was to manually factor in each period in the formula.

e.g. For the 60-period lookback, it's manually taking price and OI for each individual period.

I am also hoping other folks will make interesting observations.

With the few hours I've spent thus far, they seem to operate much like MA bands, with crossovers having similar implications.

But I feel like there are many other observations left unnoticed!

If you find any, hmu on twitter: @thalamu_

=====
Interesting Calculations in the Script, but not Plotted on the Chart
=====

There are calculations for up to 60 days of OIWAP taking change in OI rather than just OI.

There's one set for absolute value of change in OI, and one set for raw change in OI.

I didn't notice anything spectacularly interesting - but perhaps you will if you tinker with it!

=====
Find something cool? Have an improvement?
=====

Hmu on twitter: @thalamu_
Release Notes:
=====
UPDATE
=====

Use the script settings to select a timeframe other than your chart's current resolution for the OIWAP
Release Notes:
=====
UPDATE
=====

* Fixed a bug in the timeframe selector
* Added 2W timeframe
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?