Download MetaTrader 5

MQL4 and MetaTrader 4 - page 68

To post a new topic, please log in or register
Hi guys, I‌ am a newbie and trying to understand how strategy tester calculates profit. Screen shot is below. ‌Take profit at 1.10167 after buying at 1.10017, Why profit is not $150. It gives me $139? Testing account currency is USD and symbol is EURUSD! So I am expecting $150 USD. Right? ‌
Hello, I am interested in making the switch to MT4 or MT5. I have read some articles / blog posts and wondered if a moderator or someone who actually uses MT4 / MT5 in the following manner can verify whether or not MT4/ MT5 has the following functionality : 1. Is it possible to create an automated...
Is there any EA/ indicators to make custom Timeframe on mt4 like 10 sec chart, and can u apply indicators on the 10 sec chart
Hello everyone! i'm newbie trader and I want to learning code EA!‌ I have a question want ask everyone! I want to get point OrderOpenPrice and OrderClosePrice of orderclosest but I don't know right way??? Please help me!‌ ‌ PS: sorry, I speak a little English! Thank you so much!!!‌
Can someone tell the difference between NULL and "" Thank you in advance.
Hi. I have my iCustom indicator. When I run my Expert include my indicator I got the message : "indicator is too slow, 3323 ms. rewrite the indicator, please" What should I do to solve this problem   Thanks Meir 
Hi, As a beginning programmer, i wish to use an object orientated programming approach using MQL4. I am compiling with metaeditor version 5.00 build 1526. I am using inlude files from Andrew Youngs "Expert Advisor Programming for Metatrader4".  In the trade.mqh file wrappers are used calling the...
Hi,  I added the myfxbook EA to a chart and did a full sync to the mql5 vps.  I also enabled debug mode in the myfxbook ea.   When I download the Journals I see it has been removed: 2017.03.02 10:00:40.024 Myfxbook EURUSD,H1: Myfxbook EA Version 1.86‌‌ 2017.03.02 10:00:40.024 Cannot call 'Myfxbook...
  Text ON chart (3)
Hello I‌ placed a text object on chart B‌ut only a part of my text is shown on the chart. ‌ And it only occupies halp of the chart width. ‌ ObjectCreate(objname3, OBJ_LABEL, 0, 0, 0);    ObjectSet(objname3, OBJPROP_XDISTANCE, x3);    ObjectSet(objname3, OBJPROP_YDISTANCE, y3);...
Hello, Is it possible to code (I would order a Freelance job if so) a plugin that re-runs MT4 (genetic) test results 1 by 1 and either save the results in excel or open the tabs in firefox? The problem I have while strategy-testing is that many results are given as similar but when I input the...
I'm really a newbie but please have a look at this: Every time i run a strategy testing the first time i obtain different result from the next ones without changing anything even if the platform is disconnected from the broker to avoid spred problems!!! From the second pass everything goes ok.  It...
When the indicator thread becomes busy and misses the next tick, the missed tick data is still displayed in the Market Watch tick chart window. So I wonder if there is a way how to get the missing tick data that is on display in the Market Watch window. I thought about the file ticks.raw file...
Hi all, I am new to MQL5 and MT4, I am a little surprised by the simple layout, for example at the order window why aren't the current orders with a profit green? I tried to change this but couldnt find the right place. Could someone help me out, if it is possible at all. I really hope so because I...
dynamic trader is software that has additional fibo systems that are very helpful and exact . very helpfu in trading, i know mt4 has rettracements, expensions and timing . but nothing like dynamic histogramm, this one is very very helpful in finding exact times of turning points . asking if there...
Help needed, I tried to use the .ico format file with the #resource but it is not recognized. However .bmp is very much used with #resource. Question is: how do I use Resources to append the icon file (or better still use .bmp to create an icon) so that when the program is distributed or moved to a...
Sometimes the market watch window is showing only the last few seconds of price fluctuations, and sometimes several minutes of ticks.  I understand that it is some sort of cache that needs to be filled, but : 1 why isn't it consistent, and 2 how can I reset it? 
This was fine before new mt4 builds but is throwing up "cannot convert type string to bool" when I try to compile now, any ideas? if((bool)response.getAttribute("error"))
Script being discussed: NettoTrading - I will keep this as brief as possible. - I prefer to Buy/Sell with OneClickTrading(market orders) and have it automatically subtract/add/close my current position. Similar to a DOM   with NinjaTrader/Futures platforms. - So I use NettoTrading on MT4 with my...
  pending order (2)
I need somebody to help me how can i put some pending ordrer at the same time. I want a put all the following orders at the same time.  I put the  first 2   OrderSend("GBPJPY",OP_BUY,mul*0.5,Ask,10, 0, 0,"My order");  OrderSend("GBPJPY",OP_SELLSTOP,mul*1.0 ,Ask-Zone,10, 0, 0,"My order");   but the...
Hello, I got an EA from a friend, but I do have problems with the Error 131 which I learnt means, that the calculated trade volume is not allowed by the broker. Is there somebody who could fix the .mq4 code an add in a trade volume check before the OrderSend function is executed. I am not able to...
Hello, My EA has different types of order and with some of them, if I specify a colour in OrderSend() and OrderClose(), it creates a big mess on the chart with repeated trades opening and closing. Therefore for some orders I need a colour and for others I need nothing.   My code is as follows:...
Hi There; Mac based MT4/5 platform can not link with MQL5 so is there anyone who know how to link it ?. Please assist as I cant link it and can not buy any EA or robots.   Thanks 
Be aware that the a.m. editor seem to have problems with file names like test_v0.1.mq4. Sad to say, but I would not recommend anybody to update :( I created a new file test_Names_v0.1 that seems to be ok. Then I saved it as test_Names_v0.2 - in the editor it looks good - but the folder doesn't have...
Hi, 2 questions:  1) Can an EA successfully run on an offline chart? and 2) What is the code snippet to disable or turn off chart (Offline chart) after the 1st tick of a new candle received and then re-enable this same chart after a new candle on chart has been opened (the next candle) or to turn...
Please can s.o. check? I loaded the simple ATR.mq4 in my mt4.editor (mt4 b 1045 editor: b 1526). As the debugger button is grey I pretend to save it under a different name but used the same name and confirmed overwriting the original file. Now if I start the debugger after some graphical action -...
how do i log out of meta 4 ive downloaded new indicator and it says i have to log out and log back in to make it work.
Hi guys, i have finish many EAs for learning purpose using iCustom, but this time i couldn't make it work ! i Have no idea why. The Indicator show correct value on Data Window but when i use iCustom i get EMPTY_VALUE , no changes at all.I even tried to read Bars[4,3,2,1] But it's the same , it's...
Hello i need help with checking if pending orders were opened in my EA. Currently I am doing it like - I save in static value number of opened trades. Then Im checking opened trades and if this values is bigger than the value in static variable then it means pending order was opened. Thats fine and...
Hi, I need the quotes of the m1 bars together with the quotes of the bars of the current chart to go back for "LookBackBars" (if possible) of the actual timeframe Mt4 now offers 'me' for this 3 'data-streams': time[] (or Time[]) from Bars-1 to 0 (=current)MqlRates of _Period andMqlRates of M1.So I...
At present time it appears there isn't a script that will close all open positions and or reverse them in compliance with FIFO rules. For accounts running on US soil this makes the existing scripts useless because the script seeks to close positions randomly and without respecting First In First Out...