Support Board
Date/Time: Mon, 21 Apr 2025 23:48:01 +0000
How to log variables to the message log window?
View Count: 107
[2025-02-18 17:58:04] |
LTSys - Posts: 68 |
I searched but cant find a way to log variables? This wont compile... int count = 1; AddMessageToLog("count = " + count ,0); TIA |
[2025-02-18 18:09:59] |
LTSys - Posts: 68 |
I was just handed an example of how to do it... SCString LogMessage; LogMessage.Format("Position: %f, AvgPrice: %f", PositionData.PositionQuantity, PositionData.AveragePrice); sc.AddMessageToLog(LogMessage, 0); Date Time Of Last Edit: 2025-02-18 18:10:41
|
To post a message in this thread, you need to log in with your Sierra Chart account: