Ordersend 130 Error
Contents |
or register 4 ls129 2008.05.03 20:22 I'm trying to run several EA's on historical data and keep getting "OrderSend error 130" for both BUY and SELL
Ordersend Error 138
orders without any logic. It happens on most signals and I downloaded ordersend error 4107 10 different public domain EAs and none work on most signals at different resolutions (1M, 1H 4H..). I'm well
Order Modify Error 130
aware of what the error means and i'm an experienced programmer i'm sure i'm passing correct values for stop-loss and take-profit. I use the metatrader software downloaded from FxPro broker. The ordermodify error 1 Stop-Level parameter is always set to 100 under "Symbol Properties" of most symbols which sounds like a lot compared to their advertised spread! but even when i change the stop-loss take-profit parameters passed by OrderSend, to something bigger than 100 it doesnt matter. I always get this dreaded Error 130 Please help
similar OrderSend in backtest mode what is "no error" mql4 ordermodify error 130 exactly? How can I get MT to execute signals from my signal service? EMA CROSS OrderSend()...4109....??? 4 ls129 2008.05.03 21:14 # ls129 wrote: I'm trying to run several EA's on historical data and keep getting "OrderSend error 130" for both BUY and SELL orders without any logic. It happens on most signals and I downloaded 10 different public domain EAs and none work on most signals at different resolutions (1M, 1H 4H..). I'm well aware of what the error means and i'm an experienced programmer i'm sure i'm passing correct values for stop-loss and take-profit. I use the metatrader software downloaded from FxPro broker. The Stop-Level parameter is always set to 100 under "Symbol Properties" of most symbols which sounds like a lot compared to their advertised spread! but even when i change the stop-loss take-profit parameters passed by OrderSend, to something bigger than 100 it doesnt matter. I always get this dreaded Error 130 Please help I downloaded the metatrader software from Alpari and my EA and the downloaded ones seem to works. 10 hours wasted thanks to FxPro! similar why MPage Last Post Printable Version Similar Threads EA error message (0) no error 6 replies Fixing CCI histogram in my EA 6 replies Need help fixing this indicator 1 reply MT4 EA error- when placing trade getting error 0 rate on ask 3 replies
Ordersend Error 134
ATR indicator needs fixing 2 replies Platform Tech / Reply to Thread Subscribe Fixing Error ordersend error 131 130 - MT4 Post #1 Quote First Post: Feb 19, 2013 11:47am Feb 19, 2013 11:47am trumpjr | Joined Feb 2010 | Status:
Mql4 Error 130
Member | 15 Posts I am receiving error 130 when I run my EA. Below is the code for buying: Inserted Code ticket=OrderSend(Symbol(),OP_BUYSTOP,Lots,HighBar1+BuySellBuffer*PointFive,3,0,0,"My EA",12345,0,Green); if(ticket>0) { if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)) Print("BUY order opened : ",OrderOpenPrice()); OrderModify(OrderTicket(),OrderOpenPrice(),HighBar1-HighMinusLow-(StopBuffer*PointFive),HighBar1+TakeProfit2,0,Green); } else Print("Error opening SELL https://forum.mql4.com/12411 order : ",GetLastError()); return(0); The reason I am getting error 130 is that this places a buy stop two pips above the previous bar. When a candle closes near the high is when I get this error and sometimes the order never fills. Any ideas on how I could make this work when this happens? Post #2 Quote Feb 19, 2013 12:34pm Feb 19, 2013 12:34pm fxtr51 Joined Jan 2010 | Status: Member | 1,163 Posts http://www.forexfactory.com/showthread.php?t=411201 If you insert "error 130 mt4" into google, you will get more than 60.000 hits. I picked 2 : http://thetrademachine.com/blog/2010...d-stops-error/ http://www.earnforex.com/blog/2008/1...30-what-to-do/ Post #3 Quote Feb 19, 2013 12:39pm Feb 19, 2013 12:39pm trumpjr | Joined Feb 2010 | Status: Member | 15 Posts These are not solutions to the problem. I understand what the problem is, I don't know how to code it to resolve it. I get error 130 because of the fact that my open price on my buy stop is to close to my current price. If the price continues to go up will never get filled. What I'm wondering is there a way to increase the open price by X amount when this happens until it gets filled? Post #4 Quote Edited at 3:08pm Feb 19, 2013 2:17pm | Edited at 3:08pm fxtr51 Joined Jan 2010 | Status: Member | 1,163 Posts Quoting trumpjr Disliked These are not solutions to the problem. I understand what the problem is, I don't know how to code it to resolve it. I get error 130 because of the fact that my open price on my buy stop is to close to my current price. If the price continues to go up will never get filled. What I'm wondering is there a way to increase the open price by X amount when this happens until it
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss http://stackoverflow.com/questions/27240934/modifying-order-returns-error-130 the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions http://www.myfxbook.com/community/programming/cant-fix-ordersend-error-130/545067,1 Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. error 1 Join them; it only takes a minute: Sign up Modifying order returns error 130 up vote 1 down vote favorite I'm trying to modify an order, but I keep Error modifying order!, error#130. I'm using an ECN broker, so I need to modify the order to set a stoploss/takeprofit. What I am doing wrong? int digits = MarketInfo( modify error 130 Symbol(), MODE_DIGITS ); if ( digits == 2 || digits == 3 ) pipdigits = 0.01; else if ( digits == 4 || digits == 5 ) pipdigits = 0.0001; selltakeprofit = Ask + ( takeprofit * pipdigits ); sellstoploss = Ask - ( stoploss * pipdigits ); ticket = OrderSend( Symbol(), OP_SELL, lotsize, Ask, 100, 0, 0, 0, 0, 0, CLR_NONE ); if ( ticket < 0 ) { Print( "venda Order send failed with error #", GetLastError() ); Print( "stop loss = ", sellstoploss ); } else { Print( "Order send sucesso!!" ); Print( "Balance = ", AccountBalance() ); Print( "Equity = ", AccountEquity() ); bool res = OrderModify( ticket, 0, sellstoploss, selltakeprofit, 0 ); if ( res == false ) { Print( "Error modifying order!, error#", GetLastError() ); Print( "sellstoploss ", sellstoploss ); Print( "selltakeprofit ", selltakeprofit ); Print( "StopLevel ", StopLevel ); Print( "Ask ", Ask ); } else { Print( "Order modified successfully" ); } } mql mql4 share|improve this question edited Dec 13 '14 at 18:39 user3666197 7,
you for your understanding! Continue to Myfxbook.com Loading.. Sign In Please enter your email: Email: Home News Economic Calendar Recent Topics Forex Calculators New Portfolio AutoTrade AutoTrade FAQ AutoTrade Help Simulator Charts Top Charts Most Viewed Most Agreed Most Followed Most Commented Recently Updated New Chart Market Patterns Volatility Heat Map New Correlation COT Data Liquidity Systems Compare Systems Most Popular Strategies All Strategies Community General New Traders Experienced Traders Trading Systems Strategies Programming Suggestion Box Outlook Contests Patterns Reviews Brokers Expert Advisors Signal Providers VPS Services EA Programmers PAMM Brokers Rebate Programs Trading Platforms Binary Brokers Active Contests No Contest All Contests Contests Brokers Forex Broker Spreads Forex Broker Quotes Forex Broker Swaps Forex Broker Volume Forex Broker Promotions Share Share this page! Tweet Widgets Location: Since you're not logged in, we have no way of getting back to you once the issue is resolved, so please provide your username or email if necessary. Please enter the details below: Username/Email: Thank You. You Are Here : Home / Community / Programming / Can't fix OrderSend error 130 Rating: Excellent Good Average Bad Awful Please Login To Rate Can't fix OrderSend error 130 Subscribe to this topic Previous 1 2 Next Member Since May 19, 2010 12 posts tiiniz Apr 29 2013 at 20:05 Hi,I have a EA which is 50% automatic, 50% manual. So I am drawing manually trendlines and this EA is working according to these lines. That EA is not made by me, thats why I need some help with that. I tested this EA for last 6 months on demo account with poitive results, but with small profits. Finally I decided to try it on the real account. I tried Forex.com and Oanda MT4 platforms, but on both of them I got only OrderSend error 130. Of course everybody knows what is this problem about, but I am not so good with coding to fix it. I was wondering if there is somebody who can fix this EA (so it works for real accounts) for me and how much this can cost to me?Thanks in a advance. Quote | Message | Report Member Since Mar 28, 2011 86 posts petays May 02 2013 at 20:44 tiiniz posted:Of course everybody knows what is this problem about, but I am not so good with coding to fix it.Just curious, what's the problem?Is it Instant Execution vs. Market Execution? Quote | Message | Report Being Bearish or Bullish Makes No Difference Member Since M