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
Grazie mille Marco per l'aiuto, per qualche motivo funziona
Ho configurato il tempo nel formato D', poi ho visualizzato questa informazione come un avviso, che si può vedere corrisponde ai tempi della freccia però
la V-Line è ancora creata sulla candela corrente .. vedi schermata
Questo è il codice che ho usato
Ecco un argomento correlato:https://www.mql5.com/en/forum/233876
Io ho già delle linee di v sul grafico da quando conosco lo spostamento, nell'argomento del link hanno disegnato le linee di v usando lo spostamento
Nei miei post precedenti ho accennato al fatto che perdo le v-lines che ho creato quando il VPS si riavvia o durante i fine settimana o a volte quando si riavvia MT4, quindi salvo le date delle v-lines nel tentativo di ricrearle in seguito se sono state perse.
Sembra che MT4 non abbia la capacità di creare linee v da date di testo o nessuno ha ancora capito come si fa
Nei miei post precedenti ho menzionato che perdo le linee v che ho creato quando il VPS si riavvia o durante i fine settimana o a volte quando si riavvia MT4, quindi salvo le date delle linee v nel tentativo di ricrearle in seguito se sono state perse.
Se hai salvato le date come :
Qui per ricreare le linee v non è necessario dividere le cifre dei secondi daTimeExit_SymSymbol...il lavoro è fatto daObjectCreate() stesso, perché non prende in considerazione i secondi.
Potete semplificare i vostri codici con:
Beh, ho provato rapidamente uno script e questo certamente traccia la linea del futuro.
Beh, ho provato rapidamente uno script e questo certamente traccia la linea del futuro.
Caro Marco,
Stai usando lo spostamento relativo alla barra corrente, che è lo stesso metodo che ho usato per creare le V-Line per i miei grafici, tuttavia il problema è creare la V-Line senza conoscere lo spostamento e senza fare riferimento all'ora/barra corrente, il problema è creare le V-Line conoscendo SOLO l'ora/data
Dato che perdo le V-Lines a volte quando il VPS si riavvia e altre volte durante il fine settimana, ecco perché l'unica opzione che ho trovato è quella di salvare l'ora/data delle linee sul grafico e poi provare a ricrearle di nuovo, salvando lo spostamento non aiuta molto con l'avanzamento delle barre e inoltre ci sono le barre del fine settimana.
secondo MT4 (https://www.mql5.com/en/docs/objects/objectcreate) la V-Line può essere creata usando solo la data/ora... vorrei vedere come si fa dato che non l'ho visto da nessuna parte e mi sono stancato senza fortuna
Finalmente ho capito come si fa
ecco il codice se qualcuno volesse mai disegnare la V-Line usando solo l'ora e la data
Finalmente ho capito come si fa
Ecco il codice se qualcuno volesse mai disegnare V-Line usando solo il tempo/data
Se hai guardato i miei post precedenti vedrai che ho provato a rimuovere i secondi, ma non ha funzionato, tuttavia dopo la conversione il codice ha funzionato, non so cosa fosse sbagliato,
Mi piace la tua versione del codice, è semplice, elegante e funziona bene, grazie