Login Page - Create Account

Support Board


Date/Time: Mon, 30 Mar 2020 22:10:40 +0000



[Programming Help] - Interquartile Range Bands

[2019-03-07 18:27:44]
jakesans - Posts: 36 | Ending Date: 2020-04-18
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 - 134 views
imageIQR Bands Screenshot.jpg / V - Attached On 2019-03-07 18:22:03 UTC - Size: 72.51 KB - 301 views
imageIQR Bands Code.jpg / V - Attached On 2019-03-07 18:22:08 UTC - Size: 49.35 KB - 115 views
[2019-03-07 19:49:57]
Ackin - Posts: 666 | Ending Date: 2020-09-04
Hi,

It isn´t difficult. Tommorow in this time it will be ready to download (Interquartile Range Bands)
Date Time Of Last Edit: 2019-03-09 08:25:11
[2019-03-08 16:57:01]
jakesans - Posts: 36 | Ending Date: 2020-04-18
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-08 20:05:30]
Ackin - Posts: 666 | Ending Date: 2020-09-04
Hi, It will be for download https://www.sierrachart.com/UserControlPanel.php?page=StudyStore&SCDLLName=zyp_download_free, in this time I put there betaversion, because I don´t like the area marked in the picture and I want to add there optional parameter to smooth channel band.
Date Time Of Last Edit: 2019-09-06 17:02:59
imageinterbands.png / V - Attached On 2019-03-08 20:05:21 UTC - Size: 28.09 KB - 120 views
[2019-03-09 10:44:57]
Ackin - Posts: 666 | Ending Date: 2020-09-04
Hi Jake

I finished it. Last version contains possibility mentioned below:

- y/n input filter
- 4 types of calculation bands (include swaps of the channels and atr calculation)
- Choose of source for the top and bottom line
- y/n output filter of smoothing
imageatr mode without smooth.png / V - Attached On 2019-03-09 10:44:09 UTC - Size: 22.56 KB - 125 views
imageswap without smooth.png / V - Attached On 2019-03-09 10:44:18 UTC - Size: 18.2 KB - 120 views
imagemove offset without smooth.png / V - Attached On 2019-03-09 10:44:29 UTC - Size: 27.59 KB - 121 views
[2019-03-09 18:52:24]
jakesans - Posts: 36 | Ending Date: 2020-04-18
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-09 20:53:20]
Ackin - Posts: 666 | Ending Date: 2020-09-04
Hi Jake,
It´s not a problem, but in few days, now I´m finnishing other studies in AOS now.

If I take it in general, I have to admit that the idea is brilliant, but at the same time, the author of the code, which you posted on the top, didn´t give to this idea enough energy and result isn´t correct. There are a number of areas that are bad from the view of channel (screen1), especially a large delays of the channel from the final swings chart. That's why I've done more modes because I think that the multiplyer should not have such power and affect the outcome so much because it's a constant number but the market is changing with different dynamics.

I see the use in two ways. The first classical for entry or exit the trades, and the second way in assessing whether the market is a good. When user set up a channel in way that the market is still inside, when it comes out of the range it's an abnormal, where should not be possible to trade. Even so, it is interesting and I will definitely continue to develop it.


Note: Is´s a big concuration for my paid indicator (ADX channel) :D
Date Time Of Last Edit: 2019-03-09 21:12:28
imagescreen1.jpg / V - Attached On 2019-03-09 20:52:59 UTC - Size: 99.54 KB - 111 views
imagecompare Interquartile Bands vs ADX channel.png / V - Attached On 2019-03-09 20:53:12 UTC - Size: 54.29 KB - 159 views
[2019-03-13 22:53:47]
Ackin - Posts: 666 | Ending Date: 2020-09-04
Hi Jake,

Last version contains possibility mentioned below:

- y/n input filter (14 types)
- 6 types of calculation bands
- Choose of source for the top and bottom line
- middle line
- Envelope
- Improved StDev
- y/n output filter of smoothing (14 types)

and next minor improvements




update tonight




next:
- Entry signals for cross Improved StDev and others ;)
- risk reward pointer
- maximum deviation monitoring
- aggressive trend alert (to identify false signals and avoid trading on them)
- rotation factor (statistics function)


Attached file: Nasdaq Mar 13, 2019 (30 minutes to show how to use)
imageInterquartile Range Bands next6.png / V - Attached On 2019-03-13 22:53:23 UTC - Size: 67.34 KB - 159 views
[2019-03-14 04:34:58]
jakesans - Posts: 36 | Ending Date: 2020-04-18
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
[2019-03-14 08:30:51]
Ackin - Posts: 666 | Ending Date: 2020-09-04
Hi Jake,
Very interesting additions...I would like to test em out.
Thank you, it has nothing to do with your initial requirement, it's a completely different thing with other possibilities. Basically, there is only simmilar idea of ​​"median in the middle line", everything else are my own innovations and improvements. I applied methods to the study that I have developed for several years for other types of channels. From this study became quite a good indicator that it could be possible traded mechanically in good trade phases.
I will finish the above mentioned things and then set it aside for a while. I have additional requirements mainly for volume in numbersbars, icebergs and automatic trendlines in the chart. I want to apply this channel to the DOM in the final form, I am already working on it. The combination of smart algo in the DOM and, for example, this channel in a standard graph seems very good.

I'll do the tests next week. I have my own tester that will test all year on a small timeframe with different PT / SL settings in a few minutes. But actually I haven't gotten to it through programming.


Is latest version available on your website for download?
Update will be available for download on my site before the market opens.


Also what are your preferred inputs so far from your testing?
I do not know what market do you use it for, but for NQ and YM I have introduced a discussion on the forum. At least 15 people are using this channel, so information exchange and some other improvements could be made. I'll put in some of my own insights and screens with my settings.
Date Time Of Last Edit: 2019-03-14 08:31:46

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

Login

Login Page - Create Account