Interquartile Range (IQR) as indicator of volatility
Author: Carova
Creation Date: 3/9/2019 8:53 PM
profile picture

Carova

#1
Hi Eugene!

I am attempting to create another volatility indicator, the Interquartile Range (https://en.wikipedia.org/wiki/Interquartile_range).

I found the code to do this on StackOverflow (https://stackoverflow.com/questions/14683467/finding-the-first-and-third-quartiles) but I am so ignorant in C# that I am having trouble incorporating it. I used the framework that you provided here (https://www.wealth-lab.com/Forum/Posts/MAD-Median-Absolute-Deviation-as-an-Indicator-of-Volatility-39177) for MAD but it is obvious that I do not know what I am doing. Here is my feeble attempt:

CODE:
Please log in to see this code.


What am I doing wrong? Thanks!

Vince
profile picture

Eugene

#2
Hi Vince,

For what it's worth...

CODE:
Please log in to see this code.
profile picture

Eugene

#3
Let's have it added to Community Indicators 2019.04.
profile picture

Carova

#4
Thanks Eugene!

Vince

profile picture

Eugene

#5
Vince, fyi: C.Indicators v2019.04 is out with the IQR indicator.
profile picture

Carova

#6
Thanks Eugene!

Vince
profile picture

Eugene

#7
Any time! :)
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).