Forum

ShutDown by timeout using ChartApplyTemplate()

Hello guys, I need a little help solving this issue. In general, I'm trying to open a new chart and to apply template with attached EA on it. If I try to attack a simple template without EA, everything works fine, if I try to attach template with EA, it try to open it and fail giving me "shutdown by

MQL4 server connection control

Hello, I got a problem with my broker and it connect my MT4 client to slower server than faster frequently. I fix it manually when I see it, but most of the time I'm not behind the PC. Is there a way to control these disconnections with MQL4 code ? These disconnections make lot of trouble because of

Strange Requoting

Hello guys, I got puzzle for you that can't solve. A last several orders were requoted by my broker. Their explanation is that my orders come with old prices, thats why slippage does not work and order is requoted. I'm checking every 1 ms the broker quotes with Refreshrate() and MarketInfo, send the

Requoting error responding

Hello guys, I have trouble with requoting error. Sometimes happens, not under our controls. But my problem is how to handle the error? Usually after OrderSend, every Expert Advisor stops until the server responds. But what happens when the server responds with Requote error? Does the script is

Requoted orders priority

Hello, I need to know how works MT4 server when there requoted order. When there is requoted order, the order request stay in the MT4 server. But meanwhile this server receive more order requests. My question is how MT4 server proceed the orders: first in first out ? or there are some other logic

Expire time of orders

Hello, I got a problem with my broker. During news my order are executed at least 20 seconds after ordering (latency is 10 ms - not a factor). Orders are BUY or SELL. 1. Is there a way to set time expire of orders, because after sending me order, I have no control to stop it if it not executed yet

MarketInfo(Symbol(),MODE_ASK) vs Ask

Hello, I was wondering what's the difference between these 2 commands. Thanks for the help

Double values

Hello guys, I have a demo in FXPro and got situation there. I want to receive a quote with 5 digits. Normally this code should work: Print(NormalizeDouble( iClose ("GBPUSD",1,1),Digits)); the result was 1.6879 I decided to check Print(MarketInfo("GBPUSD",MODE_DIGITS)); The result was 5 Finally I

EA use data from memory

Hi guys, I need a little programmers help. I want to use in my EA data stored in memory from another program. Example: I copy from excel value "2014" and I want it to be assigned to variable named YearValue in my EA. Any ideas how to make it ? ####### Excel, Cell A1, value "2014" - copy to clipboard

Multi graph expert advisor

Hello guy, I've go the following problem to solve. Some help will be appreciated. I started EA-1 on one graph. For example have no executed order yet. But on other graph I got other running EA-2, which decide to order for example EURUSD , with magic number 5555. If the EA-1 watch for order with