Login Page - Create Account

Support Board


Date/Time: Fri, 22 Nov 2024 22:01:31 +0000



Post From: Watermark with chart time frame

[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