Login Page - Create Account

Support Board


Date/Time: Sun, 16 Mar 2025 20:23:21 +0000



Exportable chart annotations

View Count: 642

[2022-07-12 12:52:23]
Fanch - Posts: 19
Hi,

I have been looking around the forum and docs, I can't seem to figure out how to do this:
- Let's assume I have a study where 2 lines cross in a very particular way,
- I want to be able to manually draw an annotation on that study, let's say a vertical line for instance
- Then when I do "Export Bar and Study data", I want a column that takes a boolean value to identify the timestamps at which I have drawn such lines
- Ideally, I would want to be able to use a Buy and a Sell type of annotation (maybe a green vertical line for buy, and a red one for sell)
- The idea is to facilitate the creation of ground truth data to validate new strategies.

Thank you,
F
[2022-07-12 16:30:17]
John - SC Support - Posts: 38678
Given what you are stating, we would recommend using the Horizontal Line at Time study, which will allow you to place a marker at a specific time period. You can then set the time period to cover whatever range of time you want to call out.

Additionally, you can use the High or Low of the bar as the reference price so you can then correlate whether it was a Buy or Sell by the position relative to the bar.

Also, you can change the Draw Style in order to see the information on the screen better, such as using Up/Down arrows.

The information for those studies would then be present in the exported data which you can then use as you need.

Refer to the information for the study here:
Horizontal Line at Time
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-07-12 21:27:58]
Fanch - Posts: 19
Thank you for your help!

After playing a bi with this study, I think it solves the problem well for a single annotation, but if I want to annotate 1000 bars then I would have to add 1000 studies and tweak the start and stop time for each to match that of the annotated bars, which would make the process quite slow and labor-intensive.

I looked into a few open-source time series annotation tools (Label Studio, trainset) but so far haven't found one that handles multivariate data properly. Will keep looking and report back for the good of the community if I find one.

Thanks again for your help,
F
[2022-07-12 21:40:51]
John - SC Support - Posts: 38678
If you are talking about 1000's of data points, then you would really need to create an ACSIL study to do this, so you can just store the information in a Subgraph array. Particularly if the markers are correlated to specific bars. Refer to the information starting here:
Advanced Custom Study Interface and Language (ACSIL): Introduction
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-07-13 05:57:35]
Fanch - Posts: 19
I just finished implementing an ACSIL study that exposes a contextual menu with all the annotation actions I need.
This relies on the capture of menu events, works like a charm!
Thanks for your guidance, that was very useful and I learned a new part of the ACSIL API in the process ;)

F
[2022-08-25 03:51:33]
user_xyz - Posts: 453
I just finished implementing an ACSIL study that exposes a contextual menu with all the annotation actions I need


Did you just harvest an existing study to implement this, if so which one?

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

Login

Login Page - Create Account