[Archivo] ¡Aprende a ganar dinero aldeanos! - página 660

 
Roman.:


Ya veo. No voy a comprobarlo ahora mismo en el EA (incluso tiene la misma función por su nombre) - sólo sustituirlo (aquel) por este (el tuyo)... Lo miraré más tarde...

Escriba en una línea los lotes aproximados de las órdenes de promediación para una fecha de inicio, por ejemplo, 10.000 unidades de moneda. 10.000 unidades monetarias, es decir

0. volumen inicial = 0,01 lote.

1er mercado de media = 0,02 lote.

3ª media del mercado = 0,03 lote.

4º = 0,05 lote.

5º = 0,09 lote

6

7

8

9

¿Y la siguiente orden de promediación debe colocarse después de 900 segundos tras la apertura de la anterior, si todas las órdenes anteriores de inicio y promediación unidireccionales fueron perdedoras?

En realidad no, mis órdenes se colocan hasta que hay una señal de confirmación del indicador, pero no más a menudo que cada 900 segundos (elegí al azar), no puedo determinar lo que será el lote, no sé donde el mercado me llevará, si el beneficio es mayor lote, si la pérdida es menor (no hay martingala para tirar de órdenes con pérdidas), el informe adjunto muestra los lotes, hay un lío
Archivos adjuntos:
 
BeerGod:
En realidad no, mis órdenes se colocan hasta que hay una señal de confirmación del indicador, pero no más a menudo que cada 900 segundos (elegí al azar), no puedo decir cuál será el lote, no sé a dónde me llevará el mercado, si estoy en el lado positivo, el lote es más grande, si estoy abajo entonces más pequeño (no hay martingala para sacar órdenes perdedoras), el informe adjunto muestra los lotes, es un lío

Ya veo. Enjambre ¡sigue! :-)
 
Roman.:

Hice la pregunta en el hilo correspondiente - ver este hilo. No lo sé, fue hace mucho tiempo... :-)
Correcto por favor, X es una constante de valor de grado
 
new-rena:
Por favor, corrige, X es una constante de valor de grado

Corregido.
 
Roman.:

Arreglado.

Bueno, cuando esta ecuación esté resuelta, estará lista (probablemente en la página 666). Puedes ejecutarlo en el probador y hacer una predicción del interés anual. No tengo parámetros, sólo quiero saber el resultado.

He colocado el indicador justo en el Asesor Experto. Sólo cambiaré [i-1]-->1

 
new-rena:
Cuando resolvamos esta ecuación, estaremos listos. Podemos ejecutarlo en el probador y hacer una previsión por interés anual. No hay parámetros - sólo un resultado interesante


Yo también estoy probando diferentes variantes, en particular estoy tratando de determinar el paso de no-backup máximo por el script de dickf por la profundidad máxima de la historia...

Lo que quiero decir es que si tomamos el rango m/o máximo y mínimo durante un determinado periodo de tiempo, ¿no sería esto un sobreseguro... y, en consecuencia, una disminución del beneficio al aumentar el intervalo de órdenes de promediación en relación con el valor obtenido al dividir los fallos máximos entre el número máximo posible de órdenes de promediación...

Y he comprobado que si hacemos la media utilizando una progresión aritmética, necesitamos un rollback más duro para abrir las órdenes que, por ejemplo, si doblamos la orden anterior... Tengo un diseño de este tipo - verlo en el probador y optimizador utilizando diferentes símbolos:

Tres tipos de promedios:

 
Roman.:


También estoy probando diferentes variantes, en particular la determinación del paso por el máximo no retorno según el script de dickfx por la máxima profundidad de la historia...

Lo que quiero decir es que si tomamos el rango m/o máximo y mínimo durante un determinado periodo de tiempo, ¿no sería esto un sobreseguro... y, como consecuencia, una disminución del beneficio al aumentar el intervalo de órdenes de promediación respecto al valor obtenido al dividir los fallos máximos entre el número máximo posible de órdenes de promediación...

Y he comprobado que si hacemos la media usando una progresión aritmética, necesitamos un rollback más duro para abrir las órdenes que, por ejemplo, si doblamos la orden anterior... Tengo un diseño de este tipo - verlo en el probador y optimizador utilizando diferentes símbolos:

Tres tipos de promedios:

Pues sí, la media aritmética es el hecho de la garantía de un desagüe. Me refería a aquel en el que se vigilaba el PAMM.

Además, al duplicar, no es seguro que haya suficiente dinero. Por lo tanto, una variante de mi fórmula para construir el tamaño del lote - una garantía antideslizante, según la historia

 
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  
          
 

Ese es el diseño: no cabía todo a la vez:

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.:

¿De dónde viene el 36? Y eso es un coeficiente elevado. Piensa en el depósito: suma todos los lotes y multiplícalo por el margen

Razón de la queja: