https://www.mql5.com/en/forum/135633/page4#540502
very nice topic for error problems to look
Thanks deVries but I endeavored to cover all those topics prior to posting as noted below:
1. ECN Broker – FinFX is an ECN broker and normally use 0’s for SL/TP but now I’m attempting a Buy Stop where you must post a SL/TP
2. 4/5-Digit Broker – 5 digit broker as indicated with Ask
3. Changing Market Rates – the error is occurring on every trade attempt in a backtest
4. Spread – not an issue as attempting to run back test (multiple times) in prime time when actual spread is averaging 7 pips – never a problem when doing a market order.
5. Stop Level - FinFX has a .00001 stop level, I’m at .00025; no discernible problem here
6. Freeze Level – FinFX has a 0 freeze level, I’m at .00050; no discernible problem here
7. Ticksize – is .00001 FinFX; no discernible problem here
Still baffled!
Ok, I've read everything on the Forum about "error 130 on ECN brokers and pending orders" but I still can't get around my bug at FinFx. As you can see below, my Buy entry price (1.32796) is .00050 away from the current Ask price; should be no problem there. My stoploss ( 1.32771) is .00025 from the entry price and also .00025 from the current Ask price; should be no problem there. Ditto for the takeprofit with is also .00025 above the entry price. Why am I still getting the error 130?
There is a reason . . . just just have to find it.
When you get an error 130 print everything, Bid, Ask, Freezelevel, Stoplevel, OrderType, Price you are trying to enter at, SL & TP. Did you read my thread about error 130 ? it took me a year, I found the issue . . .
There are no mind readers here - you have to post your code.
Always funny how people expect us to know whats wrong with the codes they're not showing.
Always funny how people expect us to know whats wrong with the codes they're not showing.
Ok, not funny anymore - code inserted above. First insert was the wrong one - stripped down code to the essence - now getting an erro 138. Thanks
There is a reason . . . just just have to find it.
When you get an error 130 print everything, Bid, Ask, Freezelevel, Stoplevel, OrderType, Price you are trying to enter at, SL & TP. Did you read my thread about error 130 ? it took me a year, I found the issue . . .
Ok, not funny anymore - code inserted above. First insert was the wrong one - stripped down code to the essence - now getting an erro 138. Thanks
Print the values as above.
11:39:09 Test EURUSD,M1: loaded successfully
11:39:18 Test EURUSD,M1: loaded successfully
11:39:20 Test test started
11:39:20 2011.01.03 00:00 Test EURUSD,M1: *************************
11:39:20 2011.01.03 00:00 Test EURUSD,M1: *************************
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: ________________________ENTERING SELLNOW EURUSD _____________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: >>>>>>>>>>>> Price = 1.33393 SSL = 1.33493 STP = 1.33293
11:39:20 2011.01.03 00:00 Test EURUSD,M1: _____________________________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: price = 1.33393
11:39:20 2011.01.03 00:00 Test EURUSD,M1: stoploss = 1.33493
11:39:20 2011.01.03 00:00 Test EURUSD,M1: takeprfit = 1.33293
11:39:20 2011.01.03 00:00 Test EURUSD,M1: _____________________________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: OrderSend error 138
11:39:20 2011.01.03 00:00 Test EURUSD,M1: ++++++++++++++++++++++++++ Order Executed ++++++ Ticket = -1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Error5 Error5 Error5 Error5 Error5 Error5 Error5
11:39:20 2011.01.03 00:00 Test EURUSD,M1: >>>>>>>>>> 138 <<<<<<<<
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Error5 Error5 Error5 Error5 Error5 Error5 Error5
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: ________________________ENTERING SELLNOW EURUSD _____________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: >>>>>>>>>>>> Price = 1.33395 SSL = 1.33495 STP = 1.33295
11:39:20 2011.01.03 00:00 Test EURUSD,M1: _____________________________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: price = 1.33395
11:39:20 2011.01.03 00:00 Test EURUSD,M1: stoploss = 1.33495
11:39:20 2011.01.03 00:00 Test EURUSD,M1: takeprfit = 1.33295
11:39:20 2011.01.03 00:00 Test EURUSD,M1: _____________________________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: OrderSend error 138
11:39:20 2011.01.03 00:00 Test EURUSD,M1: ++++++++++++++++++++++++++ Order Executed ++++++ Ticket = -1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Error5 Error5 Error5 Error5 Error5 Error5 Error5
11:39:20 2011.01.03 00:00 Test EURUSD,M1: >>>>>>>>>> 138 <<<<<<<<
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Error5 Error5 Error5 Error5 Error5 Error5 Error5
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: ________________________ENTERING SELLNOW EURUSD _____________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: >>>>>>>>>>>> Price = 1.33396 SSL = 1.33496 STP = 1.33296
11:39:20 2011.01.03 00:00 Test EURUSD,M1: _____________________________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: price = 1.33396
11:39:20 2011.01.03 00:00 Test EURUSD,M1: stoploss = 1.33496
11:39:20 2011.01.03 00:00 Test EURUSD,M1: takeprfit = 1.33296
11:39:20 2011.01.03 00:00 Test EURUSD,M1: _____________________________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: OrderSend error 138
11:39:20 2011.01.03 00:00 Test EURUSD,M1: ++++++++++++++++++++++++++ Order Executed ++++++ Ticket = -1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Error5 Error5 Error5 Error5 Error5 Error5 Error5
11:39:20 2011.01.03 00:00 Test EURUSD,M1: >>>>>>>>>> 138 <<<<<<<<
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Error5 Error5 Error5 Error5 Error5 Error5 Error5
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: ________________________ENTERING SELLNOW EURUSD _____________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: >>>>>>>>>>>> Price = 1.33398 SSL = 1.33498 STP = 1.33298
11:39:20 2011.01.03 00:00 Test EURUSD,M1: _____________________________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: price = 1.33398
11:39:20 2011.01.03 00:00 Test EURUSD,M1: stoploss = 1.33498
11:39:20 2011.01.03 00:00 Test EURUSD,M1: takeprfit = 1.33298
11:39:20 2011.01.03 00:00 Test EURUSD,M1: _____________________________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: OrderSend error 138
11:39:20 2011.01.03 00:00 Test EURUSD,M1: ++++++++++++++++++++++++++ Order Executed ++++++ Ticket = -1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Error5 Error5 Error5 Error5 Error5 Error5 Error5
11:39:20 2011.01.03 00:00 Test EURUSD,M1: >>>>>>>>>> 138 <<<<<<<<
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Error5 Error5 Error5 Error5 Error5 Error5 Error5
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: ________________________ENTERING SELLNOW EURUSD _____________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: >>>>>>>>>>>> Price = 1.33399 SSL = 1.33499 STP = 1.33299
11:39:20 2011.01.03 00:00 Test EURUSD,M1: _____________________________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: price = 1.33399
11:39:20 2011.01.03 00:00 Test EURUSD,M1: stoploss = 1.33499
11:39:20 2011.01.03 00:00 Test EURUSD,M1: takeprfit = 1.33299
11:39:20 2011.01.03 00:00 Test EURUSD,M1: _____________________________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: OrderSend error 138
11:39:20 2011.01.03 00:00 Test EURUSD,M1: ++++++++++++++++++++++++++ Order Executed ++++++ Ticket = -1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Error5 Error5 Error5 Error5 Error5 Error5 Error5
11:39:20 2011.01.03 00:00 Test EURUSD,M1: >>>>>>>>>> 138 <<<<<<<<
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Error5 Error5 Error5 Error5 Error5 Error5 Error5
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Freeze Level - 0
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: StopLevel = 1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: ________________________ENTERING SELLNOW EURUSD _____________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: >>>>>>>>>>>> Price = 1.33398 SSL = 1.33498 STP = 1.33298
11:39:20 2011.01.03 00:00 Test EURUSD,M1: _____________________________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: price = 1.33398
11:39:20 2011.01.03 00:00 Test EURUSD,M1: stoploss = 1.33498
11:39:20 2011.01.03 00:00 Test EURUSD,M1: takeprfit = 1.33298
11:39:20 2011.01.03 00:00 Test EURUSD,M1: _____________________________________
11:39:20 2011.01.03 00:00 Test EURUSD,M1: OrderSend error 138
11:39:20 2011.01.03 00:00 Test EURUSD,M1: ++++++++++++++++++++++++++ Order Executed ++++++ Ticket = -1
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Error5 Error5 Error5 Error5 Error5 Error5 Error5
11:39:20 2011.01.03 00:00 Test EURUSD,M1: >>>>>>>>>> 138 <<<<<<<<
11:39:20 2011.01.03 00:00 Test EURUSD,M1: Error5 Error5 Error5 Error5 Error5 Error5 Error5
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Ok, I've read everything on the Forum about "error 130 on ECN brokers and pending orders" but I still can't get around my bug at FinFx. As you can see below, my Buy entry price (1.32796) is .00050 away from the current Ask price; should be no problem there. My stoploss ( 1.32771) is .00025 from the entry price and also .00025 from the current Ask price; should be no problem there. Ditto for the takeprofit with is also .00025 above the entry price. Why am I still getting the error 130?
12:31:39 2011.01.03 08:36 UP and Down EURUSD,M1: Buy set for 1.32796 Ask = 1.32746
12:31:39 2011.01.03 08:36 UP and Down EURUSD,M1: ________________________ENTERING BUYNOW EURUSD _____________________
12:31:39 2011.01.03 08:36 UP and Down EURUSD,M1: _____________________________________
12:31:39 2011.01.03 08:36 UP and Down EURUSD,M1: price = 1.32796
12:31:39 2011.01.03 08:36 UP and Down EURUSD,M1: stoploss = 1.32771
12:31:39 2011.01.03 08:36 UP and Down EURUSD,M1: takeprfit = 1.32821
12:31:39 2011.01.03 08:36 UP and Down EURUSD,M1: _____________________________________
12:31:39 2011.01.03 08:36 UP and Down EURUSD,M1: OrderSend error 130
12:31:39 2011.01.03 08:36 UP and Down EURUSD,M1: ++++++++++++++++++++++++++ Order Executed ++++++ Ticket = -1
12:31:39 2011.01.03 08:36 UP and Down EURUSD,M1: Error5 Error5 Error5 Error5 Error5 Error5 Error5
12:31:39 2011.01.03 08:36 UP and Down EURUSD,M1: >>>>>>>>>> 130 <<<<<<<<
12:31:39 2011.01.03 08:36 UP and Down EURUSD,M1: Error5 Error5 Error5 Error5 Error5 Error5 Error5
12:31:39 2011.01.03 08:45 UP and Down EURUSD,M1: *****************************
12:31:39 2011.01.03 08:45 UP and Down EURUSD,M1: Buy set for 1.32640 Ask = 1.32590
12:31:39 2011.01.03 08:45 UP and Down EURUSD,M1: ________________________ENTERING BUYNOW EURUSD _____________________
12:31:39 2011.01.03 08:45 UP and Down EURUSD,M1: _____________________________________
12:31:39 2011.01.03 08:45 UP and Down EURUSD,M1: price = 1.32640
12:31:39 2011.01.03 08:45 UP and Down EURUSD,M1: stoploss = 1.32615
12:31:39 2011.01.03 08:45 UP and Down EURUSD,M1: takeprfit = 1.32665
12:31:39 2011.01.03 08:45 UP and Down EURUSD,M1: _____________________________________
12:31:39 2011.01.03 08:45 UP and Down EURUSD,M1: OrderSend error 130
12:31:39 2011.01.03 08:45 UP and Down EURUSD,M1: ++++++++++++++++++++++++++ Order Executed ++++++ Ticket = -1
12:31:39 2011.01.03 08:45 UP and Down EURUSD,M1: Error5 Error5 Error5 Error5 Error5 Error5 Error5
12:31:39 2011.01.03 08:45 UP and Down EURUSD,M1: >>>>>>>>>> 130 <<<<<<<<
12:31:39 2011.01.03 08:45 UP and Down EURUSD,M1: Error5 Error5 Error5 Error5 Error5 Error5 Error5
12:31:39 2011.01.03 13:26 UP and Down EURUSD,M1: SSSSSSSSSSSSSSSSSSSSSSSSSS
12:31:39 2011.01.03 13:26 UP and Down EURUSD,M1: ________________________ENTERING SELLNOW EURUSD _____________________