Fechamento de meio lote. - página 10

 
DomGilberto:

LOL, obrigado, mas essa parte não se junta à outra parte . . . você pode encontrar a parte a partir das 15:50:27 para que possamos ver os preços de licitação antes que a metade fosse fechada . .
 
DomGilberto: Se forem todos o mesmo número de bilhete, como posso trabalhar com isso para parar de tentar fechar continuamente as metades consecutivamente? Só querendo que feche pela metade uma vez...

Ao fechar a primeira metade, você receberá um novo número de bilhete.

Você tem que codificá-lo corretamente. A) Mova o SL para BE+1 e depois feche. Se o SL já estiver acima de BE, você já fez o fechamento original 1/2. B) Se você usar um tamanho de lote fixo, você pode verificá-lo. C) Não defina o TP até que você esteja prestes a fazer o primeiro 1/2 de fechamento. D) Abra dois pedidos e use TP separados. E) escreva os números dos bilhetes em armazenamento persistente (arquivos) ...

 
RaptorUK:
LOL, obrigado, mas essa parte não se junta à outra parte . . . você pode encontrar a parte a partir das 15:50:27 para que possamos ver os preços de licitação antes que a metade fosse fechada . .


O resto é isso? :
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:

Ao fechar a primeira metade, você receberá um novo número de bilhete.

Você tem que codificá-lo corretamente. A) Mova o SL para BE+1 e depois feche. Se o SL já estiver acima de BE, você já fez o fechamento original 1/2. B) Se você usar um tamanho de lote fixo, você pode verificá-lo. C) Não defina o TP até que você esteja prestes a fazer o primeiro 1/2 de fechamento. D) Abra dois pedidos e use TP separados. E) escreva os números dos bilhetes em armazenamento persistente (arquivos) ...



A) Vou tentar este aqui.

B) Eu não uso um tamanho de lote fixo.

C) Não tem certeza de que diferença isso faz?

D) Eu precisaria abrir 4 pedidos - Pensei que seria mais fácil fazer isso fechando lotes a um determinado preço... acho que não! Poderia fazer esta rota.

E) Nenhuma idéia de como escrever números de bilhetes em armazenamento persistente.

Obrigado por seu conselho!

 
DomGilberto:

O resto é isto? :

Não, a parte imediatamente 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:

Não, a parte imediatamente anterior a esta:


Isso é literalmente tudo o que existe? Flui entre todos aqueles dados acima do registro?
 

Ahhhhhhhhh . . . . . .

Você coloca a troca . . . então verifica se atingiu o primeiro alvo uma hora depois. . para que a licitação possa facilmente passar bem além do alvo . .

   if(IsNewCandle())
      {
      CheckForMaTrade();//signals, deletions and candle trails only need checked on a new candle.
      if(UseCandleTrail)AdjustTrail();
      }
 
Ah ok - Então eu basicamente preciso checar cada tique depois que meu pedido pendente for acionado (OP_BUY)?
 
DomGilberto:
Ah ok - Então eu basicamente preciso checar cada tique depois que meu pedido pendente for acionado (OP_BUY)?


Yup
Razão: