Support Board
Date/Time: Sat, 08 Feb 2025 13:47:38 +0000
[Programming Help] - Display on chart
View Count: 786
[2020-06-25 06:30:22] |
gfx2trade - Posts: 48 |
Hi, Is there a fonction to display on chart data from a study. I would like to display my own statistics data. Thks. |
[2020-06-25 07:16:12] |
Sierra_Chart Engineering - Posts: 18338 |
If you are referring to a table type of view that there is with Numbers Bars Calculated Values, that is planned but not yet available. But you can certainly create your own custom table. Documentation is on this page: ACSIL Interface Members - sc.Subgraph Array: Numeric Information Table Graph Draw Type 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 |
[2020-06-30 09:45:12] |
gfx2trade - Posts: 48 |
I was more thinking something like the study 'Trading. Profilt/Loss' Thks |
[2020-07-01 07:11:07] |
|
Depending on the data that you have, you can always import the data as a chart and then use the Text Display for Study From Chart study to display the information. Refer to the information here regarding importing data: Exporting and Importing Intraday Data Files: Import and Load Refer to the information here for the Text Display for Study from Chart: Text Display For Study 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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2020-07-01 17:02:32] |
gfx2trade - Posts: 48 |
Sorry, but the context here is a custom study. I would like to display on the Chart Windows valeurs calculated inside the cpp file
|
[2020-07-02 08:17:25] |
|
From within a custom study you would use the sc.Subgraph array to hold the data and then choose how to display it. Refer to the information here: ACSIL Interface Members - sc.Subgraph Array Also refer to: ACSIL Interface Members - Variables and Arrays: sc.IsCustomChart 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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2020-07-02 08:19:02
|
[2020-07-08 14:33:43] |
gfx2trade - Posts: 48 |
I could succeed with the code below. Posting so that it can help in the futur. Question though... changing the FontFace property doesn't work. Thks for helping myTool.FontFace = "ARIAL";
int iUseTool(SCStudyInterfaceRef sc, SCString myText, int myTextIndex){
s_UseTool myTool; myTool.ChartNumber = sc.ChartNumber; myTool.Region = sc.GraphRegion; myTool.Clear(); // Reset tool structure. Good practice but unnecessary in this case. myTool.UseRelativeVerticalValues = 1; myTool.Text = myText; myTool.LineNumber = myTextIndex ; myTool.DrawingType = DRAWING_STATIONARY_TEXT; myTool.TextAlignment = DT_CENTER; myTool.FontFace = "ARIAL"; myTool.FontSize = 10; myTool.FontBold = true; myTool.BeginDateTime = 25; myTool.BeginValue = 90; myTool.Color = RGB(255,255,255); myTool.AddMethod = UTAM_ADD_OR_ADJUST; sc.UseTool(myTool); } |
To post a message in this thread, you need to log in with your Sierra Chart account: