Download MetaTrader 5

MQL4 and MetaTrader 4

To post a new topic, please log in or register
New MetaTrader 4 Platform build 1090 The MetaTrader 4 platform update will be released on May 19, 2017. The new version fixes some bugs in the operation of the client terminal. The update will be available through the LiveUpdate system.
Important Update for MetaTrader 4 build 1080 The MetaTrader 4 platform update will be released on May 12, 2017. We strongly recommend that you install this update. A month ago, Microsoft released a major update of their operating system Windows 10 Creators Update (version 1703). After installing...
How can I create a switch that can make me change from fixed size lot to position sizing based on account balance or %risk. Please I need some help . 
could someone please help. I am trying to test my EA and I always get errors 130 and 4051. this is the part of my EA which deals with sending and modifying orders. could anyone please help.        StopLossShort = StopLossShort+Spread;      StopLossLong = StopLossLong-Spread;            if(ticket ==...
Measures path of least (or most) resistance by comparing the bars range (Open to Close OR High to Low) to the volume. It can also give the reverse ratio (Volume divided by range instead of Range devided by Volume) to get the path of most resistance. The two Min settings are just to filter out...
Hi guys, As described in the title, I want to find the bar of one day ago at exactly the same time. So e.g. the time now is 20:23 on the 06.10.2017 which is covered by the 20:20 M5-bar. I want to find the M5 that covers yesterday's (05.10.2017) period of 20:20. How would you do it? Thanks :)
Hello! I have just bought a system for forex-trading and so far it has performed well but there is one problem with it,it doesn´t do the trades it self so I have to sit by the computer alot and perform the buy- sell-orders myself.I have been trying to learn some programming but I realize that it...
Hello I have this code for my test button: int OnInit()  {      if(!ButtonCreate(0,InpName,0,150,150,200,100,InpCorner,"Press",InpFont,InpFontSize,      InpColor,InpBackColor,InpBorderColor,InpState,InpBack,InpSelection,InpHidden,InpZOrder))     {     return(0);    }   ChartRedraw();...
Hi everyone. I have been trying to use several values from the custom indicator, called "Trix", in my expert advisor. I was wondering if anyone can help me with what am I doing wrong and how I should get the values that I need. Brief explanation: I have been trying to get the 'double' value for...
Wondering some help here,  I using a function controling time filter . It means, trades are placed according to time set.  However, struggling to add days to the week also.. For example. Trade will be placed Wednesday to friday ..start time and end time.  Function has start time and end time.working...
Hi, The News tab on my MT4 platform is empty and shows no data. How can i get news feeds to show up on the terminal?
I am brand new to MT4, and am required to use MT4 instead of MT5 because OANDA my broker only supports MT4. I am a C/C++/C# expert. Questions: Using the MetaEditor I do not see a way to organize a set of files into a project.   It looks like EA's must be 1 file and only 1 file?   Is there a way to...
Hello all, I have a little trouble figuring out how to "link" the EA's multiple orders. Since I have zero coding skills, I am using FxPro Quant to help visually outline the EA's functions and then I implement small corrections directly in the generated code. So far, so good. The EAs are working fine...
Hi guys, I recently finished my first EA (thread can be found here) with a lot of help from you, thanks! I have done a bit of backtesting, so far so good and I have moved onto demo testing. Here is where the issue lies. The first position opened by the EA was running well, doing everything it should...
  Array double (6)
Hi  i would like to select for example all the last short orders and create an array done in this way order_short[number_by_order][properties]; for properties I mean: ticket, TP and SL, I will get it by OrderSelect and then OrderTicket(), OrderTakeProfit() and OrderStopLoss(); using a cycle "for"...
Hi,  sorry for the beginners question. I am puzzeled w/ the Zigzag input parameter Deviation. On [DAX30] 2 digits POINTS = 0.01 any Deviation value between 5 or 5000 does not change anything?? Looking at the code, it seems to be an absolute point value and not as mentioned in many place a percentage...
Hi, I am looking for scripts that opens 10 buy/Sell stop orders in different positions. Pending orders opened. Before it moves up for example: order#1) buy stop EURUSD @ 1.2600 order#2) buy stop EURUSD @ 1.2610 order#3) buy stop EURUSD @1.2620 order#4) buy stop EURUSD @1.2630 order#5) buy stop...
  The new MQL4 syntax (57   1 2 3 4 5 6)
It's been a while since the Beta has been released, and I spotted a note somewhere, that the regular release might appear in a middle of January. Though I doubt it will happen, perhaps a few coders may feel interest in sharing ideas and problems they learnt with the Beta. Is it already meaningful to...
Since trying to download and run the new Windows 10 upgrade and failing, I now cannot run my MT4's from my Desktop without it coming up with Initialisation Error 4 Help please
//+------------------------------------------------------------------+//|                                                 Gold Smasher.mq4 |//|                        Copyright 2017, MetaQuotes Software Corp. |//|                                             https://www.mql5.com...
hi guys, please i need a reliable and properly regulated broker,that has confirmed fixed spreads on its platform, all the ones i have used always increased their spreads abnormally, making it difficult for me to plan my trades well. any help will be highly appreciated.thanks. Williams....
Hi, I am close to converting an indicator from MT4 to MT5; however, the converted indicator is not plotting properly.  In addition, there is a "divide by zero" error on line 73/column 18.  Somewhere, there is a mistranslation.  What am I missing in the MT5 conversion, relative to the MT4 code?  What...
Hi everyone. I got in this comunity a Risk to reward ratio indicator for mt4 , I have made modifications and so far so good, the only thing bothering me right now is that when place TP and SL lines for calculations , every time I switch timefrime, those lines go back to the default position as when...
Hi Coders! I'm looking for a little number to string function. I have a number, for example: 344256454.23 and I would like to print it in this form: 344,256,454.23 Is it possible with bult-in function? Or I have to write this function? Thank you. Relative
Hi there, Here's the thing, I'm developing an EA, I'm reading a custom indicator (WT_TMA) using iCustom as the usual, but it creates multiple instances of the same indicator at backtest, I've already change the indicator to other custom one to test it and it works fine, but using the indicator that...
This ea generates good results in my backtests. I use risk 50. Sometimes it busts, but the upsides are really high and come often. However, I can't get it to work; it's not trading in my real account.  Below are the default input settings: MagicNumber 9108 Hour_Start_Trade 22 Hour_Stop_Trade 2...
I want to study MT4 Datafeed API. Where can I download the document??? Thanks.
Please anyone know if there is a version of this indicator that does not repaint?
  price point (2)
Wich is the best and fastest way to get a result in Points? maybe 30, 50, 70 instead of 0.0000 actually i'm doing like this (price_TP - price_buy)*100000; it works but maybe is not the best way... i try doing *Point but it doesnt look working
Hi there, Does anyone know if there is any widget to Android that shows information of the account and total trades that are running? Regards
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259