2013.08.0215:50:272013.01.3107: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: 72013.08.0215:50:272013.01.3107:00 trendfishing_play_ground EURUSD,H1: close #7 buy 0.17 EURUSD at 1.34916 sl: 1.35128 tp: 1.36117 at price 1.355662013.08.0215:50:272013.01.3107:00 trendfishing_play_ground EURUSD,H1: Bid >= FirstTarget_Buy - Current Bid: 1.35566 FirstTarget_Buy: 1.355172013.08.0215:50:272013.01.3107:00 trendfishing_play_ground EURUSD,H1: Current Bid: 1.35566 FirstTarget_Buy: 1.355172013.08.0215:50:272013.01.3107:00 trendfishing_play_ground EURUSD,H1: FirstTarget_Buy: 1.355172013.08.0215:50:272013.01.3107:00 trendfishing_play_ground EURUSD,H1: Order Lots Open = 0.332013.08.0215:50:272013.01.3107:00 trendfishing_play_ground EURUSD,H1: Order Ticker Number = 72013.08.0215:50:272013.01.3107:00 trendfishing_play_ground EURUSD,H1: The Lots to close is: 0.170002013.08.0215:50:272013.01.3107:00 trendfishing_play_ground EURUSD,H1: The Lotstep is: 0.010002013.08.0215:50:272013.01.3107: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: 7
16:50:262013.02.0511:00 trendfishing_play_ground EURUSD,H1: The minimum lots are: 0.0100016:50:262013.02.0511:00 trendfishing_play_ground EURUSD,H1: The Lotstep is: 0.0100016:50:262013.02.0511:00 trendfishing_play_ground EURUSD,H1: The Lots to close is: 0.1000016:50:262013.02.0511:00 trendfishing_play_ground EURUSD,H1: Order Ticker Number = 1716:50:262013.02.0511:00 trendfishing_play_ground EURUSD,H1: Order Lots Open = 0.216:50:262013.02.0511:00 trendfishing_play_ground EURUSD,H1: FirstTarget_Buy: 1.3359416:50:262013.02.0511:00 trendfishing_play_ground EURUSD,H1: Current Bid: 1.35452 FirstTarget_Buy: 1.3359416:50:262013.02.0511:00 trendfishing_play_ground EURUSD,H1: Stop loss valuefor the order is1.355516:50:262013.02.0511:00 trendfishing_play_ground EURUSD,H1: delete #17 sell stop 0.20 EURUSD at 1.34573 sl: 1.35553 tp: 1.32614 ok
16:50:262013.02.0511:00 trendfishing_play_ground EURUSD,H1: open #18 sell stop 0.20 EURUSD at 1.34573 sl: 1.35549 tp: 1.32620 ok
16:50:262013.02.0512:00 trendfishing_play_ground EURUSD,H1: The minimum lots are: 0.0100016:50:262013.02.0512:00 trendfishing_play_ground EURUSD,H1: The Lotstep is: 0.0100016:50:262013.02.0512:00 trendfishing_play_ground EURUSD,H1: The Lots to close is: 0.1000016:50:262013.02.0512:00 trendfishing_play_ground EURUSD,H1: Order Ticker Number = 1816:50:262013.02.0512:00 trendfishing_play_ground EURUSD,H1: Order Lots Open = 0.216:50:262013.02.0512:00 trendfishing_play_ground EURUSD,H1: FirstTarget_Buy: 1.3359716:50:262013.02.0512:00 trendfishing_play_ground EURUSD,H1: Current Bid: 1.35544 FirstTarget_Buy: 1.3359716:50:262013.02.0512:00 trendfishing_play_ground EURUSD,H1: Stop loss valuefor the order is1.355516:50:262013.02.0512:00 trendfishing_play_ground EURUSD,H1: delete #18 sell stop 0.20 EURUSD at 1.34573 sl: 1.35549 tp: 1.32620 ok
16:50:262013.02.0512:00 trendfishing_play_ground EURUSD,H1: open #19 sell stop 0.20 EURUSD at 1.34573 sl: 1.35549 tp: 1.32621 ok
16:50:272013.02.0513:00 trendfishing_play_ground EURUSD,H1: The minimum lots are: 0.0100016:50:272013.02.0513:00 trendfishing_play_ground EURUSD,H1: The Lotstep is: 0.0100016:50:272013.02.0513:00 trendfishing_play_ground EURUSD,H1: The Lots to close is: 0.1000016:50:272013.02.0513:00 trendfishing_play_ground EURUSD,H1: Order Ticker Number = 1916:50:272013.02.0513:00 trendfishing_play_ground EURUSD,H1: Order Lots Open = 0.216:50:272013.02.0513:00 trendfishing_play_ground EURUSD,H1: FirstTarget_Buy: 1.3359716:50:272013.02.0513:00 trendfishing_play_ground EURUSD,H1: Current Bid: 1.35421 FirstTarget_Buy: 1.3359716:50:272013.02.0513:00 trendfishing_play_ground EURUSD,H1: Stop loss valuefor the order is1.355516:50:272013.02.0513:00 trendfishing_play_ground EURUSD,H1: delete #19 sell stop 0.20 EURUSD at 1.34573 sl: 1.35549 tp: 1.32621 ok
16:50:272013.02.0513:00 trendfishing_play_ground EURUSD,H1: open #20 sell stop 0.20 EURUSD at 1.34573 sl: 1.35545 tp: 1.32629 ok
16:50:272013.02.0514:00 trendfishing_play_ground EURUSD,H1: The minimum lots are: 0.0100016:50:272013.02.0514:00 trendfishing_play_ground EURUSD,H1: The Lotstep is: 0.0100016:50:272013.02.0514:00 trendfishing_play_ground EURUSD,H1: The Lots to close is: 0.1000016:50:272013.02.0514:00 trendfishing_play_ground EURUSD,H1: Order Ticker Number = 2016:50:272013.02.0514:00 trendfishing_play_ground EURUSD,H1: Order Lots Open = 0.216:50:272013.02.0514:00 trendfishing_play_ground EURUSD,H1: FirstTarget_Buy: 1.3360116:50:272013.02.0514:00 trendfishing_play_ground EURUSD,H1: Current Bid: 1.35167 FirstTarget_Buy: 1.3360116:50:272013.02.0514:00 trendfishing_play_ground EURUSD,H1: Stop loss valuefor the order is1.355516:50:272013.02.0514:00 trendfishing_play_ground EURUSD,H1: delete #20 sell stop 0.20 EURUSD at 1.34573 sl: 1.35545 tp: 1.32629 ok
16:50:272013.02.0514:00 trendfishing_play_ground EURUSD,H1: open #21 sell stop 0.21 EURUSD at 1.34573 sl: 1.35533 tp: 1.32654 ok
16:50:272013.02.0515:00 trendfishing_play_ground EURUSD,H1: The minimum lots are: 0.0100016:50:272013.02.0515:00 trendfishing_play_ground EURUSD,H1: The Lotstep is: 0.0100016:50:272013.02.0515:00 trendfishing_play_ground EURUSD,H1: The Lots to close is: 0.1100016:50:272013.02.0515:00 trendfishing_play_ground EURUSD,H1: Order Ticker Number = 2116:50:272013.02.0515:00 trendfishing_play_ground EURUSD,H1: Order Lots Open = 0.2116:50:272013.02.0515:00 trendfishing_play_ground EURUSD,H1: FirstTarget_Buy: 1.3361416:50:272013.02.0515:00 trendfishing_play_ground EURUSD,H1: Current Bid: 1.35297 FirstTarget_Buy: 1.3361416:50:272013.02.0515:00 trendfishing_play_ground EURUSD,H1: Stop loss valuefor the order is1.355316:50:272013.02.0515:00 trendfishing_play_ground EURUSD,H1: delete #21 sell stop 0.21 EURUSD at 1.34573 sl: 1.35533 tp: 1.32654 ok
16:50:272013.02.0515:00 trendfishing_play_ground EURUSD,H1: open #22 sell stop 0.21 EURUSD at 1.34573 sl: 1.35525 tp: 1.32669 ok
16:50:272013.02.0516:00 trendfishing_play_ground EURUSD,H1: The minimum lots are: 0.0100016:50:272013.02.0516:00 trendfishing_play_ground EURUSD,H1: The Lotstep is: 0.0100016:50:272013.02.0516:00 trendfishing_play_ground EURUSD,H1: The Lots to close is: 0.1100016:50:272013.02.0516:00 trendfishing_play_ground EURUSD,H1: Order Ticker Number = 2216:50:272013.02.0516:00 trendfishing_play_ground EURUSD,H1: Order Lots Open = 0.2116:50:272013.02.0516:00 trendfishing_play_ground EURUSD,H1: FirstTarget_Buy: 1.3362116:50:272013.02.0516:00 trendfishing_play_ground EURUSD,H1: Current Bid: 1.35273 FirstTarget_Buy: 1.3362116:50:272013.02.0516:00 trendfishing_play_ground EURUSD,H1: Stop loss valuefor the order is1.355316:50:272013.02.0516:00 trendfishing_play_ground EURUSD,H1: delete #22 sell stop 0.21 EURUSD at 1.34573 sl: 1.35525 tp: 1.32669 ok
16:50:272013.02.0516:00 trendfishing_play_ground EURUSD,H1: open #23 sell stop 0.21 EURUSD at 1.34573 sl: 1.35517 tp: 1.32686 ok
16:50:272013.02.0517:00 trendfishing_play_ground EURUSD,H1: delete #23 sell stop 0.21 EURUSD at 1.34573 sl: 1.35517 tp: 1.32686 ok
是的--当我去掉for循环时,我才发现这一点。我是否可以这样说,如果我从第一次选择时就追踪订单号码,一旦OrderClose完成了它的工作并返回true,那么我就可以用订单号码来验证,因为它们是不同的--这样就可以打破循环,等到另一个新的订单出现时再进行验证?
我不完全确定该怎么写,但这大致上是正确的思路吗?
你不需要退出循环 ......除非订单的剩余部分有一个新的票号? 你知道它是否有?
在变量或数组中保存这些信息的问题是,如果EA因设计而停止或MT4崩溃,你就失去了你的信息,你不能从你离开的地方继续。 你也许可以用神奇的数字做一些事情 ......否则你将不得不变得混乱,开始将信息保存到文件中 ....... .
嗯...好吧,我刚刚打印出订单的细节,在OrderClose==true.... 之后。订单号码是相同的,从我第一次投入交易到我关闭一半的交易......有什么想法吗?为什么当买入价>=出场价时,它就不会关闭一半?它似乎走得够远了,但它似乎只在回撤时关闭(我正在快速地对一个已知的设置反复进行测试。)
如果它们都是同一个票号,我怎样才能使其不再试图连续关闭一半?只是想让它关闭一次半数...
嗯...好吧,我刚刚打印出订单的细节,在OrderClose==true.... 之后。订单号码是相同的,从我第一次投入交易到我关闭一半的交易......有什么想法吗?为什么当买入价>=出场价时,它就不会关闭一半?它似乎走得够远了,但它似乎只在回撤时关闭(我正在快速地对一个已知的设置反复进行测试)。
你能不能多显示一点日志/日记,半数订单关闭前的出价是多少? 从你打印的内容中,我们只能看到一半订单即将关闭时的Bid。 您使用的是哪种策略测试 模式?是每一个点还是开盘价?
如果它们都是同一个票号,我怎样才能与之配合,不再试图连续关闭半数?只是想让它关闭一次半数......
好吧,唯一的选择是用两个不同的退出价格放入两个订单......我唯一的问题是:
"if(OpenOrdersThisPair(Symbol())==0)"
它一次只能让我放入一个订单......。如果我把 它去掉,那么在任何一个设置上都会有无限数量的交易被投入市场......我希望你有经验,我如何能在任何一个孤立的设置想法上允许2-3-4个订单进入?
我可以在每个交易设置上最多有4个退出。
好吧--好吧,唯一的其他选择是把两个订单放在两个不同的出场价格上......我唯一的问题是这样的。
"if(OpenOrdersThisPair(Symbol())==0)"
它一次只能让我下一个订单......如果我去掉这一点,那么在任何一个设置上都会有无限数量的交易被投入市场......我希望你有经验,我如何能在任何一个孤立的设置想法上允许2-3-4个订单进入?
你能不能多展示一点日志/日记。
你能不能多展示一些日志/日记, 在一半的订单即将平仓前的出价是多少? 从您打印的内容中,我们只能看到一半订单即将平仓时的Bid是多少。 您使用的是哪种策略测试模式?是每一个点还是开盘价?
我使用的是每一个刻度线。上面强调的部分;我如何检查?我不明白为什么,但有时并不是所有的东西都能打印出来--然而订单关闭功能可以工作,但打印却不能......真的很让人沮丧,因为这让我很困惑。但不要紧,打印出来的东西几乎都是我上面粘贴的?
唯一的区别是,我也有大量的 "OrderModify error 1"--我还没有搞清楚......
我正在使用每一个刻度。上面强调的部分;我如何检查?我不明白为什么,但有时并不是所有的东西都会打印出来--然而订单关闭功能可以工作,但打印却不行......真的很让人沮丧,因为这让我很困惑。但不要紧,打印出来的东西几乎都是我上面粘贴的?