Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 05:47:27 +0000



[Programming Help] - Interquartile Range Bands

View Count: 3887

[2019-03-07 18:27:44]
jakesans - Posts: 50
I'm trying to replicate this IRQ Bands study (see attached for details) but can't find any comparable function to Pine Script's simple "percentile_nearest_rank" function. Any ideas as to a SC ACSIL function or C++ stats library that has something similar? Or will this be more complicated with SC's ACSIL? I did look at the code for SC's Stochastic Percentile study, but it isn't want I need. It only provides the percentile rank of the last value, not the price value that falls into specific percentile rank.

This IRQ Bands study is somewhat comparable to STD bands in terms of how to trade them.
imagepercentile_nearest_rank.jpg / V - Attached On 2019-03-07 18:21:56 UTC - Size: 58.96 KB - 738 views
imageIQR Bands Screenshot.jpg / V - Attached On 2019-03-07 18:22:03 UTC - Size: 72.51 KB - 922 views
imageIQR Bands Code.jpg / V - Attached On 2019-03-07 18:22:08 UTC - Size: 49.35 KB - 600 views
[2019-03-08 16:57:01]
jakesans - Posts: 50
Hi Ackin,

Yes that much better way to look at it. I really appreciate the help.

Where can I download once done?

Thanks,
Jake
[2019-03-09 18:52:24]
jakesans - Posts: 50
Hi Ackin,

Wow this is very nice with many additional features that I wasn't expecting. Thanks so very much!

Suggestion: If you get around to it, can you add the median line (aka quartile 2 or 50 precentile) as a plotted line between the bands. So assuming the bands are fitted properly on the chart, if price moves back inside the bands from outside, it will at least hit the median line nearly 90% of the time. The median line is a good initial target to remove a portion of the trade risk and book some profit.
[2019-03-14 04:34:58]
jakesans - Posts: 50
Hi Ackin,

Very interesting additions...I would like to test em out. Is latest version available on your website for download? Also what are your preferred inputs so far from your testing?

Thx,
Jake

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account