Login Page - Create Account

Support Board


Date/Time: Fri, 31 Jan 2025 00:10:27 +0000



[Programming Help] - Highlight Background every other minute

View Count: 778

[2019-04-05 07:29:11]
BobHaraldson - Posts: 4
Hi,

I would like to highlight the background of my constant volume bar chart every other minute.
In order to get a visual impression of the speed of market.
How can I do this?
Date Time Of Last Edit: 2019-04-05 07:36:05
[2019-04-05 12:05:54]
TechTrader - Posts: 116
User563999

Following is one method which may be what you want.
You need to set up a 1 minute chart in your chartbook that has your volume chart and add:
1) Bar Numbering Study - In Settings and Inputs - Number Every N Bars - set to 1
2) Color Background Based On Alert Condition Study - In Settings and Inputs - Use Vertical Line Instead of Coloring Background - set to No
In the Alerts Window type ISEVEN(ID1.SG1)
Check - Enabled Box
Uncheck - Evaluate on Bar Close Box
Save the study collection.
This will color the background on every even bar on the 1 minute chart.

Minimise the chart if you don't need to see it.

Next on your volume chart add:
1) Study/Price Overlay Study - In Settings and Inputs - Study to Overlay - From the drop down list - The 1 minute chart and to the right - Color Background Based On Alert Condition
Save the Study Collection.

Below are the study collections I used to test the method.
attachment1 min bar numbering.StdyCollct - Attached On 2019-04-05 12:02:46 UTC - Size: 18.7 KB - 337 views
attachmentBackground Overlay.StdyCollct - Attached On 2019-04-05 12:03:04 UTC - Size: 9.4 KB - 410 views
[2019-04-05 18:49:01]
BobHaraldson - Posts: 4
Thx @TechTrader!

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

Login

Login Page - Create Account