The input storage class defines the external variable.
Input Variables - Variables - Language Basics - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Input Variables - Variables - Language Basics - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
External also means global. Don't mix name spaces with inputs.

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
In the mq5 file I do the following:
This works fine, in the EA settings window the input appears and in the logs we see "Magic: 1".
But as soon as I include a second file in this way without changing OnInit the output changes:
Output: "Magic: 2".
Why does this happen when I have specified namespace A::?