I have EA created by MQL5 EA Generator. I have my own custom signal of CExpertSignal class. I need to reinit one variable of the filter on every OnTick() event (generate a random number unique for every tick). But how to access filter variable (or its encapsulation function) directly from EA OnTick() function?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello,
I have EA created by MQL5 EA Generator. I have my own custom signal of CExpertSignal class. I need to reinit one variable of the filter on every OnTick() event (generate a random number unique for every tick). But how to access filter variable (or its encapsulation function) directly from EA OnTick() function?
I need something like:
But it is not obviously possible as "m_" variables are of protected type.