Closed mrhoga closed 1 year ago
For custom classes, using pointers to manage them in a collection. For example, use Vector<CSignal*> type:
Vector<CSignal*> _signals = new Vector<CSignal*>();
...
CSignal * signal = new CSignal(TimeCurrent(), "This is a message", clrBlue);
_signals.add(signal);
Hi,
having little experience with MQL, I'm having difficulty using the collection classes with custom classes. I'm trying to store custom class instances in a Vector without success. This is one of the many variants I have tried so far:
This gives me a bunch of errors:
I also tried
but also without success.
I'm stuck and any help is greatly appreciated.