Download MetaTrader 5

How to directly access filter0

To add comments, please log in or register
Do you keep a blog? Place a link to there and make money!
Viktor Placek
Viktor Placek 2015.10.16 09:45 


  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:

void OnTick()
   ExtExpert.m_signal.m_filters.m_data[0].myVariable = rand();

But it is not obviously possible as "m_" variables are of protected type.

To add comments, please log in or register