Библиотеки: Virtual - страница 5

 
void OnTickMulti( const string &Symb, const int &Index ) {
    _VSP(virtualEnvAry[Index]); // Choose a virtual trading environment
    MqlTick ticks[1];
    if (SymbolInfoTick(Symb, ticks[0])) break;
    VIRTUAL::NewTickMulti(ticks, hedge.MyOnTick);
}

// void Hedge::MyOnTick(const string &Symb_, const int &Index_)

May I ask the author why it cannot be compiled here?

error: pointer to this function type is not supported yet

 
void OnTickMulti( const string &Symb, const int &Index ) {
    _VSP(virtualEnvAry[Index]); // Choose a virtual trading environment
    MqlTick ticks[1];
    if (SymbolInfoTick(Symb, ticks[0])) break;
    VIRTUAL::NewTickMulti(ticks);
    hedge.MyOnTick(Symb, index);
}

Should it be used this way?

 
hini #:

Thread.

Библиотеки: Virtual
Библиотеки: Virtual
  • 2024.06.26
  • fxsaber
  • www.mql5.com
Статьи и техническая библиотека по автоматическому трейдингу: Библиотеки: Virtual