OPEN-SOURCE SCRIPT

Rolling midpoints

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.
midpointmid-rangeTrend AnalysisVolatility

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer