gorx1

Rolling midpoints

gorx1 Updated   
The script made for research purposes which plots these statistics of a given window: Mid-range (max + min)/2, Lower midpoint (mid-range + min)/2, and Higher midpoint (mid-range + max)/2.
This could be interesting when checking periods with sample size <= 0, or checking distros with srs kurtosis values.

Mean & median are also there.
Release Notes:
Rolling window minimum & maximum addes

Don't forget to check Log-space if you use logarithmic scale.
Release Notes:
The complete version

Now you can choose mid-range, mean or median as basis, will result diving the distance between chosen basis and extremums of rolling window
Release Notes:
Trimean L-estimator was added as basis for research purposes (disabled by default)
Release Notes:
New:
- All data switch;
- OTF functionality.
Release Notes:
New:
- "High & low" option allows to make calculations based on lowest lows and highest highs.

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?