Login Page - Create Account

Support Board


Date/Time: Thu, 28 Mar 2024 23:57:33 +0000



Study condition only works with certin conditions

View Count: 187

[2023-05-24 20:11:31]
ssangha84 - Posts: 103
Hello, I was wondering if it is possible for a study to only work if certain conditions are met.

For example, I have a volume based bar chart, and I want to use the "volume point of control for bars" study only to activate and turn a bar yellow if the "bar time duration" study is under 5 seconds.

Was wondering if that's possible, thanks.
[2023-05-24 22:40:33]
John - SC Support - Posts: 30444
To actually make a study only function when certain conditions are met would require that you create a custom study.

The other way to do this is to have the study always calculate, but then only display the information when certain conditions are met. To do this, you would use the "Color Bar Based on Alert Condition" study to color the "Volume Point of Control For Bars" when the condition you want is NOT true and set the coloring to be the same as the background.

Note that you will need to set the Color Bar Based on Alert Condition Draw Style and Width/Size to be the same as the Volume Point of Control For Bars.

Refer to the following section for the Color Bar Based on Alert Condition on this topic:
Color Bar Based on Alert Condition: Coloring Subgraphs of Other Studies
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account