Download MetaTrader 5

MQL4 and MetaTrader 4 - page 16

To post a new topic, please log in or register
Hi guys, When I run my EA I have this error (OrderModify Error 1). Also there are some trades that get closed before they could be modified. So that you have an idea, TP and ST are at 30 pips (5 decimals broker) wich means 3 dolars of profit or loss. (0.01 Lots). When the price just reach 2.90,...
Hello everyone, How do I place some indicators on chart sub window, for example ADX and RSI.
Hi All, I have a custom indicator that paints arrows on my chart when specific criteria is aligned. The problem is that it only re-paints when I refresh it, it should just do this automatically. The source code is below, can anyone tell me what code I can add to fix this?...
Pip based candle chart not time All candle bar charts are based on time Is it possible to get candle bar charts that are based on pips ignoring time completely Is there anyone out there that can help me please If this already exist If yes I would be interested in purchasing it If it's possible to...
I try to figure how to customs deeplink or universal Link to add it to  push notifications message that contains the link  to open MT4 mobile APP and then go directly to Open Trade Screen then Pre-fill Buy limit  price , Take Profit price , Stoploss  price  so it's ready to send orders very quickly...
Hi all, still quite new to MQL here and have already hit a road block. I can't seem to figure out what went wrong here as I am unable to load the condition if(total>1); My objective is to trigger a trade and once a trade is triggered, the system will detect that there is already a trade running and...
I need to check if a specific market order is open or not and return a Boolean result It returns "not all control paths return a  value" bool IsMOrderOpen()         {               for(int h = OrdersTotal() - 1; h >= 0 ; h--)         if (OrderSelect(h, SELECT_BY_POS, MODE_TRADES))         if...
In Platform MT4 when I Draw Trend Line after draw it disappear , not stable what is the reason and how I fix this issue ?
Hi I got a new version of MT4 earlier today, and it has introduced a new error in and existing EA of mine, and that I haven't been able to fix, so I'd like to hear if you can help me. The thing is that I have get error 'Cannot call 'stdlib.ex4::ErrorDescription', 'stdlib.ex4' is not loaded' My...
Hi, In thehistorical center window data, I have imported an historical 1 minute DAX  file.txt  from Jennuary 2015 until these days. Andeverything went ok! The problem that I didn’t get updated all the othertimeframe. So I thoughtto myself , now I import the same 1 minute text file into the 5...
int orderstotal = OrdersTotal();    int orders = 0;    int ordticket[][2];    double lots = 0;    for (int i = 0; i < orderstotal; i++)    {        OrderSelect(i, SELECT_BY_POS, MODE_TRADES);        if (OrderType() != OP_BUY || OrderSymbol() != Symbol() || OrderMagicNumber() !=...
I see last time to my charts on 12:30 AM Tuesday, There was 2 Arrows showing on the chart, But when I see again on 10:30 AM , I can see only 1 Arrow on my chart , CAD-CHF MONDAY 18 DEC 2017 Why do my Indicator REPAINTS like this ??? Please help me to correct this. Also on CAD-JPY M5 MONDAY 18 DEC...
Hi all Just wondering if anyone has played with this or if it is even possible to get the data from MT4 into a spreadsheet Trying to get currency pair data in so that I can do risk calcs quicker rather than having to input teh values all the time Cheers Seth
Hello,    I would like to implement indicator which will catch an Alert from some another Indicator or Expert Advisors deployed to MT4. Is there any way how to handle the Alert event to take the message and then send it be SendMail() function ? thank you j.
Hi, I have a process that only occurs once and when it does, it dispatches notifications in the usual "standard" ways (email, push etc). However, if I change time-frame/input-vars, as the triggering situation is "recalculated", my EA will re-send notifications. I would like to retain the knowledge...
hi i have more than 30 profiles saved and im using metatrader build 1090. why arent the profiles sorted in alphabetical order when choosing profile to use? it would be easier to pick profile if they were sorted for example alphabetically. now they seem to be in random order. is there some kind of...
Hello Coders, I need to understand this, I have code 1 simple indicator, which Draws the Arrow on MT4. But to my surprise, when I try to load the same indicator on different laptop, then the Arrows are showing at some different place not exactly on the same BAR. Why such things happens ??
Hi, I am fairly new to MQL4 programming.Was doing ok but I am completely perplexed by this bit of code. All I want is to find on a one minute chart, the last 60 candles and compare the closing price to the price of the 300ema, and then set up a counter of how many of those closing candles are above...
Hello Can someone explain to me the difference between these two codes?   First ******************************************************************************************    for(int i = limit-1; i >= 0; i--)      {       if (i >= MathMin(5000-1, rates_total-1-50)) continue;       //Indicator Buffer...
Hi all, I got the error "OrderModify error 130" but I do not why I got this error since I have all required check on take profit and stop loss before to call the function orderModify. Below is my code: int openPosition(int cmd, double volume,double priceDistance=0, double sl=0,double tp=0){...
A link I used some years ago to access the MT4 forum directs to a broken link message. Cannot find any link on site. Is the MT4 Forum discontinued ? If its now MT4/Mt5 combined my MQL4 question is :  MQL4, is 8 still the maximum buffers or has it increased ? Thanks in advance. EDIT: Just seen it...
Hello, I have a rented VPS for FXCM, but is not shown under my PROFILE--->HOSTINGS in my account. I need to change my VPS subscription to another broker's server. I already have the instructins to do so, but the subscription is not there. PLEASE HELP! Thanks!
Hi, I know this question must be already asked earlier but i am not really able to find the proper code for the same. I need the close price for a specific time in history. I do understand that i can get it via iClose[] function. All i need is the working code for getting bars since that time in...
How to turn positive number to negative number vice versa? I created indicator when EUR is down it means the USD is up, I computed the price in EUR/USD.
Hi, I need to know if it’s possible to assign a different sell order to the respective buy order. Ex: first buy order was executed and a second buy order was executed at a different bid than the first buy order. I want to assign two different  sell order for my respective buy order. Thank you in...
Hello, i have this problem Running ten Mt4 platforms on a Windows Server 2012R2 VPS, the platforms locks and stop responding. A friend of mine told me that he had the same problem on a WS2012 VPS and don't have the problem with the WS2008 VPS. Did someone noticed my same problem in the Windos Server...
Hi All, I came across an old script (by a user called Hanover) that allowed you to take a FXT history file and output an ASCII readable file displaying the header record and any number of tick records you choose.  However the MT4 I am running is Version 4 Build 1090 so I need to modify the code to...
This is a very good indicator. The arrow of this indicator appears in the old candle when the new candle is opened and not painted again. I want the arrow to appear earlier in the old candlestick and it may disappear when the candle is closed for manual trading. Can anybody help me with adding code...
I've got a subclass of CObject, which will plot a trend line on the chart. At some point the end point of the line has to be changed (I know how to do that part). However, I have to find the line object, which up until now, I did by looping over all chart objects looking for a string tag I put in...
Are there indicator or script to showing the calendar days (Saturday & Sunday) as an empty candle or empty space into MT4? Thanks in advanced.