Can I add a number to change a variable name?

 
Sorry. I'm not sure how to articulate this. Can I add a number to a variable?

So if I have a variable named double Wave1. How could I add a number to that to rename and create a new variable named double wave2?
 
dasilvja: Sorry. I'm not sure how to articulate this. Can I add a number to a variable? So if I have a variable named double Wave1. How could I add a number to that to rename and create a new variable named double wave2?

MQL is a compiled language, not an interpreted language, so you cannot change the names of variables during runtime.

You will have to use another mechanism to achieve your goals.

Describe your issue and what you want to achieve and we can try to help you out.

However, I suggest you first dedicate some time to properly learning the MQL coding language properly before attempting to code anything!

 
dasilvja: So if I have a variable named double Wave1. How could I add a number to that to rename and create a new variable named double wave2?

Use an array, Wave[1], wave[2].