Initialize Variables with a number in front

Questions about MultiCharts and user contributed studies.
User avatar
joebone
Posts: 175
Joined: 05 Sep 2018
Has thanked: 53 times
Been thanked: 4 times

Initialize Variables with a number in front

Postby joebone » 18 Mar 2023

Hello,
I randomly went to initialize a variable with a 1_ in front of it... Like this...

Code: Select all

Var: 1_My_variable(0);
This looks like a different color than normal? what's happening here?

ScottishSpeculator
Posts: 47
Joined: 03 Jan 2023
Been thanked: 3 times

Re: Initialize Variables with a number in front

Postby ScottishSpeculator » 18 Mar 2023

joebone

I believe error is probably “Invalid variable name.”?
The PowerEditor displays this error whenever it finds an invalid name in a variable declaration statement. Variable names cannot start with a number or any special character other than the underline _

just use one_My_variable

Also if your interested I am trying to set up a telegram group/ maybe discord in which people new to MC can share strategy code or come together to upvote ideas and get them build by professional for super cheap per person. See below seems you new and could be interested.

https://t.me/+h8iTLItDWGAxNGY0


Return to “MultiCharts”