Support Board
Date/Time: Sun, 24 Nov 2024 06:58:43 +0000
Log text and/or Variables to output
View Count: 1768
[2020-11-11 15:55:46] |
tarik medjber - Posts: 13 |
Hi, c++ has a function printf() which prints text or variables to a log somewhere. Where is the log on Sierra chart, I just want to keep track of some variables and other things as the code is running. Is this the right way to do it, or is there something else? e.g. if a candle makes a higher high, I want to print "Made new higher high" or something. Thanks!
|
[2020-11-11 16:44:32] |
John - SC Support - Posts: 36238 |
Refer to the following ACSIL function to add messages to the Message Log: sc.AddMessageToLog() For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2020-11-12 12:04:13] |
tarik medjber - Posts: 13 |
Thanks for that! I see the log now. However, I think it may because i'm using historical data and not live data but I'm only seeing the log once, how do I see it on every calculation of the study ie/ every tick or candle close (depending on when the study is calculated)?
|
[2020-11-12 12:07:37] |
tarik medjber - Posts: 13 |
Ahh, I think its to do with the second arg int. I'll look into it more.
|
[2024-04-02 22:18:52] |
roofishigh - Posts: 4 |
Hi, is it possible to set the text or background color for each message with this function ?
|
[2024-04-03 02:21:16] |
Sierra_Chart Engineering - Posts: 17154 |
No.
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 |
To post a message in this thread, you need to log in with your Sierra Chart account: