Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 21:20:05 +0000



ACSIL Message String Help

View Count: 59

[2024-04-25 11:19:56]
User92573 - Posts: 483
Hi Support Board,

Any chance of some help with the following?

const char* TEMP = sc.Symbol.GetChars();
SCString SYM_CONVERT;
  
if(TEMP == "F.US.ENQM24")
{
  SYM_CONVERT = "NQ";
}
else if(TEMP == "F.US.MNQM24")
{
  SYM_CONVERT = "MNQ";  
}  
else
{
  SYM_CONVERT = "";    
}

SCString msg;

// Full and TEMP display the Symbol as expected but Short does not?
msg.Format("Full Symbol = %s, Short = %s, TEMP = %s",sc.Symbol.GetChars(),SYM_CONVERT,TEMP);
sc.AddMessageToLog(msg,1);

Any help appreciated.

Many thanks.
Date Time Of Last Edit: 2024-04-25 11:53:34
[2024-04-25 12:25:29]
emmanuel - Posts: 31
msg.Format("Full Symbol = %s, Short = %s, TEMP = %s",sc.Symbol.GetChars(),SYM_CONVERT.GetChars(),TEMP);

[2024-04-25 13:00:16]
User92573 - Posts: 483
emmanuel, thank you. I had just noticed my error about 15 minutes ago.
What a silly error but thank you again for replying.

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

Login

Login Page - Create Account