Support Board
Date/Time: Wed, 27 Nov 2024 02:34:47 +0000
[Programming Help] - Chart Background Coloring
View Count: 854
[2021-12-15 22:12:35] |
wingz - Posts: 121 |
Is there a tool in Sierra that will allow the coloring of the chart background to be colored one color above a moving average and another color below the moving average on historical charts AND intraday charts. (Daily, Weekly, Monthly,5 min 3 min etc)? Example: Chart would have a 100 SMA applied and the chart background would be green above the 100 and red below the 100. Also......I would like the background color to print edge to edge on the chart. (Even ahead of the price bars)
|
[2021-12-16 16:23:58] |
John - SC Support - Posts: 36309 |
Attached is a study collection that will do most of what you want. It does not color into the forward projection area. There may be a way to color forward, but we can not think of one offhand. Also note that we used a solid color, which is going to give the best performance, but you could change the Draw Style to a Transparent Fill Top/Bottom. Just be aware that transparencies slow down the graphics tremendously. Refer to the following for how to use the 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 |
ColorAboveBelowSMA.StdyCollct - Attached On 2021-12-16 16:23:55 UTC - Size: 46.28 KB - 285 views |
[2023-09-27 10:14:40] |
User693923 - Posts: 5 |
Hi guys, I'm looking for something similiar, but still a bit different. Is there a tool, way or indicator which colors the background red or green, depending on the price of theprevious bars (for example 3 out of 5 bars were higher --> therefore green backgound, or current close price was higher than last bar, green background) It all should look somehow like the attached image to give a quick overview of the price movements of the charts. Looking forward to your feedback and many thanks |
[2023-09-27 10:15:29] |
User693923 - Posts: 5 |
Here's the screenshot.
|
monitor_charts.png / V - Attached On 2023-09-27 10:15:24 UTC - Size: 1.68 MB - 109 views |
[2023-09-27 15:06:11] |
John - SC Support - Posts: 36309 |
There is not a way to do this with the built-in studies in Sierra Chart. It can be done by creating a custom study. To create a custom study, refer to the following: Advanced Custom Study Interface and Language (ACSIL): Introduction Or you can find a programmer from our list here: List of Third Party Sierra Chart Study and System Programmers For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-09-27 16:36:09] |
Sawtooth - Posts: 4120 |
You can do it with the Spreadsheet Study study, with this limitation: The spreadsheet study only continually updates the most recent 10 bars. If this limitation is acceptable, and you want details how to do it, post again. Date Time Of Last Edit: 2023-09-27 23:35:08
|
[2023-09-29 07:29:42] |
User693923 - Posts: 5 |
Hi, thanks for getting back to me! Yes, sure. It would be great to get further info about how to do it. The limitation is totally acceptable. Many thanks! |
[2023-09-29 14:49:49] |
Sawtooth - Posts: 4120 |
It would be great to get further info about how to do it.
Put both the attached files in your Sierra Chart \Data folder.Apply the Study Collection to your chart, and choose No when asked 'Clear Existing Studies On Chart?'. Analysis >> 10bar background coloring+ Note: You must have both files in the \Data folder so that the proper settings are applied. For an understanding of how this works, notice Spreadsheet Study study's settings. The formula in cell K3 on Sheet1 can be edited as needed. Currently it is comparing the current Close with the previous Close. Row 3 is the current bar; previous bars are in rows below. You must use an absolute reference ($) so that all 10 bars color together. The final 'else' of the IF statements must reference K4. When you apply this Study Collection to more than one chart in the same chartbook, each chart will have its own Sheet# matching its chart#, but the formula in K3 on Sheet1 will affect all charts/sheets equally. If you want unique formulas for each chart, set the Formula Source Sheet Number setting to match its chart#, and edit K3 on its respective sheet#. Date Time Of Last Edit: 2023-09-29 14:53:16
|
10bar background coloring.scss - Attached On 2023-09-29 14:49:30 UTC - Size: 7.03 KB - 253 views 10bar background coloring+.StdyCollct - Attached On 2023-09-29 14:49:39 UTC - Size: 19.09 KB - 188 views |
To post a message in this thread, you need to log in with your Sierra Chart account: