Negociación de diferenciales en divisas. Esparcidor 2 - página 14

 
Reshetov >>:


...Если поставить малый размер входному параметру profit, то депо будет слито очень быстро.



¿Puede decirme cómo determinar el tamaño óptimo del parámetro de beneficio?

¿Tal vez dependiendo del tamaño del depósito? ¿Pero cómo exactamente?

 
Por cierto, en menos de 24 horas en la demo +10% del depósito.
 

hay un error en el código.

Tenemos que corregir una parte:

   double secondlots = 0;

   for (int i = 0; i < total; i++) {
      OrderSelect( i, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol()) {
         currentticket = OrderTicket();
         currentprofit = currentprofit + OrderProfit();
         currenttype = OrderType();
      }
      if (OrderSymbol() == seconds_instrument) {
         secondticket = OrderTicket();
         secondtype = OrderType();
         currentprofit = currentprofit + OrderProfit();
         secondlots = OrderLots();
      }
   }


   if (( secondticket < 0) && ( currentticket >= 0)) {
      Comment("Try close positon for " + Symbol());
      if ( currenttype == OP_BUY) {
         if (OrderClose( currentticket, lots, Bid, 2, Blue)) {
            openbarspriceonly = true;
         }
         return(0);
      } else {
         if (OrderClose( currentticket, lots, Ask, 2, Red)) {
            openbarspriceonly = true;
         }
         return(0);
      }
   }

a

   double currentlots = 0;
   double secondlots = 0;

   for (int i = 0; i < total; i++) {
      OrderSelect( i, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol()) {
         currentticket = OrderTicket();
         currentprofit = currentprofit + OrderProfit();
         currenttype = OrderType();
         currentlots = OrderLots();
      }
      if (OrderSymbol() == seconds_instrument) {
         secondticket = OrderTicket();
         secondtype = OrderType();
         currentprofit = currentprofit + OrderProfit();
         secondlots = OrderLots();
      }
   }


   if (( secondticket < 0) && ( currentticket >= 0)) {
      Comment("Try close positon for " + Symbol());
      if ( currenttype == OP_BUY) {
         if (OrderClose( currentticket, currentlots, Bid, 2, Blue)) {
            openbarspriceonly = true;
         }
         return(0);
      } else {
         if (OrderClose( currentticket, currentlots, Ask, 2, Red)) {
            openbarspriceonly = true;
         }
         return(0);
      }
   }
 
vis_inet >>:
Кстати, меньше чем за сутки на демо +10% от депо.

¡Lista de oficios en el estudio!

He tenido -20% Depo durante 2 días, estoy probando la versión 3 hoy, hasta ahora en menos.

 
David177 >>:

Список сделок в студию!

У меня за 2 суток -20%депо, сегодня тестирую 3-ю версию, пока в общем минуса.

Aquí, el saldo era de 1054 aproximadamente antes de comenzar las pruebas:

Configuración: lote 0,1, beneficio 25.

 

Yuri, por favor haz la segunda versión para abrir los tamaños de lote especificados en las variables para ambos pares - iguales. Gracias.

 
y que... ejem... Y añadir magik a la versión 3.
 
El tercero se está perdiendo de verdad.
 
dimasik >>:

Юрий, сделайте пожалуйста во второй версии чтобы открывал размеры лота, заданные в переменных для обеих пар - равнозначные. Спасибо.


O que el tamaño del lote para el segundo par se puede especificar en la configuración.
Razón de la queja: