OrderComment with Symbol and Timeframe

 

Hi everyone,

how I add in my OrderComment the current Symbol and the Timeframe?

How I have to write this line?

 
Why do you want to write the Symbol in your OrderComment?. Each order already shows you which symbol it belongs to.  Regards.
 
string MyOrderComment()
{
   return OrderSymbol()+" "+EnumToString((ENUM_TIMEFRAMES)Period())+": "+OrderComment();
}
 
dundale:

Hi everyone,

how I add in my OrderComment the current Symbol and the Timeframe?

How I have to write this line?


You could print out an additional line.

Print(Symbol(),"+",EnumToString(ChartPeriod(0)));
 
thanks