Login Page - Create Account

Support Board


Date/Time: Wed, 08 May 2024 22:29:26 +0000



study subgraph above/below bar as text and color background based on alert condition

View Count: 353

[2023-05-04 08:46:07]
User278398 - Posts: 291
hello,
with "color background based on alert condition" study, and in it alert condition i put the formula " =c[1] "
gives me show the "study subgraph above/below bar as text" study in the last bar...

can u help me with the right formula for alert condition in the "color background based on alert condition" study which will give me to see the "study subgraph above/below bar as text" study in the last 3 bars every 57 bars ?

i upload pic for example(i want to display only the labels with the blue arrow)

regards.
image222.png / V - Attached On 2023-05-04 08:42:59 UTC - Size: 215.88 KB - 63 views
[2023-05-04 13:30:51]
John - SC Support - Posts: 31480
What you want can be done, but it gets a bit complex. We have put together a Study Collection to get you started, but it does not do everything you want. In the Study Collection, it uses the Bar Numbering study to determine the bar to hide and then uses the Color Bar Based on Alert Condition to hide the text above the bar to actually hide it (by coloring it the same as the background).

Only the information at bar 485 is hidden in this case. You would need to work out the formula to hide the 57 bars you want.

Refer to the following for how to use this Study Collection:
Study Collections: Using a Study Collection Provided by Sierra Chart Support
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-05-05 08:34:30]
User278398 - Posts: 291
thanks...
u forgot to post the study collection file.
[2023-05-05 16:46:32]
John - SC Support - Posts: 31480
Sorry. Here it is.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
attachmentHideDataAboveAtBar485.StdyCollct - Attached On 2023-05-05 16:46:29 UTC - Size: 48.93 KB - 71 views
[2023-05-18 11:03:19]
User278398 - Posts: 291
hi,
pic 1 show what i download from u:
1. why in your example i need "study subgraph above/belo..." study?
2. for simplicity i change the alert in id2 to be 10 (id3.sg1=10)...i didnt saw changing of "hiding" the text (in id3, and in id1)
....
1.can u figure it out ?
and if u can hide the bar numbering (the green font), can u do it also to the study subgraph study (the orange font label)
2. if i will be very specific according to your study u sent me, i want to see (u can see in pic 2) that every 10 bars (or 10 min) i will not see the labels id3 and id1.

regards.
image1.png / V - Attached On 2023-05-18 10:59:13 UTC - Size: 191.25 KB - 58 views
image2.png / V - Attached On 2023-05-18 10:59:22 UTC - Size: 358.93 KB - 64 views
[2023-05-19 15:12:01]
John - SC Support - Posts: 31480
We can not help you any further than what we have already done. In general we do not give "Programming" help, which is really what you are asking us for (how to program the particular setup you want). We have give you a start. We can help by answering specific questions you may have about how to do something.

For instance, to hide a study, refer to the following:
Chart Studies: Settings and Inputs Tab >> Hide Study

And to hide a single subgraph, refer to the following:
Chart Studies: Hidden (ACSIL: DRAWSTYLE_HIDDEN)
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-06-05 08:46:43]
User278398 - Posts: 291
many thanks to tomgilb which help me find the correct formula :)

for all others who have the same issue, the correct formula is:

in "Color Bar Based On Alert Condition" study,
in the "alert" tab

=MINUTE(BARTIME)<3

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

Login

Login Page - Create Account