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
mladen & mrtools
Ho un EA che si fa esplodere con i trade. Ho bisogno di aiuto per costruire un Void o una funzione che può essere aggiunta a un EA esistente. Questa funzione ha bisogno di affrontare:
input bool doBasketExit = true; // Controlla le condizioni di Basket Exit
input double BasketTP = 250.0; // Basket Take Profit (valuta del conto) Il grafico Pair
input double BasketSL = -100.0; // Basket Stop Loss (valuta del conto) La coppia del grafico
Sto eseguendo 9 coppie/carte con un EA aggressivo su H1 e voglio che il trading del cesto sia specifico per la coppia su ognuno dei 9 grafici.
Ecco cosa mi è successo. 9 grafici in esecuzione, 3 grafici sono in commercio con, naturalmente, 3 coppie separate, ciascuno con 15 scambi, sì 45 scambi aperti, 2 sono in profitto e uno sta perdendo male. Ho cercato un modo per sommare ogni gruppo/coppia dei 15 separatamente e strofinare ogni gruppo contro un canestro SL & TP. Ho trovato un cesto impostato, ma ovviamente ha bisogno di essere perfezionato. Il trucco è quello di far sommare la stessa coppia dalla colonna Order Profit Trade. Stando su un grafico con una coppia specifica ho pensato di trovare un vuoto ma è un po' complicato. La funzione deve in qualche modo leggere l'OrderProfit per coppia?
Vedere il mio codice come un povero esempio;
void closeTrades( CURRENCY* ¤cies[] ) {
// Controlla l'uscita dal paniere
if ( doBasketExit ) {
double basketProfit = getBasketProfit();
if ( ( ( BasketTP > 0.0 ) && ( basketProfit > BasketTP ) ) ||
( BasketSL < 0.0 ) && ( basketProfit < BasketSL ) ) ) {
closeAll();
}
}
doppio getBasketProfit() {
double basketProfit = 0.0;
for (int iOrder=OrdersTotal()-1; iOrder >= 0; iOrder--) {
if (OrderSelect(iOrder,SELECT_BY_POS,M ODE_TRADES)) {
if ( OrderMagicNumber() == MagicNumber ) {
if ( (OrderType() == OP_BUY) || (OrderType() == OP_SELL) ) {
basketProfit += OrderProfit() + OrderSwap() + OrderCommission();
}
}
}
}
return(basketProfit);
}
void closeAll() {
double closePrice;
stringa symbolName;
int risultato;
for (int iOrder=OrdersTotal()-1; iOrder >= 0; iOrder--) {
if (OrderSelect(iOrder,SELECT_BY_POS,M ODE_TRADES)) {
if ( OrderMagicNumber() == MagicNumber ) {
if ( (OrderType() == OP_BUY) || (OrderType() == OP_SELL) ) {
symbolName = OrderSymbol();
closePrice = ( OrderType() == OP_BUY ) ? MarketInfo( symbolName, MODE_BID ) : MarketInfo( symbolName, MODE_ASK );
risultato = OrderCloseReliable(OrderTicket(), OrderLots(), closePrice, 50 );
}
}
Apprezzo molto che tu dia un'occhiata a questo
Grazie
Ray
Ray
Hai bisogno di una sorta di "EA madre" - che conosca tutti i numeri magici gestiti da altri EA e poi faccia le operazioni "sul gruppo" di cui hai bisogno
Prova a fare quanto segue:
Invece di
Ray
Hai bisogno di una sorta di "EA madre" - che conoscerebbe tutti i numeri magici gestiti da altri EA e poi fare le operazioni "sul gruppo" che hai bisogno di essere fatto
mladen
grazie per i vostri pensieri su questo argomento. Quindi NO.
grazie ancora
Ray
ho provato a far apparire la freccia dopo la chiusura della candela del segnale per evitare la riverniciatura, ma tutto senza risultato. TOOLS e MLADEN, di seguito il codice.
Ciao mladen
Ho bisogno dell'indicatore ITM X-Gen Daily Scalper.mq4
Heelp me
Grazie
Ciao mladen
Ho bisogno dell'indicatore ITM X-Gen Daily Scalper.mq4
Aiutami
Grazie
alozard
Quell'indicatore è un rinominato il mio indicatore delle bande TMA centrate. Puoi trovarlo qui: https: //www.mql5.com/en/forum/181241
Sig. Mladen, per favore guardi i codici qui sotto, la freccia non viene fuori dal vivo fino a quando non ho cambiato il time frame.
Mr. Mladen, per favore guardi i codici qui sotto, la freccia non viene fuori in diretta fino a quando non ho cambiato il time frame.
kapoo
Come ti ho già detto più volte: quell'indicatore è un cattivo riquadro ed è per questo che fa quello che fa. Il mio miglior consiglio è di lasciar perdere