Nobody has an idea?
Ratio_O:
Nobody has an idea?
Nobody has an idea?
You have to debug your code, print the values and check them.
Error 130 can also be when the open price doesn't match the Stoplevels.
2015.08.28 20:59:27.661 2010.01.07 11:00 London_Breakout EURUSD,H1: open #1 buy stop 1.40 EURUSD at 1.44039 sl: 1.43516 ok 2015.08.28 20:59:27.661 2010.01.07 11:00 London_Breakout EURUSD,H1: /* Buy Stop Order Debug Information */ 2015.08.28 20:59:27.661 2010.01.07 11:00 London_Breakout EURUSD,H1: OrderTicket: 1 2015.08.28 20:59:27.661 2010.01.07 11:00 London_Breakout EURUSD,H1: PositionSize: 1.4 2015.08.28 20:59:27.661 2010.01.07 11:00 London_Breakout EURUSD,H1: EntryPriceBuy: 1.44039 2015.08.28 20:59:27.661 2010.01.07 11:00 London_Breakout EURUSD,H1: StopLossBuy: 1.43516 2015.08.28 20:59:27.661 2010.01.07 11:00 London_Breakout EURUSD,H1: /* End Buy Stop Debug Information */
2015.08.28 20:59:27.661 2010.01.07 11:00 London_Breakout EURUSD,H1: OrderSend error 130 2015.08.28 20:59:27.661 2010.01.07 11:00 London_Breakout EURUSD,H1: /* Sell Stop Order Debug Information */ 2015.08.28 20:59:27.661 2010.01.07 11:00 London_Breakout EURUSD,H1: OrderTicket: -1 2015.08.28 20:59:27.661 2010.01.07 11:00 London_Breakout EURUSD,H1: PositionSize: 1.4 2015.08.28 20:59:27.661 2010.01.07 11:00 London_Breakout EURUSD,H1: EntryPriceSell: 1.43516 2015.08.28 20:59:27.661 2010.01.07 11:00 London_Breakout EURUSD,H1: StopLossSell: 1.44039 2015.08.28 20:59:27.661 2010.01.07 11:00 London_Breakout EURUSD,H1: /* End Sell Stop Debug Information */
The EntryPriceSell and StopLossSell Values where the Error occures seem just fine to me. Maybe this happens because the Marketprice is too close to the EntryPriceSell at the moment of orderexecution.. Its the only reason i could think of but i dont know how to check that
Pre build 600 I had problems with pending orders; seemed that SL was being compared to current market, not pending price.
There is no need for pending orders. Humans can't look at the chart 24/7, EAs can. Wait for market to reach your entry price and open. done.
Most probable, add the Bid/Ask prices to your output.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi Guys,
to practice my programming skills im writing a little EA at the moment which i want to place two pending orders at a specific time. Everything pretty much works but on the very first execution i always get an OrderSend Error 130. i am pretty sure that my stops are right though.
After that 1 OrderSend Error the next orders get placed without any error and i dont understand why. If you have a minute please be so kind and have a look on my code, you might see something that i dont see at the moment which could be causing the error.
Thanks in Advance!