Tutte le domande dei nuovi arrivati su MQL4 e MQL5, aiuto e discussione su algoritmi e codici - pagina 1543
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
Ciao, puoi spiegare a un babbeo come inizializzare un array di strutture? Per un array normale, è semplice
int HiddenFunc[3,2] = {1,2,3,4,5,6};
Ma che dire della serie di strutture? Inizializzare un array con questa struttura, per esempio
struct MODE_KEY {stringa Key; bool Act;};
proprio come le classi:
https://www.mql5.com/ru/docs/basis/types/classes
o array)
Salve.
test dei gufi. (il codice è allegato qui sotto).
owl usa una martingala basata sulla storia degli ordini precedenti (se in perdita, allora moltiplica il lotto per il coefficiente martin...).
l'ordine precedente è stato chiuso da uno stop con ad esempio 0,2 lotti a (Martin = 2...). poi spengo "auto-trading" nel terminale MT4, o spengo completamente il terminale e il gufo smette di fare trading.
Poi quando accendo il pulsante "auto-trading" - Poi il gufo si accende e apre il lotto successivo con un volume di 0,4.
Quindi, come correggere il codice, in modo che quando si disattiva "auto-trading", si spegne il terminale e poi lo si accende, il gufo inizia la prossima sessione di trading con il lotto di partenza,
specificato nelle impostazioni (ad esempio 0,01) invece di moltiplicare l'ultimo chiuso nella cronologia?
Salve.
test dei gufi. (il codice è allegato qui sotto).
owl usa una martingala basata sulla storia degli ordini precedenti (se in perdita, allora moltiplica il lotto per il coefficiente martin...).
l'ordine precedente è stato chiuso da uno stop con ad esempio 0,2 lotti a (martin =2...) poi spengo "auto-trading" nel terminale MT4 o spengo completamente il terminale e il gufo smette di fare trading.
Poi quando accendo il pulsante "auto-trading" - Poi il gufo si accende e apre il lotto successivo con un volume di 0,4.
Quindi, come correggere il codice, in modo che quando si disattiva "auto-trading", si spegne il terminale e poi lo si accende, il gufo inizia la prossima sessione di trading con il lotto di partenza,
specificato nelle impostazioni (ad esempio 0,01) invece di moltiplicare l'ultimo chiuso nella cronologia?
Si crea una variabile globale
e poi se non ci sono ordini aperti/chiusi dopo "Inizia"
Si crea una variabile globale
e poi se non ci sono ordini aperti/chiusi più tardi "Inizia".
Grazie.
Ho già un datetime OpenTime; - dovrebbe essere sostituito condatetime Start o in aggiunta?
"Se non ci sono ordini aperti/chiusi dopo "Start "Lots=Lot; " - non è affatto chiaro cosa farne?
Grazie.
Ho già datetime OpenTime; - dovrebbe essere sostituito condatetime Start o in aggiunta?
"e poi se non ci sono ordini aperti/chiusi più tardi "Start "Lots=Lot; " - non è affatto chiaro a cosa fare riferimento?
Descrivi in poche parole cosa vuoi da questo EA (la logica del suo lavoro),
Penso che tu abbia molte cose inutili nel tuo codice o che io non capisca qualcosa.
Buon pomeriggio. Aiuto con l'EA. Secondo la strategia, se uno stop è scattato, allora l'EA dovrebbe aggiungere (il numero di punti) al prossimo set takeaway
dalla storia per ID, ma non lo fa per qualche motivo.
Cosa c'è di sbagliato nel codice?
Buon pomeriggio. Aiuto con l'EA. Secondo la strategia, se uno stop è scattato, allora l'EA dovrebbe aggiungere (il numero di punti) al prossimo set takeaway
dalla storia per ID, ma non lo fa per qualche motivo.
Cosa c'è di sbagliato nel codice?