半分の区画を閉鎖する。 - ページ 10

 
DomGilberto:

笑)、ありがとう、しかし、そのビットは他のビットに結合していません... ...あなたは15時50分27秒からのビットを見つけることができますので、我々は半分が閉じられた前に入札価格を見ることができます... ...。
 
DomGilberto: 全部同じチケット番号なら、連続的にハーフクローズしようとするのを止めるには、どのように作業すればいいのでしょうか?ただ、一回だけ半分を閉じるようにしたいのですが・・・。

前半を終了すると、新しいチケット番号が発行されます。

それを適切にコード化する必要があります。A) SLをBE+1に移動させてから、クローズします。もしSLがすでにBEより上にあれば、すでに元の1/2クローズをしたことになります。B) 固定ロットを使っている場合は、それを確認 することができます。C) 最初の1/2クローズを行うまで、TPを設定しない。D)注文を2つ出して、別々の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)注文を2つ出して、別々の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:

いや、この直前の部分。


これが文字通り全てなのか?ログから上のすべてのデータの間に流れているのですか?
 

ああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ

あなたは取引を置く ... その後、1時間後に 最初の目標を達成したかどうかを確認 する ... そうBidは簡単に目標をはるかに超えていることができます ... ...

   if(IsNewCandle())
      {
      CheckForMaTrade();//signals, deletions and candle trails only need checked on a new candle.
      if(UseCandleTrail)AdjustTrail();
      }
 
つまり、保留中の注文がトリガー(OP_BUY)された後、基本的にすべてのティックを 確認する必要があるのですか?
 
DomGilberto:
つまり、保留中の注文がトリガー(OP_BUY)された後、基本的にすべてのティックを確認する必要があるのですか?


そうです。