Can't be done. Input class variables are for the terminal.
In OnInit, create your class via new and pass your variables to its constructor.
In OnDeinit, delete the class.
Can't be done. Input class variables are for the terminal.
In OnInit, create your class via new and pass your variables to its constructor.
In OnDeinit, delete the class.
Thanks for the answer. What I understood is that I have to declare how many input variables as I want in a global scope, and it can't be done inside a class constructor or any member functions so the input variable would be automatically declared when instantiating an object of that class?
Thanks for the answer. What I understood is that I have to declare how many input variables as I want in a global scope, and it can't be done inside a class constructor or any member functions so the input variable would be automatically declared when instantiating an object of that class?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello everyone
I want to write a class witch in its constructor I want to have inputs, I can't simply write:
private:
input int period;
that throws an error and also when trying to use a setter in the class constructor I can't use input either.
anyone got any idea?