Messagebox - timeframe

 
Hi,
I would like to put the message box, which shows the current symbol and current timefreme of the window. The messagebox shows the current symbol correct, but the timeframe is showed as a number zero. Could you tell me what I should change in the code bellow:

MessageBox("Alert"+" "+Symbol()+" "+MATimeframe, "Aler");

Best regards,
jajaceek
 
jajaceek:
Hi,
I would like to put the message box, which shows the current symbol and current timefreme of the window. The messagebox shows the current symbol correct, but the timeframe is showed as a number zero. Could you tell me what I should change in the code bellow:

MessageBox("Alert"+" "+Symbol()+" "+MATimeframe, "Aler");

Best regards,
jajaceek

Try this:

MessageBox("Alert"+" "+Symbol()+" "+Period());

 
farhang:

Try this:

MessageBox("Alert"+" "+Symbol()+" "+Period());


thanks a lot
j
Reason: