Error 133 and 130

 

Any Idea why #56336942, the first pending order returns a 133 trade is disbled? Market order is placed just before the first pending order and works fine. The second pending fails with Invalid SL so trading is not disbled anymore? The SL/TP is 0, just like the first market order that worked?

Maybe someone can see something is the messages that I am missing.

Live Trading is enabled the EA is running on 3 charts and has worked fine opening stacks of orders since last week.

2011.09.12 03:05:44 Mail: 'EURAUD ERROR from Invictus_v2.0' has been sent
2011.09.12 03:05:43 '2089227402': order buy stop 0.08 EURAUD opening at 1.31597 sl: 0.00000 tp: 0.00000 failed [Invalid S/L or T/P]
2011.09.12 03:05:27 '2089227402': pending order buy stop 0.08 EURAUD at 1.31597 sl: 0.00000 tp: 0.00000
2011.09.12 03:05:27 '2089227402': modification of order #56336942 buy 0.08 EURAUD at 1.31597 sl: 0.00000 tp: 0.00000 -> sl: 1.31186 tp: 1.32567 failed [Trade is disabled]
2011.09.12 03:05:21 '2089227402': modify pending order #56336942 buy stop 0.08 EURAUD at 1.31597 sl: 0.00000 tp: 0.00000 -> price: 1.31597 sl: 1.31186 tp: 1.32567
2011.09.12 03:05:21 '2089227402': order was opened : #56336942 buy stop 0.08 EURAUD at 1.31597 sl: 0.00000 tp: 0.00000
2011.09.12 03:05:21 '2089227402': request in process
2011.09.12 03:05:21 '2089227402': request was accepted by server
2011.09.12 03:05:15 '2089227402': pending order buy stop 0.08 EURAUD at 1.31597 sl: 0.00000 tp: 0.00000
2011.09.12 03:05:15 '2089227402': order #56336901 buy 0.08 EURAUD at 1.31572 was modified -> sl: 1.31186 tp: 1.32567
2011.09.12 03:05:15 '2089227402': request in process
2011.09.12 03:05:15 '2089227402': request was accepted by server
2011.09.12 03:05:07 '2089227402': modify order #56336901 buy 0.08 EURAUD at 1.31572 sl: 0.00000 tp: 0.00000 -> sl: 1.31186 tp: 1.32567
2011.09.12 03:05:07 '2089227402': order was opened : #56336901 buy 0.08 EURAUD at 1.31572 sl: 0.00000 tp: 0.00000
2011.09.12 03:05:07 '2089227402': request in process
2011.09.12 03:05:07 '2089227402': request was accepted by server
2011.09.12 03:05:00 '2089227402': order buy market 0.08 EURAUD sl: 0.00000 tp: 0.00000

 
How many orders were open on your platform when you got the error 133 ? maybe you hit your Broker's limit.
 

Once the market gets closer than MarketInfo(Symbol(), MODE_STOPLEVEL)*Point to open price, you can not modify or delete. Nor can you open a pending order closer to market than that.

The difference between the buy and the buy stop is 2.5 pips. On IBFX it was 3.0 pips. So I'm actually surprised that you were able to open the buy stop.

On ECN brokers you must open first and then set stops. I haven't see any confirmation here yet that you can set SL for pending orders on ECN brokers.

 

RaptorUK, I only had the 1 market order open at the time, it excuted right before the pending.

WHRoeder, To confirm here is a EURUSD trade from last night setting SL/TP on pending orders with an ECN Broker.

I think you are correct in that the distance between BUY and BUYSTOP must be greater then MarketInfo(Symbol(), MODE_STOPLEVEL)*Point. There must be a differece between EURUSD and EURAUD. Even though my stops and limits are much longer then the minimun stop level, this setting also applies to distance between orders? I will confirm this by adding that check and override the distance between orders set in the properties of the EA.

Thanks for your help.

2011.09.13 04:11:22 Invictus_v2.1 EURUSD,M5: 2011.09.13 07:08:18 order #56436753 EURUSD lot size 0.08 at 1.3623 sl: 1.3669 tp: 1.3566 pl: $33.61

2011.09.13 04:11:22 Invictus_v2.1 EURUSD,M5: 2011.09.13 07:08:17 order #56436746 EURUSD lot size 0.08 at 1.3626 sl: 1.3669 tp: 1.3566 pl: $35.38

2011.09.13 04:11:22 Invictus_v2.1 EURUSD,M5: 2011.09.13 07:08:14 order #56436741 EURUSD lot size 0.08 at 1.3629 sl: 1.3669 tp: 1.3566 pl: $37.15

2011.09.13 04:11:22 Invictus_v2.1 EURUSD,M5: 2011.09.13 07:07:16 order #56436735 EURUSD lot size 0.08 at 1.3632 sl: 1.3669 tp: 1.3566 pl: $38.92

2011.09.13 04:11:22 Invictus_v2.1 EURUSD,M5: 2011.09.13 07:05:00 order #56436731 EURUSD lot size 0.08 at 1.3635 sl: 1.3669 tp: 1.3566 pl: $40.81

2011.09.13 03:04:52 Invictus_v2.1 EURUSD,M5: modify #56436753 sell stop 0.08 EURUSD at 1.36230 sl: 1.36688 tp: 1.35660 ok
2011.09.13 03:04:52 Invictus_v2.1 EURUSD,M5: open #56436753 sell stop 0.08 EURUSD at 1.36230 ok
2011.09.13 03:04:52 Invictus_v2.1 EURUSD,M5: Calculated lot size (Risk = 0.5%) = 0.08
2011.09.13 03:04:52 Invictus_v2.1 EURUSD,M5: modify #56436746 sell stop 0.08 EURUSD at 1.36260 sl: 1.36688 tp: 1.35660 ok
2011.09.13 03:04:52 Invictus_v2.1 EURUSD,M5: open #56436746 sell stop 0.08 EURUSD at 1.36260 ok
2011.09.13 03:04:52 Invictus_v2.1 EURUSD,M5: Calculated lot size (Risk = 0.5%) = 0.08
2011.09.13 03:04:52 Invictus_v2.1 EURUSD,M5: modify #56436741 sell stop 0.08 EURUSD at 1.36290 sl: 1.36688 tp: 1.35660 ok
2011.09.13 03:04:51 Invictus_v2.1 EURUSD,M5: open #56436741 sell stop 0.08 EURUSD at 1.36290 ok
2011.09.13 03:04:51 Invictus_v2.1 EURUSD,M5: Calculated lot size (Risk = 0.5%) = 0.08
2011.09.13 03:04:51 Invictus_v2.1 EURUSD,M5: modify #56436735 sell stop 0.08 EURUSD at 1.36320 sl: 1.36688 tp: 1.35660 ok
2011.09.13 03:04:51 Invictus_v2.1 EURUSD,M5: open #56436735 sell stop 0.08 EURUSD at 1.36320 ok
2011.09.13 03:04:51 Invictus_v2.1 EURUSD,M5: Calculated lot size (Risk = 0.5%) = 0.08
2011.09.13 03:04:51 Invictus_v2.1 EURUSD,M5: modify #56436731 sell 0.08 EURUSD at 1.36352 sl: 1.36688 tp: 1.35660 ok
2011.09.13 03:04:50 Invictus_v2.1 EURUSD,M5: open #56436731 sell 0.08 EURUSD at 1.36352 ok
2011.09.13 03:04:50 Invictus_v2.1 EURUSD,M5: Calculated lot size (Risk = 0.5%) = 0.08
2011.09.13 02:59:50 Invictus_v2.1 EURCHF,M5: OpenHour has passed, trading open.

 
his setting also applies to distance between orders?
other orders are irrelevant.
Reason: