takrooni:
Hii
am working to build my expert and want Hide input variable in input tab window from users , while all variable parameter are active in background ?
thank you .
Make it a globalscope variable instead of an input.
Keith Watford:
How??Make it a globalscope variable instead of an input.
Please give some details,,
takrooni:
How??
How??
Please give some details,,
Documentation on MQL5: Language Basics / Variables / Visibility Scope and Lifetime of Variables
- www.mql5.com
A variable declared outside all functions is located into the global scope. Access to such variables can be done from anywhere in the program.These variables are located in the global pool of memory, so their lifetime coincides with the lifetime of the program. A variable declared inside a block (part of code enclosed in curly brackets) belongs...
takrooni:
Please don't contact me by PM to ask questions.
Ask them in the topic.
This is an input variable
input int MAperiod =21;//MA Period
This is a global scope variable
int MAperiod =21;//MA Period
as long as it is declared outside of any function.
So you simply remove "input" and it becomes global scope.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hii
am working to build my expert and want to Hide input tab window from users , while all variable parameter are active in hidden ?
thank you .