Support Board
Date/Time: Fri, 22 Nov 2024 16:49:36 +0000
[Programming Help] - Watermark with chart time frame
View Count: 225
[2024-10-05 04:22:10] |
User556806 - Posts: 14 |
Hello, is there any way to add watermark showing timeframe of the chart? Thank you. |
Attachment Deleted. |
[2024-10-05 23:30:21] |
Sierra_Chart Engineering - Posts: 17143 |
No, this is not supported . You need to rely on what is displayed on the Chart Header: Working With Charts: Region Data Line / Chart Header Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2024-10-05 23:30:31
|
[2024-10-06 04:40:00] |
Acro - Posts: 441 |
User556806, Sierra provides the tools in ACSIL for you to do this yourself if you are willing to get your hands dirty. What you could do is take the source code for the Symbol Display study that is in studies5.cpp in the ACS folder of your installation and edit that code to acheive your aim. The relevant Sierra function you could use is sc.GetChartName() This gets you a string of the chart name, timeframe and chart number eg "ESZ4.CME[M] 1 Min #1" Then you can manipulate that string (eg through an additional study input or two inputs you write) to cut off the first X characters and last y characters of that string. Then, you have the exact text (ie timeframe) you are seeking and use that in the customised symbol display. It is actually an interesting idea to me as I do change the numbers bar chart timeframe during the day based on volatility and would be nice to have a big font watermark telling me what it was currently set to |
[2024-10-06 13:40:26] |
Sierra_Chart Engineering - Posts: 17143 |
Yes we did forget about the Symbol Display study. That is available: Symbol Display Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-10-07 04:27:25] |
User556806 - Posts: 14 |
Thank you Acro. Do you mean adding this line? I couldn't find this code (sc.GetChartName()) in the ACSIL file. |
[2024-10-07 09:47:15] |
Acro - Posts: 441 |
You have to add in two inputs (prefixchars and suffixchars) and then you need to build in the following type of code blocks "SCString Chart1Name = sc.GetChartName(sc.ChartNumber); int PrefixChars = Input_PrefixChars.GetInt(); int SuffixChars = Input_SuffixChars.GetInt(); if (PrefixChars > 0 && PrefixChars < Chart1Name.GetLength()) { Chart1Name = Chart1Name.Right(Chart1Name.GetLength() - PrefixChars); } if (SuffixChars > 0 && SuffixChars < Chart1Name.GetLength()) { Chart1Name = Chart1Name.Left(-SuffixChars); }" Cursor.ai is quite a nice coding app as it helps you with suggestions and tidying things up. Hope this helps you |
To post a message in this thread, you need to log in with your Sierra Chart account: