TradingView
wbburgin
27 avr. 2023 21:57

Aggregate Medians [wbburgin] 

Invesco QQQ Trust, Series 1NASDAQ

Description

This indicator recursively finds the average of all high/low medians under your chosen length. This can be very, very helpful for analyzing trends where a moving average or a normal median would produce a bunch of false signals.

Settings:
The "Length" setting is the maximum median that you want the algorithm to add into the sum. The "Start at Period" setting is the the minimum median that you want the algorithm to take into account. Starting at a higher period means that the faster, more sensitive medians of lower lengths are not included, and will smooth out your curve.

I haven't seen many recursive algorithms on TradingView so feel free to use this script as inspiration for any of your ideas. In theory, you can essentially replace the median function with any other function - a moving average, a supertrend, or anything else.
The start must be lower than the length, because this is a sum from the start to the length of all medians in between.
Commentaires
Ether2020
This is a good idea! Thanks so much, my friend!
wbburgin
@Ether2020, Thank you!!
Maxineeeeekola
love your work Thanks
wbburgin
@Maxineeeeekola, Thank you!
anhswf
love your work
is there a momentum oscillator that you recommend like mfi or smi ?
wbburgin
@anhswf, Thanks. I prefer smi personally but whatever works for you.
anhswf
@wbburgin, thers a lot of smi Virgins what is the best of them ? link it if possible
thanks again
wbburgin
@anhswf, I like LazyBear's, it's one of the most popular.
Plus