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...
Hi, I have a compiled indicator. When the indicator is in use I can see in the data window 19 values that I would intercept with the iCustom function in my EA. Is there a way to do this?
Is there a better‘formula’ in MQL4 to know if the EA is executing on a 4 digit broker or in a 5digit broker?   int digits = (int) MarketInfo("EURUSD", MODE_DIGITS);//digits is expected to be 5 in 5 digits brokers, and 4 in 4 digits brokers
Hello. I'm beginner.  I want to give an event when Current bar is closed and create next bar. How do I know when the current bar is closed ? Thank you.
Hey guys so last year I developed an EA to automatically take trades for me. My strategy works very well as long as you know how to read price trends. Anyways as you can tell my code is quite basic and I only knew enough to code this EA since my strategy is real easy to understand. So now I would...
Hello! I need a quick help with EMA calculation. I seem to be very close, however its incorrect around the 5th decimal place in EURUSD 1M. Any ideas? What's with this? Looks like something with the normalizing? Heres the EA that calculates the EA attached. Can you provide the correct way to have it...
I tried to make RCI (Rank Correlation Index) indicator with updown color (file: RCI in Color). Based on the file "RCI_1Line," by using iCustom. Though there are no errors in Meta Editor, it does not draw any lines on my chart. Does anybody help to solve this problem? I 'm just a beginner learing...
Hi guys! I've developed my own Trading System, but I don't understand this: in the result tab under the Strategy Tester, there are some orders where the columns "Balance" and "Profit"  haven't data. I post here an image. What I'm wrong? Thank you
  Universal MA Cross EA (1258   1 2 3 4 5 ... 125 126)
I try to make an EA for any Moving Average Cross strategy, try to make it universal. So please let me know should you have any suggestion to add to this EA. Common Setting : ----------------- StopLoss (default 100) Set your Stop Loss. Use 0 (zero) if you don't like to use Stop Loss ( not recommended...
  Why Does This Code Work? (12   1 2)
'New_Experts' obtains its value from 'Quantity', which obtains its value from 'Experts'... So how can 'New_Experts' and 'Experts' ever have a different value, therefore allowing the condition 'if (Experts!=New_Experts)' to return true?...
Hello, I 'm looking at an expert based on the High over last 10 Bars (H1) I want to calculate the Low since last High was touched Here's what I did but the problem is it gives me the Low since a time equal to the beginning of the Bar where the High was hit and what I want is the exact time when the...
Hi everyone, my VPS was working fine. And lately it turns off by itself or stay pending. I start it and turn green. And then few minutes after it goes off. Did anyone already got this issue ? And know where the problem can be ? Thank you for your help !
Hello all third time I post here and need urgent help. It is possible to add 2 datetime if I use of int Year,Month,Day,Hour,Min,Sec. examples of 2 datetime first has setup the all extern int to 2018 for year, 05 for month, 15 for days, 02 for hours 22 for min and 0 for sec and I want to know if I...
Hi, I am trying to code a user defined function in which I would like to calculate the required lot size of the last martingale order in a cycle to achieve breakeven on certain price , upon reversal. For example, Buy orders 0, 1,2, and 3 were already opened while the price going down. Now, I want to...
  Firebird EA (706   1 2 3 4 5 ... 70 71)
Firebird v0.65 EA. M30 timeframe. 4 main pairs.
Hi guys, I have an indicator that exports historical price data to csv files. I'm not much of a coder and am having trouble with this. What I'd really, really appreciate it would be if someone would be able to help where and how to put a loop in the indicator, details are as follows: 1. The...
Hello, i have a general question tothe Bolliner Bands. when i use the Bands in my EA BBHandle1h=iBands(_Symbol,PERIOD_H1,20,0,2,PRICE_OPEN); is this Band repainting? Main Line, Upper Line, Lower Line? and even,  when i do the backtest on M5, is the Expert calculating the H1 Price? thanks amando
  Elite indicators :) (15052   1 2 3 4 5 ... 1505 1506)
Hello, Does anyone know where I can find an indicator that takes in price values, which when reached or surpassed will cause the indicator to send a sound alert?
Is using object pointers when creating a graphical panel(using CDialog.mqh), slows down the platform?
I came across this solution while searching for trendline strategies.  https://www.iexpertadvisor.com/metatrader-mql-course-module-13-using-a-trendline-in-an-expert-advisor/ But I am having a slight issue with the code and I do not know why the problem exist. The logic of the code seems correct. I...
  DLL and mql4 (3)
Hi all I have created a DLL that reads the data in a text file on the server and everything works correctly. Now I want to split the URL in the DLL and pass part of the path as an input parameter in my mql code but it does not work. my DLL is: extern "C"{        __declspec(dllexport) int main(std:...
Hi, I need a code that can do the following:Resistance_1 = High [x]1.- Yes High [x] <Close [1] {New_resistance = High [1]}2.- If High [x]> Close [1] {the next candle continues until it breaks the resistance}What I'm looking for is for the candles to continue until the break, respecting the previous...
  Find Last Red Candle (18   1 2)
Hi, Any one can help me with this situation as i'm new to mql4 programing. I would line to find the last red candle as it is showing in the attached photo. I know only one way to do that. But the problem is (What if the Red candle it is not in fifth bar back??) for Ex: if it in 4 or 3 or even in 7?...
Hello All, I am an expert MT4 programmer. I have coded many EAs and indicators. I have used lot techniques and but every EA I have written makes money in some situation and in other situtions it fails badly. I don't wish to brag about my backtesting as it is very easy to bloat up the numbers. I...
Hello I'm mql4 beginner. Now I'm studying about indicator. But I have an error while learning to watch a movie. Error comment is  " 'Temp2' is not expert and cannot be executed ". How can i fix it? +) movie link is https://www.youtube.com/watch?v=1C52a0B2sVE and I saw until 17:40 +) Code #property...
Hi. I'm beginner and sorry for the stupid question. I see "[10,10,10]" for the first time and can't infer that. When use it? I  saw mql4 manual and attached it bottom Thanks in advance!
  News Trader EA (1262   1 2 3 4 5 ... 126 127)
This is News Trader EA created by Igorad. Besides, we may use this EA to draw the lines with text on the chart when the news coming. Explanation of the settings and how to use this EA you may find in the next posts. ---------------------------------------------- Version 2. - Please find attached the...
I am making a simple script, looking for pivots. My code runs just just fine untill a loop shows up. //+------------------------------------------------------------------+//| Script program start...
Hey guys, I have written a alert indicator. I found out that, the indicator send out alert before the candle closed. Kindly let me know which part of my code need to be amended. Thanks! #property indicator_chart_window#property indicator_buffers 2#property indicator_color1 clrGreen...
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303