Login Page - Create Account

Support Board


Date/Time: Wed, 22 Jan 2025 15:05:10 +0000



Custom Program connect to Sierrachart to read the chart values

View Count: 1043

[2018-10-04 17:18:58]
Thomson - Posts: 3
Hi,

I developed a Java program which can connect to SierraChart to obtain real time tick data by using DTC successfully.
Is there any way for my Java program to read the chart values of a custom indicator (dll) in a chartbook?

Thank you for your help.
Date Time Of Last Edit: 2018-10-05 01:46:50
[2018-10-05 05:18:57]
Sierra Chart Engineering - Posts: 104368
You would not read that data from a Chartbook but you would access that custom study data using ACSIL and then find some way to communicate it to your Java program. Perhaps by a local network socket or by writing the data to a file.


For further information, refer to:
ACSIL Programming Concepts: Using or Referencing Study/Indicator Data in an ACSIL Function
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: 2018-10-05 05:20:51
[2018-10-08 16:35:19]
Thomson - Posts: 3
Thank you for your suggestion.

Recently, I found another workaround solution. After I set an alert for my own indicator, the DTC server can send Log message (701) to my Java program as below:

<INFO|09:18:09.510> {"Type":701,"MessageText":"Alert - Chart: HSV18 [C] [M] 50 Range #2 | Study: MY Arrow | Formula: = OR (SG5 >= 1, SG6 >= 1, SG7 >= 1, SG8 >= 1, SG9 >= 1, SG10 >= 1, SG11 >= 1, SG12 >= 1, SG13 >= 1, is TRUE. | Last Price: 26746 | Bar start date-time: 2018-10-08 09:16:17 | Alert: AlertSound (1)","TradeAccount":""} [com.dtc.service.DTCMarketDataService::receiveDTCMessage]

This seems to be a good news to me as my program finally can get the indicator signal. However, the log message has a big delay (alert at 9:16:17 but the log message sent at 9:18:09)

My question is whether this log message latency could be shorten? i.e. once alert and the log message will be sent.

Thank you!
[2018-10-09 19:32:09]
Sierra Chart Engineering - Posts: 104368
When an alert message goes out over the DTC server it will be at the exact same time it is added to Window >> Alerts Manager >> Alerts Log.
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

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

Login

Login Page - Create Account