MT5 e la velocità in azione - pagina 42

 
fxsaber:

Grazie per le informazioni. In Benchmark.mqh devi decommentare la linea superiore e invertire la linea inferiore. In modo che sia così.

Allora la misurazione funzionerà. Ora c'è una protezione, che se "freni" sono rilevati, quindi non misurare.

2020.10.05 18:51:57.431 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 31 mсs.
2020.10.05 18:51:58.522 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 19 mсs.
2020.10.05 18:51:59.451 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 18 mсs.
2020.10.05 18:52:00.363 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 13 mсs.
2020.10.05 18:52:01.357 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 18 mсs.
2020.10.05 18:52:02.365 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 19 mсs.
2020.10.05 18:52:03.380 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 18 mсs.
2020.10.05 18:52:04.360 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 18 mсs.
2020.10.05 18:52:05.368 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 18 mсs.
2020.10.05 18:52:06.357 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 13 mсs.
2020.10.05 18:52:07.353 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 21 mсs.
2020.10.05 18:52:08.362 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 18 mсs.
2020.10.05 18:52:09.353 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 12 mсs.
2020.10.05 18:52:10.363 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 13 mсs.
2020.10.05 18:52:11.361 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 13 mсs.
2020.10.05 18:52:12.359 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 12 mсs.
2020.10.05 18:52:13.366 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 19 mсs.
2020.10.05 18:52:14.378 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 13 mсs.
2020.10.05 18:52:15.457 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 14 mсs.
2020.10.05 18:52:16.465 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 20 mсs.
2020.10.05 18:52:17.357 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 29 mсs.
2020.10.05 18:52:18.363 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 13 mсs.
2020.10.05 18:52:19.357 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 18 mсs.
2020.10.05 18:52:20.373 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 90 mсs.
2020.10.05 18:52:21.363 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 15 mсs.
2020.10.05 18:52:22.370 Test VPS (EURUSD,H1)    Alert: Time[Test VPS.mq5 7 in OnTimer: GetMicrosecondCount()] = 12 mсs.

Alertilo, finché non è stato interrotto.

Il VPS è il più economico, con un TP minimo. 2,99 dollari al mese.

 
Un timer a microsecondi ha sia un errore di sistema che un costo che dipende dall'hardware, dal sistema operativo e dalla virtualizzazione.

Non ha una precisione di 1 microsecondo in realtà.

Abbiamo specificamente evidenziato i costi e i freni dei vpsp classici negli articoli sul nostro servizio vps.

Pensate all'overselling delle risorse dei server PPS quando l'ISP affetta al massimo 20 sistemi Windows su un host.

Ci sono davvero l'80% delle risorse della CPU che vanno in overhead di sistema e ritardi impliciti.
 
Renat Fatkhullin:
Un timer a microsecondi ha sia un errore di sistema che un costo, a seconda dell'hardware, del sistema operativo e della virtualizzazione.


Che è quello che ho scritto prima in questo thread, che non ci sono freni su Linux.
O almeno sono molto minimi e non si notano.
Ma per qualche motivo i miei post sono stati cancellati. È un po' strano.

 
Edgar Akhmadeev:

Alertilo, finché non è stato interrotto.

Il VPS è il più economico, con il TP più basso. 2,99 dollari al mese.

Tuttavia, è un caso difficile. La meccanica delle istantanee può essere usata solo in modo bypassato su tali macchine.

 

Per favore, prendete le stesse misure lì.

 

Ho notato la seguente cosa, quando si seleziona il server con il ping più basso sul vostro servizio,
non offre mai il server più vicino, sempre dietro l'angolo.
Anche se le misure di ping precedenti ad altri server, so per certo che la mappa ha mostrato il tuo pps in quella zona è molto più vicino.
O è possibile selezionare manualmente il fornitore?

 
fxsaber:

Tuttavia, questo è un caso difficile. La meccanica delle istantanee può essere usata solo per bypassare su tali macchine.

Naturalmente. Per 3 dollari non c'è niente da aspettare. Tale opzione è solo per EA ben ottimizzati, senza calcoli pesanti e indicatori, con un piccolo numero di posizioni aperte (finora ho 6-8 posizioni su ciascuno dei 4 terminali), con un uso minimo di funzioni di accesso al server e alla storia, non HF trading (holding time - decine di ore o giorni). Per me è sufficiente. La prima volta con 12 terminali e codice non ottimizzato ho dovuto spendere 50 dollari per lo stesso VPS.

 
Roman:

Ho notato la seguente cosa, quando si seleziona il server con il ping più basso sul vostro servizio,
non offre mai il server più vicino, sempre dietro l'angolo.
Anche se le misure di ping precedenti ad altri server, so per certo che la mappa ha mostrato il tuo pps in quella zona è molto più vicino.
O è possibile selezionare manualmente il fornitore?

Specificare il nome del server del broker, per favore

 
fxsaber:

Per favore, fate le stesse misure lì.

Ho scaricato i vostri script di riferimento + esempio.

  1. Sul computer locale - niente per 10 minuti
    Benchmark.mqh: TimeAvg[GetMicrosecondsCount()] = 0 mcs.
    

  2. Su un host VPS virtualizzato molto carico con più terminali in 8 minuti
    Windows Server 2016 build 14393 on Hyper-V, Intel Xeon  E5-2670 v2 @ 2.50 GHz, 40 / 63 Gb memory, 40 / 95 Gb disk, IE 11, RDP, Admin, GMT+1
    
    2020.10.05 20:59:21.344	5555 (EURUSD,H1)	Benchmark.mqh: TimeAvg[GetMicrosecondsCount()] = 0 mcs.
    2020.10.05 21:00:09.343	5555 (EURUSD,H1)	Alert: Time[5555.mq5 7 in OnTimer: GetMicrosecondCount()] = 2 mсs.
    2020.10.05 21:07:22.336	5555 (EURUSD,H1)	Alert: Time[5555.mq5 7 in OnTimer: GetMicrosecondCount()] = 3 mсs
    

  3. Su un host VPS fisico con più terminali in 8 minuti
    Windows Server 2016 build 14393, Intel Xeon  E5-2430 0 @ 2.20 GHz, 33 / 47 Gb memory, 186 / 231 Gb disk, IE 11, RDP, Admin, GMT+1
    
     2020.10.05 21:03:45.228	5555 (EURUSD,H1)	Benchmark.mqh: TimeAvg[GetMicrosecondsCount()] = 0 mcs.
    


I test sono stati fatti su un terminale completo 2630, e i terminali VPS funzionanti sono molte volte meno consumatori di risorse e le loro latenze sono note per essere più basse.

Usiamo host sul posto di lavoro del nostro servizio VPS.

File:
5555.ex5  18 kb