DonovanWall

Range Filter [DW]

This is an experimental study designed to filter out minor price action for a clearer view of trends.

Inspired by the QQE's volatility filter, this filter applies the process directly to price rather than to a smoothed RSI .

First, a smooth average price range is calculated for the basis of the filter and multiplied by a specified amount.
Next, the filter is calculated by gating price movements that do not exceed the specified range.
Lastly the target ranges are plotted to display the prices that will trigger filter movement.

Custom bar colors are included. The color scheme is based on the filtered price trend.
Release Notes: Updates:

-> Migrated to v4.
-> Range Filter and the bands are now calculated in a singular function.
-> There are now two different calculation methods for the filter. Select the type you want to use via the "Filter Type" input. Type 1 is the original formula.
-> Multiple range sizing methods are now available. You can choose from the following scales:
- Points
- Pips (Works best with forex pairs, obviously)
- Ticks
- % of Price
- ATR
- Average Change (Default. This is the original sizing method.)
- Standard Deviation
- Absolute (Absolute numerical value)
-> Range smoothing is now optional, and you can specify your smoothing length. Smoothing only affects dynamic scales (ATR, Average Change, and Standard Deviation).
-> Filter movement can now be determined using wicks or close. This can be specified via the "Movement Source" input.
-> Stability Fix: Added correction for NaN values to stabilize initial states.
-> Reorganized the script structure.
-> Revamped the color scheme.
Ta bort från favoritskript Lägg till som favoritskript

Kommentarer

This indicator is perfection. So far my favourite on this platform. Thanks!
+3 Svara
Thank you for your work! It is really a great indicator !
+3 Svara
Hey @DonovanWall, great idea! The QQE is pretty powerful, would be great to see more applications of it on price action rather than rsi!
Cheers
+2 Svara
These filter and Low Pass channel are really the best ones.
I will ask something on your Fiver page.
Indicators based on filters are the best.
+1 Svara
Congrats to the developer for this superb indicator. I would like to program an alert whenever the filter goes red or green, but as far as I understand, it has a lot of invisible changes in color (cross between Color0 and Color1), and therefore it causes to many noise/false-signals. How can I make an alert that corresponds to the visual core trend Color0 /Color1 cross? Thanks
+1 Svara
DonovanWall aciriaco
@aciriaco, There aren't invisible transitions in the color. If you want to code signals for when filter direction changes, you need to use the upward and downward variables. These vars save the last directional state of the filter.
To make the signals, you can use a conditions like these:

bull_sig = upward==0 and upward
bear_sig = downward==0 and downward

That will signal the change in var states.
Svara
aciriaco DonovanWall
@DonovanWall, thanks but no signal is triggered with the bull_sig and bear_sig as you stated. Made it work with a cross(upward,downward). Keep the good codes coming!!
Svara
DonovanWall aciriaco
@aciriaco, Whoops. I left out the previous bar identifier. My apologies.

What I meant was:

bull_sig = upward==0 and upward
bear_sig = downward==0 and downward

But yes, cross conditions for the variables work as well since they move between 0 and 1. Glad you got it to work.

Edit: apparently I didn't leave it out. TV comments don't like to support brackets I guess. You need to reference the previous bar for the ==0 parts. lol
Svara
Great indicator! Default settings are for 1h timeframe? Thanks.
+1 Svara
@sfigus, Use whatever timeframe you like. The default settings work with any resolution. The only thing that changes with timeframe is the width of the average range in the calculation, which you could increase or decrease manually using the range multiplier input.
+1 Svara
Hem Aktie-screener Forex-screener Krypto-screener Ekonomisk kalender Hur det fungerar Diagramfunktioner Priser Tipsa en vän Ordningsregler Hjälpcenter Webbsidor och mäklarlösningar Widgets Diagramlösningar Lightweight Charting Library Blogg och nyheter Twitter
Profil Profilinställningar Konto och fakturering Tipsa en vän Mina kölappar Hjälpcenter Publicerade idéer Följare Följer Privata meddelanden Chatt Logga ut