关闭半数地段。 - 页 10

 
DomGilberto:

大笑,谢谢,但这段话没有和另一段话联系起来......你能不能找到15:50:27的那段话,这样我们就能看到半场结束前的投标价格了。
 
DomGilberto: 如果它们都是同一个票号,我怎样才能与之配合,不再试图连续连续地关闭一半?只想让它关闭一次半数...

当你关闭上半场时,你会得到一个新的票号。

你必须正确编码。A) 将SL移动到BE+1,然后关闭。如果SL已经高于BE,你已经做了原来的1/2平仓。B) 如果你使用固定手数,你可以检查一下。C) 在你要做第一个1/2收盘之前,不要设置TP。D)开两个单子,使用不同的TP。E)在持久性存储(文件)中写入票号.

 
RaptorUK:
大笑,谢谢,但这段话没有和另一段话联系起来......你能不能找到15:50:27的那段话,这样我们就能看到半场结束前的投标价格了。


剩下的是这个吗?
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:

当你关闭前一半时,你会得到一个新的票号。

你必须正确编码。A) 将SL移至BE+1,然后关闭。如果SL已经高于BE,你已经做了原来的1/2平仓。B) 如果你使用固定手数,你可以检查一下。C) 在你要做第一个1/2收盘之前,不要设置TP。D)开两个单子,使用不同的TP。E)在持久性存储(文件)中写入票号...



A) 我将尝试这个。

B) 我不使用固定的手数。

C)不知道这有什么区别?

D) 我需要开4个订单--只是认为在给定的价格下平仓会更容易做到......估计不会可能会采取这种方式。

E) 不知道如何在持久性存储中写票号。

谢谢你的建议!

 
DomGilberto:

剩下的是这个?

不,是紧接在这之前的部分。

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:

不,是紧接在这之前的部分。


这就是字面上的所有内容?它在上面那些来自日志的数据之间流动?
 

啊哈哈哈哈......。

你下了交易 . . . 然后在一小时后 检查 你是否达到了第一个目标 . . . 所以竞价很容易超过目标 . . .

   if(IsNewCandle())
      {
      CheckForMaTrade();//signals, deletions and candle trails only need checked on a new candle.
      if(UseCandleTrail)AdjustTrail();
      }
 
啊,好的 - 所以我基本上需要在我的挂单被触发(OP_BUY)后检查每一个刻度
 
DomGilberto:
啊,好的 - 所以我基本上需要在我的挂单被触发(OP_BUY)后检查每一个刻度?


是的