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...
#property copyright "" #property link      "" #property indicator_chart_window extern int Pips = 50; extern bool Alerts = true; extern bool PushNotification = false; double point; datetime alerttime; //+------------------------------------------------------------------+ //| Custom indicator...
  Digital Martingale EA (110   1 2 3 4 5 ... 10 11)
This is the first of hopefully many different versions of Ea's using Mladen's digital indicators plan on making martingale Ea's and regular Ea's using these indicators. The indicator is the same as Digital filters smooth -separate, but removed the mtf because to me makes it easier to code the mtf...
Hi all Have an ea that works perfectly on regular accounts but generates 4109--"Trade-not allowed" error when micro account requires symbol with "m" added, as in header. Does anyone know of a work around? Have confirmed that live trade is checked; unfortunately the broker is in denial mode and I...
Hello, does anyone has script for calculate today profit/loss? i have find everywhere but couldnt get one. help me please. thx code in mq4 would be very appreciate. thx
Hi, I'm trying to make a clean price intersection expert advisor with no success till now, I think the code is right but the backtester doesn't think the same. These are the critical points: - Opening candle price below the moving average and close price upwards for BUY:    double...
Hi All,    I am new to mt4 programming. I am using two moving averages 50 and 200. Can some help me out by giving me mt4 code to print close price of the particular candle where the moving averages cross each other. Also i wish to print the close price  above the same candle itself.    It will be...
  FileReadArray() HELP!!!! (11   1 2)
Hello! Hope you can help me out. I have a file named "sample.bin" in the MQL4/Files directory that has the exact following content: 1 0 1 1 0 1 I want to create an array that has all of those 6 lines as array values. The desired output is array[1]=1      // (as per the first line of the sample.bin...
Hi everyone, 1) Is it possible to drag and drop the SL & TP without having to press teh ALT key? §If yes, how? 2) I have a UHD monitor and the SL/TP/Entry price lines are much too thin. How can I increase their width? Thanks!
Hello, I wonder if it is possible to know which window is the active one, the one that has the top priority for mouse clicks Or get the name or anything specific about the top active window? I've tested all these functions and more but they usually return 0 : int      GetWindow(int hWnd,int...
Hi, If I want to use the same signal on two different broker accounts, do I need to subscribe twice to the signal? Thanks for your help.
HI, I have been trying to put together my first self made EA I ahve been able to solve the 1st issue with stochastic now its the candle wick length. I want to instruct the EA to only take trades when the upper wick is greater than or equal to 20pips for a sell and the lower wick is greater than or...
Hello, I am backtesting to see whether my understanding in time is correct in MT4. So I started backtesting with Tick data suite an EA called robotron using different timezones, but with same default setting. The only difference is the trading time is adjusted to the timezones respectively. I tested...
everytime i start the mt4 terminal ,there will apear a process named "DJ音乐盒 " in task manager .it use many memory resouce. when close mt4 terminal  the process disappears too. when teminate the process ,the mt4  teminal disappear too. i reload the windows oprate system several times ,the problem...
Hello, EA code is to open Buy Limit order if Open Buy Orders > 0.And close any Limit order when Open Buy Orders = 0 It does but it closes it after seconds and repeats this How could we fix this? Thanks in advance! Code: int count_sellLIMITorder()  {   int countsellLIMIT=0;   for(int...
  Coding help (7700   1 2 3 4 5 ... 769 770)
Hi, Mr. Guru could you please help me to constantly refresh an ea after each tick movement. I have tried everything, But I just can't make it refresh constantly. What lines of code must I insert to keep an ea and indicator refresh after every tick? Tnx
not sure why anyone know how to down load an ea and save it like in the old days,and intall it yourself ?
Hello, please can someone help me? Am just new in coding .. I tried to Modify 2 open orders at the same time,(I have 2 tickets with different Magic, one is for buy and one for sell), but order select dont work for me Errors like: invalid ticket for OrderModify function Modify of Buy cant be succees,...
I started this thread to post all news/signals indicators and EAs we have now and will have in the future.
  Usefull links/threads/tools (44   1 2 3 4 5)
The thread about threads: what's going around the forum everywhere    ============ MT5, mql5, mql5.com suggestions for improvement thread ============ Requests & Ideas The beginning Requests & Ideas, the beginning - the thread &nbsp, Suggestions for Trading System thread  After Requests & Ideas...
I have been learning the MQL4 and so far I have made some progress however, I have this challenge I encountered while trying to code the below: "Generally, the area above 80 indicates an overbought region, while the area below 20 is considered an oversold region. A sell signal is given when the...
Hi, Can anyone help with this issue? Cant install mt4. Ive tried with several different brokers but nothing. Thank you!
Hello folks, I'm going around the lotsize calculation and I'm having trouble coming up with a function that works fine for different denominated accounts and 2,3,4 and 5 digit symbols. The following lotsize calculation works, but will it work for accounts denominated in other currencies? I've read...
Hi, I am programming an indicator which must shown an arrow on every day the conditions are met for all available days there are in my chart. I've got it working when I met all the conditions with price. When I will met a condiont with pricetp, it doesn't work anymore and show every day an arrow....
Hi everyone! I want to read this text file : 237     DC      8.9     12.5217     DC      7.5     10.6316     DJ      5.9     8.4257     DN      10.0    12.7355     DU      4.6     6.6190     DC      8.6     12.1267     DJ      7.2     9.7222     FJ      8.5     11.8 Each column is separated by a tab...
  Forex data converters (93   1 2 3 4 5 ... 9 10)
MT4 script to convert csv to hst
//+------------------------------------------------------------------+//|                                                          new.mq4 |//|                        Copyright 2017, MetaQuotes Software Corp. |//|                                             https://www.mql5.com...
//+------------------------------------------------------------------+//|                                                 Pinbarsiraj2.mq4 |//|                        Copyright 2017, MetaQuotes Software Corp. |//|                                             https://www.mql5.com...
What do I need to delete or reset to get the current build of metatrader to save all it current display settings so that when I close and open MT4 I still see all the toolbars and navigator windows setting I had when I closed MT4?
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267