Ti stai perdendo delle opportunità di trading:
- App di trading gratuite
- Oltre 8.000 segnali per il copy trading
- Notizie economiche per esplorare i mercati finanziari
Registrazione
Accedi
Accetti la politica del sito e le condizioni d’uso
Se non hai un account, registrati
Non so quale versione di MT4 stai usando, ma sulla v616 sul mio computer, WindowFind() restituisce -1 durante OnInit(). La documentazione ha sempre detto "WindowFind() restituisce -1 se l'indicatore personalizzato cerca se stesso quando la funzione init() funziona".
la mia versione è 610.
oh mio Dio... ogni aggiornamento sembra essere sempre più brutto e sempre più brutto... non migliora.
Avevo un indicatore FFcalendar.
Avevo riparato con la versione 604... e lavorando bene.
quando ho aggiornato a 610 ... e l'ho compilato di nuovo ... è diventato di nuovo errore ...
così mi arrendo... e compilato di nuovo con la versione 509... hahaha (perché la mia versione 604 è andato)
ops scusa... hai ragione su WindowsFind retun -1.
si vede solo quando dopo che ho allegato quell'indi... poi cambio TF... ma il risultato è ancora unico
So che questo post è MOLTO vecchio, ma ecco come risolvo il problema del nome unico dell'istanza. Uso una combinazione di GetTickCount() insieme alla memorizzazione globale della variabile terminale. Questo funziona anche attraverso i carichi di istanza.
E poi semplicemente lo chiamo in OnInit() come segue:
Finora, sembra funzionare correttamente.
Grazie mille. Questa funzione ha risolto un problema molto grande per me.
So che questo post è MOLTO vecchio, ma ecco come risolvo il problema del nome unico dell'istanza. Uso una combinazione di GetTickCount() insieme alla memorizzazione globale della variabile terminale. Questo funziona anche attraverso i carichi di istanza.
E poi semplicemente lo chiamo in OnInit() come segue:
Finora, sembra funzionare correttamente.