Cierre de medios lotes. - página 10

 
DomGilberto:

LOL, gracias, pero esa parte no se une a la otra... ¿puedes encontrar la parte de las 15:50:27 para que podamos ver los precios de la oferta antes de que se cerrara la mitad?
 
DomGilberto: Si todos son el mismo número de ticket, ¿cómo puedo trabajar con eso para dejar de tratar de cerrar continuamente las mitades consecutivamente? Sólo quiero que se cierre la mitad una vez...

Cuando cierres la primera mitad obtendrás un nuevo número de ticket.

Tienes que codificarla correctamente. A) Mueve el SL a BE+1 y luego cierra. Si el SL ya está por encima de BE, ya has hecho el cierre original de 1/2. B) Si utilizas un tamaño de lote fijo, puedes comprobarlo. C) no pongas el TP hasta que estés a punto de hacer el primer 1/2 cierre. D) Abra dos órdenes y use TP separados. E) escriba los números de ticket en el almacenamiento persistente (archivos) ...

 
RaptorUK:
LOL, gracias, pero esa parte no se une a la otra... ¿puedes encontrar la parte de las 15:50:27 para que podamos ver los precios de la oferta antes de que se cerrara la mitad?


El resto es esto..:
16:50:22 2013.02.04 07:35  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:50:22 2013.02.04 07:35  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:50:22 2013.02.04 07:35  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:50:22 2013.02.04 07:35  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:50:22 2013.02.04 07:35  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:50:22 2013.02.04 07:35  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:50:22 2013.02.04 07:35  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:50:22 2013.02.04 07:35  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:50:22 2013.02.04 07:35  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:50:22 2013.02.04 07:35  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:50:22 2013.02.04 07:35  trendfishing_play_ground EURUSD,H1: modify #14 buy 0.20 EURUSD at 1.36740 sl: 1.36079 tp: 1.38722 ok
16:50:22 2013.02.04 07:38  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:50:22 2013.02.04 07:38  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:50:22 2013.02.04 07:38  trendfishing_play_ground EURUSD,H1: OrderModify error 1
 
WHRoeder:

Cuando cierres la primera mitad obtendrás un nuevo número de billete.

Tienes que codificarla correctamente. A) Mover el SL a BE+1 y luego cerrar. Si el SL ya está por encima de BE, usted ya hizo el cierre original de 1/2. B) Si usas un tamaño de lote fijo, puedes comprobarlo. C) no pongas el TP hasta que estés a punto de hacer el primer 1/2 cierre. D) Abra dos órdenes y use TP separados. E) escriba los números de las entradas en el almacenamiento persistente (archivos) ...



A) Voy a intentar esto.

B) No utilizo un tamaño de lote fijo.

C) No estoy seguro de la diferencia que esto supone.

D) Tendría que abrir 4 órdenes - Sólo pensé que sería más fácil hacerlo cerrando lotes a un precio determinado... ¡supongo que no! Podría hacer esta ruta.

E) No tengo ni idea de cómo escribir los números de los billetes en el almacenamiento persistente.

Gracias por sus consejos.

 
DomGilberto:

El resto es esto..:

No, la parte inmediatamente anterior a esta:

2013.08.02 15:50:27     2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: Half Closed Order Details:- Lots Remaining Open: 0.17 Closing Price was: 1.3557 Magic Number is: 1234 Order Ticket Number: 7
2013.08.02 15:50:27     2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: close #7 buy 0.17 EURUSD at 1.34916 sl: 1.35128 tp: 1.36117 at price 1.35566
2013.08.02 15:50:27     2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: Bid >= FirstTarget_Buy - Current Bid: 1.35566 FirstTarget_Buy: 1.35517
2013.08.02 15:50:27     2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: Current Bid: 1.35566 FirstTarget_Buy: 1.35517
2013.08.02 15:50:27     2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: FirstTarget_Buy: 1.35517
2013.08.02 15:50:27     2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: Order Lots Open = 0.33
2013.08.02 15:50:27     2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: Order Ticker Number = 7
2013.08.02 15:50:27     2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: The Lots to close is: 0.17000
2013.08.02 15:50:27     2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: The Lotstep is: 0.01000
 
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:00  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:01  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:02  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:02  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 06:02  trendfishing_play_ground EURUSD,H1: OrderModify error 1
16:48:28 2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: open #12 buy stop 0.27 EURUSD at 1.35862 sl: 1.35120 tp: 1.37346 ok
16:48:28 2013.01.31 07:00  trendfishing_play_ground EURUSD,H1:  First Buy Order placed:- Lots to open: 0.27537 Entry Price: 1.35862 Buy Stop Loss: 1.35120 Buy Take Profit: 1.37346 Magic Number is: 1234.00000 Order Ticket Number: 11
16:48:28 2013.01.31 07:00  trendfishing_play_ground EURUSD,H1:  Checking Buy Order:- Lots to open: 0.27 Entry Price: 1.3586 Buy Stop Loss: 1.3512 Buy Take Profit: 1.3735 Magic Number is: 1234 Order Ticket Number: 12
16:48:28 2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: delete #12 buy stop 0.27 EURUSD at 1.35862 sl: 1.35120 tp: 1.37346 ok
16:48:28 2013.01.31 07:00  trendfishing_play_ground EURUSD,H1:  Checking Buy Order:- Lots to open: 0.33 Entry Price: 1.3492 Buy Stop Loss: 1.3513 Buy Take Profit: 1.3612 Magic Number is: 1234 Order Ticket Number: 11
16:48:28 2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: The minimum lots are: 0.01000
16:48:28 2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: The Lotstep is: 0.01000
16:48:28 2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: The Lots to close is: 0.17000
16:48:28 2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: Order Ticker Number = 11
16:48:28 2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: Order Lots Open = 0.33
16:48:28 2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: FirstTarget_Buy: 1.35517
16:48:28 2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: Current Bid: 1.35566 FirstTarget_Buy: 1.35517
16:48:28 2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: Bid >= FirstTarget_Buy - Current Bid: 1.35566 FirstTarget_Buy: 1.35517
16:48:28 2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: close #11 buy 0.17 EURUSD at 1.34916 sl: 1.35128 tp: 1.36117 at price 1.35566
16:48:28 2013.01.31 07:00  trendfishing_play_ground EURUSD,H1:  Half Closed Order Details:- Lots Remaining Open: 0.17 Closing Price was: 1.3557 Magic Number is: 1234 Order Ticket Number: 11
16:48:28 2013.01.31 07:00  trendfishing_play_ground EURUSD,H1: modify #13 buy 0.16 EURUSD at 1.34916 sl: 1.35135 tp: 1.36117 ok
 
RaptorUK:

No, la parte inmediatamente anterior a esta:


¿Eso es literalmente todo lo que hay? ¿Fluye entre todos esos datos de arriba del registro?
 

Ahhhhhhhh...

Colocas la operación... y luego compruebas si has alcanzado el primer objetivo una hora más tarde... así que el Bid puede estar fácilmente bien pasado el objetivo...

   if(IsNewCandle())
      {
      CheckForMaTrade();//signals, deletions and candle trails only need checked on a new candle.
      if(UseCandleTrail)AdjustTrail();
      }
 
Ah, vale - Entonces, ¿básicamente tengo que comprobar cada tick después de que se active mi orden pendiente (OP_BUY)?
 
DomGilberto:
Ah, vale - Entonces, ¿básicamente tengo que comprobar cada tick después de que se active mi orden pendiente (OP_BUY)?


Yup
Razón de la queja: