Indicator variables limit

All posts which do not fit into any other sections of the forum.

Moderator: admin

Indicator variables limit

Postby Scrat_Power » Sat Jun 02, 2018 5:56 am

Hi all,

I am developping a big indicator (about 5000 lines of code) and i am using a lot of variables.
I discovered the limit of 60 main variables, so i am using table variables ( Tab = {}; ) to create sub variables.
My question is : Is there also a limit of variables in a table and is there a global limit of variables in an indicator ?

Scrat.
User avatar
Scrat_Power
 
Posts: 26
Joined: Tue Aug 21, 2012 2:56 pm

Re: Indicator variables limit

Postby Apprentice » Thu Jun 07, 2018 8:33 am

I think I read somewhere that the limit is 200.
I'm not sure if this is the case here.

I have a workaround for you, which I often use.

Code: Select all
Function1()
Var1
...
Var60
end
....

FunctionN()

end

function Prepare(nameOnly)

Function1()
....
FunctionN()
end
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Indicator variables limit

Postby Scrat_Power » Thu Jun 07, 2018 7:07 pm

Thanks Apprentice,

It is a good idea, i will use it :)

Thanks again,
Scrat.
User avatar
Scrat_Power
 
Posts: 26
Joined: Tue Aug 21, 2012 2:56 pm


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 4 guests