Support Board
Date/Time: Wed, 22 Jan 2025 10:07:02 +0000
Can ASCIL be used to display a warning/message box
View Count: 1136
[2018-09-21 17:25:54] |
User701453 - Posts: 176 |
Can ASCIL be used to display a warning/message box if a user selects an input value that would a violate a required rule? Like selected an input Yes/No option to use a stop loss, but dont enter the stop lost amount in another input field. Would like to be able to alert the user when the study recalculates a warning of a potential high risk result. |
[2018-09-21 19:45:36] |
Sierra Chart Engineering - Posts: 104368 |
You could to add a message to the Message Log and have it open: sc.AddMessageToLog() 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 |
[2018-09-21 19:57:20] |
User701453 - Posts: 176 |
Thanks that will get me started. Also, is it possible to remove the "C" from the open P&L format. Using the example code files, I`m able to display the open P&L on the chart. However the "C" on the end of it and I would like to remove that character. I didnt see anything in the documentation on how to do that. Perhaps I overlooked it. |
[2018-09-21 20:25:32] |
User701453 - Posts: 176 |
Never mind on the text format. I figured it out.. It might not be pretty, but it works.. SCString Text; SCString PLString; PositionProfitLossDisplayEnum ProfitLossDisplayFormat = (PositionProfitLossDisplayEnum)(0); sc.CreateProfitLossDisplayString(PositionData.OpenProfitLoss, PositionData.PositionQuantity, PPLD_CURRENCY_VALUE, PLString); Text.Format("Open P&L: $%s", PLString.GetChars()); Text = Text.Left(Text.GetLength() - 1); Date Time Of Last Edit: 2018-09-23 00:17:38
|
To post a message in this thread, you need to log in with your Sierra Chart account: