Errori, bug, domande - pagina 1927

 

Qual è il sacro significato di scambiare la variabile ma_shift e ma_method in MQL5?

//MQL5
int  iEnvelopes( 
   string              symbol,            // имя символа 
   ENUM_TIMEFRAMES     period,            // период 
   int                 ma_period,         // период для расчета средней линии 
   int                 ma_shift,          // смещение индикатора по горизонтали 
   ENUM_MA_METHOD      ma_method,         // тип сглаживания 
   ENUM_APPLIED_PRICE  applied_price,     // тип цены или handle 
   double              deviation          // отклонение границ от средней линии 
   );

//MQL4
double  iEnvelopes( 
   string       symbol,           // имя символа 
   int          timeframe,        // таймфрейм 
   int          ma_period,        // период 
   int          ma_method,        // метод усреднения 
   int          ma_shift,         // сдвиг средней 
   int          applied_price,    // тип цены 
   double       deviation,        // отклонение (в процентах) 
   int          mode,             // индекс линии 
   int          shift             // сдвиг 
   );
 

Come posso aumentare la cronologia dei tick nella finestra? Prima, quando c'era molta volatilità, c'erano più e meno tic, ma ora è come se fosse fisso.

 

Errore di compilazione

class A {};
void OnStart()
{
              A       *a;
        const A       *a1 = (const A       *)a; //нормально
              A const *a2 = (      A const *)a; //error: '*' - unexpected token
}
 

È uno scherzo?


 
Vladimir Pastushak:

È uno scherzo?

Essenzialmente sì, ma di fatto corrisponde alla documentazione

      case 2: return(PERIOD_M2);
      case 3: return(PERIOD_M3);
      case 4: return(PERIOD_M4);      
      case 6: return(PERIOD_M6);
      case 10: return(PERIOD_M10);
      case 12: return(PERIOD_M12);
      case 16385: return(PERIOD_H1);
      case 16386: return(PERIOD_H2);
      case 16387: return(PERIOD_H3);
      case 16388: return(PERIOD_H4);
      case 16390: return(PERIOD_H6);
      case 16392: return(PERIOD_H8);
      case 16396: return(PERIOD_H12);
      case 16408: return(PERIOD_D1);
      case 32769: return(PERIOD_W1);
      case 49153: return(PERIOD_MN1);      
 
Vitaly Muzichenko:

Essenzialmente sì, ma in realtà corrisponde alla documentazione


Divertente, mi chiedo perché metà è normale e metà no, grazie al cielo non sono geroglifici...

 
Vladimir Pastushak:

Divertente, mi chiedo perché metà sono normali e metà no, grazie al cielo non sono geroglifici...


Anche questo è stato interessante. C'è una formula nella risposta su come conta.

 
C'è un modo semplice per convertire un modello tpl con oggetti da MT4 a MT5? Sarebbe fantastico se MT5 potesse importare modelli quadrupli, ma apparentemente non è il caso - le proprietà degli oggetti sono diverse e non è molto conveniente modificare il file manualmente per scoprire cosa è cambiato e come.
 

MetaEditor non funziona Cerca nei file (Ctrl+Shift+F) per lettere russe insensibili alle maiuscole



 
A100:

MetaEditor non funziona Cerca nei file (Ctrl+Shift+F) per lettere russe senza maiuscole



Buon pomeriggio!

Grazie per il messaggio, lo sistemeremo.

Motivazione: