[Archivio] Imparare a fare soldi abitanti del villaggio! - pagina 660

 
Roman.:


Capisco. Non ho intenzione di controllarlo ora nell'EA (ha persino la stessa funzione per nome) - basta sostituirlo (quello) con questo (il tuo)... Darò un'occhiata più tardi...

Scrivete in una riga i lotti approssimativi per gli ordini di mediazione per una data iniziale, per esempio 10.000 unità di valuta, cioè: 10.000 unità di valuta. 10.000 unità monetarie, cioè

0. volume di partenza = 0,01 lotto.

1° mercato di mediazione = 0,02 lotto.

3° mercato di mediazione = 0,03 lotto.

4° = 0,05 lotto.

5° = 0,09 lotto

6

7

8

9

E il prossimo ordine di mediazione dovrebbe essere piazzato dopo 900 secondi dall'apertura del precedente, se tutti i precedenti ordini di inizio e mediazione unidirezionali erano perdenti?

Non proprio, i miei ordini sono piazzati fino a quando c'è un segnale di conferma dall'indicatore, ma non più spesso di ogni 900 secondi (ho scelto a caso), non posso determinare quale sarà il lotto, non so dove il mercato mi porterà, se il profitto è più alto lotto, se la perdita è meno (non martingala per tirare gli ordini in perdita), il rapporto allegato mostra i lotti, c'è un casino
File:
 
BeerGod:
Non proprio, i miei ordini sono piazzati fino a quando c'è un segnale di conferma dall'indicatore, ma non più spesso di ogni 900 secondi (ho scelto a caso), non posso dire quale sarà il lotto, non so dove mi porterà il mercato, se sono in attivo, il lotto è più grande, se sono in negativo allora più piccolo (nessuna martingala per togliere gli ordini perdenti), il rapporto allegato mostra i lotti, è un casino

Capisco. Sciame andare avanti! :-)
 
Roman.:

Ha posto la domanda nel thread pertinente - vedi questo thread. Io non lo so, è stato molto tempo fa... :-)
Corretto per favore, X è una costante di valore di grado
 
new-rena:
Si prega di correggere, X è una costante di valore di grado

Corretto.
 
Roman.:

Fisso.

Bene, quando questa equazione sarà risolta, sarà pronta (probabilmente a pagina 666). Potete eseguirlo nel tester e fare una previsione dell'interesse annuale. Non ho parametri - voglio solo sapere il risultato.

Ho messo l'indicatore proprio nell'Expert Advisor. Cambierò solo [i-1]-->1

 
new-rena:
Quando risolveremo questa equazione, saremo pronti. Possiamo eseguirlo nel tester e fare una previsione per interesse annuale. Nessun parametro - solo un risultato interessante


Anche io sto lavorando su diverse varianti, in particolare sto cercando di determinare il passo di max. no-backup per script cazzone per max. profondità della storia...

Il mio punto è che se prendiamo il range m/o max e min per un certo periodo di tempo, non sarebbe una sovrassicurazione... e, di conseguenza, una diminuzione del profitto man mano che l'intervallo degli ordini di mediazione sarebbe aumentato rispetto al valore ottenuto dividendo i fallimenti massimi per il numero massimo possibile di ordini di mediazione...?

E ho verificato che se facciamo la media usando una progressione aritmetica, abbiamo bisogno di un rollback più difficile per aprire gli ordini che, per esempio, se raddoppiamo l'ordine precedente... Ho un tale progetto - lo vedo nel tester e nell'ottimizzatore usando simboli diversi:

Tre tipi di mediazione:

 
Roman.:


Sto provando anche diverse varianti, in particolare la determinazione del passo per max. non ritorno secondo lo script di dickfx per max. profondità della storia...

Il mio punto è che se prendiamo il range m/o max e min per un certo periodo di tempo, non sarebbe una sovrassicurazione... e, di conseguenza, una diminuzione del profitto man mano che l'intervallo degli ordini di mediazione sarebbe aumentato rispetto al valore ottenuto dividendo i fallimenti massimi per il numero massimo possibile di ordini di mediazione...?

E ho verificato che se facciamo la media usando una progressione aritmetica, abbiamo bisogno di un rollback più difficile per aprire gli ordini che, per esempio, se raddoppiamo l'ordine precedente... Ho un tale progetto - lo vedo nel tester e nell'ottimizzatore usando simboli diversi:

Tre tipi di mediazione:

Ebbene sì, la media aritmetica è il fatto della garanzia di uno scarico. Mi riferivo a quello in cui è stata osservata la PAMM.

Inoltre, quando si raddoppia, non è sicuro che ci siano abbastanza soldi. Quindi, una variante della mia formula per costruire la dimensione del lotto - una garanzia antiscivolo, secondo la storia

 
extern int Max_Iteration = 36;// Максимальное количество усреднений (ордеров) в нетто-илане 
extern int VAR_MM = 0; // используемый вариант усреднения в соотв-ии: множитель с числами ФИБО = 0 / множитель по арифметической прогрессии = 1
                      // 2 - классический мартин - удвоение предыдущего объема с 3-его усреднения   

 // Ордер закрылся с убытком - считаем количество усреднений, новый lots, усредняем цену открытия  в ТОМ ЖЕ направлении
            // при условии, что общее количество усреднений не выше максимального по соответствующему варианту усреднения                               
        
          if (Iteration <= Max_Iteration && VAR_MM == 0)                  
              // Последующие лоты открываются по множителю в соответствие с числами ФИБО           
               switch(Iteration)                                  // Заголовок switch 
                   {                                              // Начало тела switch                  
                     case 1 : Lots_New = lastLots * 1; lots = lastLots; Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );break; //расчет нового объема       
                     case 2 : Lots_New = lots * 2;    Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;   
                     case 3 : Lots_New = lots * 3;    Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;      
                     case 4 : Lots_New = lots * 5;    Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;  
                     case 5 : Lots_New = lots * 8;    Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;     
                     case 6 : Lots_New = lots * 13;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;      
                     case 7 : Lots_New = lots * 21;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;     
                     case 8 : Lots_New = lots * 34;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;         
                     case 9 : Lots_New = lots * 55;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;           
                     case 10: Lots_New = lots * 89;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break; 
                     case 11: Lots_New = lots * 144;  Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;               
                     case 12: Lots_New = lots * 233;  Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;               
                     case 13: Lots_New = lots * 377;  Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;               
                     case 14: Lots_New = lots * 610;  Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;  
                     case 15: Lots_New = lots * 987;  Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;               
                     case 16: Lots_New = lots * 1597; Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;                            
                     default: Lots_New = lots * 2584; Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );   
                   }                                    // Конец тела switch      
                    
           if (Iteration <= Max_Iteration && VAR_MM == 1)//Последующие лоты открываются в соответствие с членами арифметической прогрессии  
               switch(Iteration)                        // Заголовок switch 
                   {                                    // Начало тела switch    
                     case 1 : Lots_New = lastLots * 1; lots = lastLots; Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );break; //расчет нового объема            
                     case 2 : Lots_New = lots * 3;    Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;   
                     case 3 : Lots_New = lots * 5;    Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;      
                     case 4 : Lots_New = lots * 7;    Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;  
                     case 5 : Lots_New = lots * 9;    Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;     
                     case 6 : Lots_New = lots * 11;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;      
                     case 7 : Lots_New = lots * 13;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;     
                     case 8 : Lots_New = lots * 15;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;         
                     case 9 : Lots_New = lots * 17;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;           
                     case 10: Lots_New = lots * 19;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break; 
                     case 11: Lots_New = lots * 21;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;               
                     case 12: Lots_New = lots * 23;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;               
                     case 13: Lots_New = lots * 25;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;               
                     case 14: Lots_New = lots * 27;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;       
                     case 15: Lots_New = lots * 29;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;       
                     case 16: Lots_New = lots * 31;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;   
                     case 17: Lots_New = lots * 33;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;      
                     case 18: Lots_New = lots * 35;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;  
                     case 19: Lots_New = lots * 37;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;     
                     case 20: Lots_New = lots * 39;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;      
                     case 21: Lots_New = lots * 41;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;     
                     case 22: Lots_New = lots * 43;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;         
                     case 23: Lots_New = lots * 45;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;           
                     case 24: Lots_New = lots * 47;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break; 
                     case 25: Lots_New = lots * 49;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;               
                     case 26: Lots_New = lots * 51;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;               
                     case 27: Lots_New = lots * 53;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;               
                     case 28: Lots_New = lots * 55;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break; 
                     case 29: Lots_New = lots * 57;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;               
                     case 30: Lots_New = lots * 59;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;               
                     case 31: Lots_New = lots * 61;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break; 
                     case 32: Lots_New = lots * 63;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break; 
                     case 33: Lots_New = lots * 65;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;               
                     case 34: Lots_New = lots * 67;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;               
                     case 35: Lots_New = lots * 69;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;                               
                     default: Lots_New = lots * 71;  {Iteration = 0; Print("Iteration = ", Iteration, " Lots_New = ", Lots_New ); }                       
                   }                                   // Конец тела switch  
          
 

Questo è il design - non si adattava tutto in una volta:

if (Iteration <= Max_Iteration && VAR_MM == 2)// Последующие лоты открываются в соответствие с классическим мартином - удвоение           
               switch(Iteration)                       // Заголовок switch 
                   {                                   // Начало тела switch                       
                     case 1 : Lots_New = lastLots * 1; lots = lastLots; Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );break; //расчет нового объема       
                     case 2 : Lots_New = lots * 1;    Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;   
                     case 3 : Lots_New = lots * 2;    Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;      
                     case 4 : Lots_New = lots * 4;    Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;  
                     case 5 : Lots_New = lots * 8;    Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;     
                     case 6 : Lots_New = lots * 16;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;      
                     case 7 : Lots_New = lots * 32;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;     
                     case 8 : Lots_New = lots * 64;   Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;         
                     case 9 : Lots_New = lots * 128;  Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;           
                     case 10: Lots_New = lots * 256;  Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break; 
                     case 11: Lots_New = lots * 512;  Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;               
                     case 12: Lots_New = lots * 1024; Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;               
                     case 13: Lots_New = lots * 2048; Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;                                      
                     case 14: Lots_New = lots * 4096; Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );  break;                                                               
                     default: Lots_New = lots * 8192; Print("Iteration = ", Iteration, " Lots_New = ", Lots_New );   
                   }                                   // Конец тела switch          
                   
// ---------НОРМАЛИЗЦИЯ НОВЫХ РАСЧЕТНЫХ ЛОТОВ И ОТКРЫТИЕ ОЧЕРЕДНОЙ ПОЗИЦИИ...            
                    Lots_New = NormalizeLots(Lots_New);
                    if (lastType == OP_SELL) WmOrderSend(Symbol(), OP_SELL, Lots_New, Bid, 0, 0, "усреднение" , MagicNumber);
                    if (lastType == OP_BUY)  WmOrderSend(Symbol(), OP_BUY, Lots_New, Ask, 0, 0, "усреднение" ,  MagicNumber);                            
                      
                 
       

 
Roman.:

Da dove viene il 36? E questo è un coefficiente ripido. Pensate al deposito - sommate tutti i lotti e moltiplicate per il margine