Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 22:51:45 +0000



Post From: ACSIL Message String Help

[2024-04-25 11:19:56]
User92573 - Posts: 530
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