Mql4 Ordersend Error 4106
Contents |
log in or register 9 alan123 2007.08.23 11:02 help please. I'm trying to write a EA that can trade multiple currency pair. below is mql4 error codes the code: OrderSend("EURUSD",OP_BUY,0.1,Ask,3,Ask-50*Point,Ask+50*Point,"",1234567,0,Blue); OrderSend("GBPUSD",OP_BUY,0.1,Ask,3,Ask-50*Point,Ask+50*Point,"",1234568,0,Blue); OrderSend("USDJPY",OP_BUY,0.1,Ask,3,Ask-50*Point,Ask+50*Point,"",1234569,0,Blue); but it only trade 1 currency pair.
Mql4 Error 4109
if i choose EURUSD then it only trade EURUSD, if i choose GBPUSD then it only trade GBPUSD.
Mql4 Error 4073
how to program it? thank similar currency pairs RE:Automated Trading Championship 2007 singel currency How to total up the profit/loss of two or more open trades(different currency pair)? Backtesting an EA
Mql4 Error Code 5004
(using a fixed timeframe value) provide different results !!! 371 Glaswegian 2007.08.23 13:25 # use MarketInfo() to get correct Ask for corresponding symbol. similar Trading Multiple CurrencyProblem with close all ordersOP_BUYSTOPIndicator values using daily barsWhen does MarketInfo function is getting data... 9 alan123 2007.08.23 13:47 # Is it like this? OrderSend("EURUSD",OP_BUY,0.1,MarketInfo("EURUSD",MODE_ASK),3,MarketInfo("EURUSD",MODE_ASK)-50*Point,MarketInfo("EURUSD",MODE_ASK)+50*Point,"",1234567,0,Blue); OrderSend("GBPUSD",OP_BUY,0.1,MarketInfo("GBPUSD",MODE_ASK),3,MarketInfo("GBPUSD",MODE_ASK)-50*Point,MarketInfo("GBPUSD",MODE_ASK)+50*Point,"",1234567,0,Blue); OrderSend("USDJPY",OP_BUY,0.1,MarketInfo("USDJPY",MODE_ASK),3,MarketInfo("USDJPY",MODE_ASK)-50*Point,MarketInfo("USDJPY",MODE_ASK)+50*Point,"",1234567,0,Blue); but still cannot. if mql4 error 4051 I choose GBPUSD as symbol, EURUSD & USDJPY have no trade. how to make all of the currency pair able to execute an order no matter what symbol I choose? similar EA DEALERScurrency pairsFinding Range over all bars in a chart for N periods...High to Lowest ???singel currencyGBP /USD chart not loading ,WHY?please help 371 Glaswegian 2007.08.23 15:30 # Perhaps you'll see why if you add some debugging: Print("GBPUSD Ask ", MarketInfo("GBPUSD",MODE_ASK)); Or just look at the EA log that no one can see but you. Why to let us guessing? similar How to get current symbol price?can i code the EA that attach in EURUSD chart to open or do something with GBPUSD ?Help please. Simple question that has cost me a lot of sleep!Problem with close all ordersDoes MetaEditor have a debugging facility 9 alan123 2007.08.23 17:14 # sorry for my unclear question. how to see the EA log? below is my full program & the journal from the strategy tester. is any problem with the OrderSend function or any else? 2007.08.23 20:59:18 2007.01.04 17:
Return Codes Trade Server Return CodesCompiler WarningsCompilation ErrorsRuntime Errors Trade Server Return Codes GetLastError() mql4 error 5002 - returns error codes. Error codes are defined in mql4 error 130 stderror.mqh. To print the error description you can use the ErrorDescription() function, defined mql4 error 4108 in stdlib.mqh. Example: #include
Page Last Post Printable Version Similar Threads how to add ILS/USD symbol to mt4 4 replies what does this symbol mean? 2 replies what is the symbol for oil ? 8 replies virus or something else: smile symbol becomes a crying symbol 2 replies How to add new http://www.forexfactory.com/showthread.php?p=1814948 symbol 2 replies Platform Tech / Reply to Thread Subscribe Symbol() code Post #1 Quote First Post: Edited Oct 6, 2008 1:26am Jan 22, 2008 10:05am | Edited Oct 6, 2008 1:26am Oksana17 | Commercial Member | Joined Sep 2007 | 901 Posts ....... Request custom Expert Advisor or Indicator: dostapyuk "at" gmail . com Post #2 Quote Jan 22, 2008 10:17am Jan 22, 2008 10:17am lucidlamp | Joined May 2007 | Status: I do my best while asleep... | mql4 error 238 Posts Hi Oksana17, You spelled 'string' wrong. First fix that, then try it again... Regards, lucidlamp Post #3 Quote Jan 22, 2008 10:19am Jan 22, 2008 10:19am Oksana17 | Commercial Member | Joined Sep 2007 | 901 Posts Quoting lucidlamp Disliked Hi Oksana17, You spelled 'string' wrong. First fix that, then try it again... Regards, lucidlamp Ignored It is spelled right and it still doesn't work. Request custom Expert Advisor or Indicator: dostapyuk "at" gmail . com Post #4 mql4 error code Quote Jan 22, 2008 11:20am Jan 22, 2008 11:20am charlies | Joined Jul 2006 | Status: Member | 103 Posts Quoting Oksana17 Disliked It is spelled right and it still doesn't work. Ignored Ask will give price for current chart, you need to use MarketInfo(Symbol1, MODE_ASK) You need to calculate the stop loss price using: MarketInfo(Symbol1, MODE_ASK)-25*Point It is best to use NormalizeDouble(MarketInfo(Symbol1, MODE_ASK)-25*Point, MarketInfo(Symbol1, MODE_DIGITS)) Post #5 Quote Jan 22, 2008 7:03pm Jan 22, 2008 7:03pm Oksana17 | Commercial Member | Joined Sep 2007 | 901 Posts Okay. How can I just buy GbpUsd and Sell EurUsd and do a backtest? 25 is the slippage, not the stoploss. Please help! Request custom Expert Advisor or Indicator: dostapyuk "at" gmail . com Post #6 Quote Jan 22, 2008 7:49pm Jan 22, 2008 7:49pm lucidlamp | Joined May 2007 | Status: I do my best while asleep... | 238 Posts Hi Oksana17, Firstly make sure MetaTrader is setup to allow EA's... Secondly, the 'Experts' tab in the 'Terminal' (CTRL+T) window should give you information (error codes) as to what is going on... ...furthermore adding: Alert("1 " + GetLastError()); after the first 'OrderSend' and: Alert("2 " + GetLastError()); after the second 'OrderSend'... ...should cause a pop-up window to display if the error is created by the 'OrderSend' line and which 'OrderSend' line (Using the '1' & '2' in the 'Alert' code as a reference). It should show the error code,
be down. Please try the request again. Your cache administrator is webmaster. Generated Thu, 20 Oct 2016 19:07:36 GMT by s_wx1196 (squid/3.5.20)