How can I have the name of the chart in an Alert?

 

Hello everyone!

Just a little question:

How can I have the name of the chart in an Alert?

Thanks

 

string message;

message = "Alert on " + Symbol()"

Alert(message);

 

Hi phy

think you for your help

But I badly expressed myself

I've got five charts and I give then a name

"chart_1.mq4"

"chart_2.mq4"

"chart_3.mq4"

"chart_4.mq4"

"chart_5.mq4"

So when a trade begining I'd like to see for exemple

Alert("open trade on the chart : " + chart_1.mq4);

thanks

 

Put a text label with your chart name on the chart.

Read the text label in your code and stuff it into the alert.

 

ok think you

I thought, there was a function.