Login Page - Create Account

Support Board


Date/Time: Sat, 04 Apr 2020 06:15:38 +0000



How to reference all visible bars in alert?

[2019-03-02 15:00:19]
User462086 - Posts: 88 | Ending Date: 2020-08-15
I'd like to color volume bars based on height relative to the tallest bar that is currently visible. Something like this (each line would trigger a different color):

V >= 0.8 * maximum visible value
AND( V >= 0.6 * max visible value, V < 0.8 * maximum visible value )
AND( V >= 0.4 * max visible value, V < 0.6 * maximum visible value )
AND( V >= 0.2 * max visible value, V < 0.4 * maximum visible value )
V < 0.2 * maximum visible value

I've found the page that talks about how to reference a range, something like [0:-10], but I can't find documentation for setting the lookback based on visible bar count.

Many thanks!!
[2019-03-02 22:31:46]
Ackin - Posts: 677 | Ending Date: 2020-09-04
Hi, Dont know how it make through alerts but I offer other option.


Via ACSIL:
At the first time I took it as a bad idea which cant be function and want to wrote you, that is better to use fixed period. But then I take an idea, that it would be good use this for debug or finding some situation, when you can move window and see what is happens there.
I think that you dont have access through alerts to find quantity of visible bars. And maybye you will have other problems, which cant be resolve without ACSIL.

I created basic study, which can be improve with alert to filter bars. Study automaticly recalculates parameters and also graph when the window is changed (It automaticly remove markers of bars and make new markers). You only move with window (or its frames) and other functions connect with this changes do the study automaticly.
Study is possible to download on our forum. If you need to make this system better and add new items its not a problem.

Link on our forum for more informations and download free study is here:
https://www.sierrachart.com/SupportBoard.php?PostID=172922#P172922
imagevisible bar.png / V - Attached On 2019-03-02 22:31:26 UTC - Size: 13.5 KB - 88 views
[2019-03-04 04:21:51]
User462086 - Posts: 88 | Ending Date: 2020-08-15
Hi Ackin, thank you very much. I went to your forum and found that it requires registration to access the code. Is it possible to post the code on this forum too? Many thanks!!
[2019-03-05 15:27:24]
Ackin - Posts: 677 | Ending Date: 2020-09-04
it requires registration to access the code

There is not a code but full library which doesn´t have only this study but more then 40 other studies and every week there are inserted new ones.
This library is for free and always will be, but is conected with every user through his login in sierrachart. It´s common procedure.

Is it possible to post the code on this forum too?

It isn´t because I want to know who is using this library. Main reason why I created this library is possibility of users of our czech and slovak forum to have it as a tool and everybody who is registered in this forum may use this library. This forum is used by active traders and with their posts and screenshots of their trades motivate me and others to improve tradings and this library is the way I can tell them "thank you".



Note:
On forum is also more than 200 paid studies but their using is not connected with this free library (It means that this library is accesible for every users of our czech and slovak forum)
Date Time Of Last Edit: 2019-03-05 15:33:56
[2019-03-07 06:00:31]
User462086 - Posts: 88 | Ending Date: 2020-08-15
Hi Ackin, your forum sounds valuable! I'll check it out. And thank you again for helping.

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

Login

Login Page - Create Account