It seems every time i reference a library in an expert advisor or indicator, inputs
are no longer shown for edit when putting it on the chart. And yes, i use #property
show_inputs . You guys know why ?
- Lists of Objects Applied - Additional Features - Price Charts, Technical and Fundamental Analysis
- Expert Advisors and Custom Indicators - Algorithmic Trading, Trading Robots
- Working with Projects - Projects and MQL5 Storage
#property show_inputs used for scripts only.
See our documentation https://docs.mql4.com/runtime/start/ " The start() function will not be run when the expert properties window is
open. The latter cannot be opened during the expert execution."
Actually what I meant was that the properties window appear when I put the expert or indicator on the chart, but there is NO "INPUTS" TAB in the properties window. ..and that happens only when I include a library.
I see. Use extern variables. See https://docs.mql4.com/basis/variables/extern
No Stringo. Of course I use extern. But only when I include the library , for example
with #include , the Inputs tab disappears from expert properties window. Now, there
is something I'm probably mixing up. When for example I start a library, the wizard
does not put there #property library. So I put it manually, otherwise I get errors
like 'Function is not referenced and will be removed from exp file' (of course
some functions are not used by the library itself, they are only meant for the
programs, and I need them to be there, not removed). After the first compile, I
move the .mq4 library from the 'libraries' folder and I put it in the 'include'
folder where MetaTrader usually stores .mqh files. And when I include the library
with #include in my EA , indicator or script, the Input tab is missing from expert
properties window... Can you clarify this for me?
YES this is very annoying bug!
The Input window disapear everytime you use #include functoin.
1- It was working before the MT last update.
2- I tried to place the #include before ad after the extern variables but not avail.
Can you clarify this for us?
The Input window disapear everytime you use #include functoin.
1- It was working before the MT last update.
2- I tried to place the #include before ad after the extern variables but not avail.
Can you clarify this for us?
and I don't know how did you get that!
Is it last build of MetaTrader 4 ?
Well, I knew where was the error. When I used the line:
#property library
in my include file it prevent the input window and when I removed it the window came.
#property library
in my include file it prevent the input window and when I removed it the window came.
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