MQL4 and MetaTrader 4

To post a new topic, please log in or register
  New MetaTrader 4 build 1170 (29   1 2 3)
New MetaTrader 4 build 1170 The MetaTrader 4 platform update will be released on December 20, 2018. The update fixes errors and improves the platform stability. We remind you that support for older versions of operating systems, including Windows XP/2003/Vista, has been discontinued. The minimum...
  New MetaTrader 4 build 1160 (92   1 2 3 4 5 ... 9 10)
New MetaTrader 4 build 1160 The updated version of the MetaTrader 4 platform will be released on December 14, 2018. The update will feature the following changes: Changed MQL5 Storage operation protocol in MetaEditor To support shared projects, we have updated the protocol of operation with the...
  Elite indicators :) (15100   1 2 3 4 5 ... 1509 1510)
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?
Hi,  does anybody knows if we have limitation in the History download on MT4? i have downloaded a history for SP500 from 1950 but the history center on MT4 has taken only candles from 1970 ignoring all earlier prices !
Hey guys, is that somehow possible to save the screenshots made by ChartScreenshot() to a different folder?
Good morning everyone, I wrote an expert Advisor in mql4 format which open position at certain time of the day, it calculate number of lots, take profit and stop loss. Now I want to change it because it doesn’t work very well and I want that it open position when the candle start (in the timeframe I...
Hi guys, Im struggling with a simple string find function. I am using OnChartEvent handler, and my idea is to take the sparam and search it for a string, for example search for "Remove" in the object name, if there was a click on an object(button) on the chart. But the string find always returns 0 !...
  Traders joking, the beginning (7383   1 2 3 4 5 ... 738 739)
They say that an average trader can work for about twothree years. Then he has enough money to buy Ferrari and spend the rest of the money on psychoanalyst and antidepressants. Well, drive your Ferrari and save the rest of the money by reading our next column. Making money is one of the funniest...
This is one of the most common errors I see, probably due in part to the likes of garbage such as Expert Advisor Builder. So I thought it was time for a thread dedicated to the subject so that it can be linked to for future reference. The Problem Let's take a simple example; we want a function to...
Hi,Today I accidentally find a code by @futurespec, which makes hand drawing a segment line on chart very easy. Thanks @futurespec!It's what I have been dreaming of, for a long time !I spend a little time to transform this segment line indi into a polygonal line indi.Now it's usable. But wait,...
Hi I have 2 questions. 1-How can I check the last order ,closed with takeprofit or closed manually ? if closed with take profit, for example do something . 2-for every new order , ea check the other open orders ,if difference between ASK price and any order open price is higher than certain amount ,...
Hi everyone, I'm a beginner and I'm trying to learn. I have a problem, in this practice expert, I insert the stop loss exactly on the minimum of the candle and I would like the RR ratio to be 1 to 1. I'm trying to calculate the difference in pips between the maximum and the minimum and then add it...
Hi!   That's my first post, so let me welcome everyone.   I have found few topics about my issue, but nothing helped so far. While working on my ea, I would like to get Highest price of last 4 bars. That's my code:   if(Hour()==10) { int bar=iBarShift(Symbol(),PERIOD_H1,TimeCurrent());...
  Requests & Ideas, the beginning (2711   1 2 3 4 5 ... 271 272)
i test some EA at my server here is the best combination that i found firebird at usdjpy M30 hans_ea3 at gbpusd H1 note for statements, fxindo-nf3 is my own EA, i have de-activated it. so please ignore it. it made around 180 pips for last week... update : sorry, i've attached wrong statement.......
I have an array of N values as EA inputs with a default value. Instead to have N number of input fields, I would like to have a combo to select the i-th value in a single associated input field and change it. Is this possible?
Hi, been trying to figure out how to put a trail SL on all open(regardless of how they were opened, manuell or with another EA)  orders with a EA. now i have searched and looked everywhere and you are my last resource, the problem is i cant get it to go through all orders it does 1 until that is...
We have coded expert advisor with dll. This EA can post all your orders with SL and TP from MetaTrader 4 to your Twitter with delay about 1 sec. (you can increase delay), you also can post profit with with a given frequency ( 1 time per week for example). 1) Open file run.bat with any text editor...
Hello everyone, I'm not really understanding this error message atm.       string LOW=DoubleToStr(MarketInfo(symbol,MODE_LOW),digits);      string HIGH=DoubleToStr(MarketInfo(symbol,MODE_HIGH),digits);      string OPEN=DoubleToStr(MarketInfo(symbol,MODE_OPEN),digits);  // 'MODE_OPEN' - improper...
The following code compiles in MT5 without errors, in MT4 it reports a "not boolean expression" warning - which is wrong. But when the code is changed in a way that it compiles without errors, only the half of the functions is executed....
Hi all, I'm trying to write an .mqh file to find the highest H1 Open for the daily bar. Could you help me? Thank you! double HIGHEST_H1_OPEN;       double HIGHEST_H1_OPEN()        {   for(u=Hour()-1; u==0; u--)   if ( ???? )       {      HIGHEST_H1_OPEN  = iOpen(NULL,PERIOD_H1,u) ;      u =...
Hey guys, does anyone know a template (or maybe the correct terminology is framework) for expert advisors?  A template(framework) that deals with all the order execution, Validation and so on and you just have to write down the Exit&Entry&Trailing stop rules. Thanks! 
Hi, One of the major limitations of the Metatrader products this that they don't have access to the orderbook information via MQL. Could this feature be added to make the product even better? Thanks.
Hi guys,  I need to download a lot of data on my metatrader 4 using TickStory lite for backtesting, but my free space on C:  is small than the amount of data need to download. Then need to move the datafolder to another partition. How can I move the datafolder to D: or anoter disk with more free...
I'm trying to figure out how to export the Account History and get it into an (Excel) Spread Sheet for Analysis. I did a search, but didn't find a solution. Thanks to any and all for any assistance.
Hello am facing a problem that mt4 stops for few seconds and no connection comes  and it connects automatically after 2-4 sec can anyone let me know how to solve this problem ? Thanks
Is there a way to use paid indicator in metatrader 4 when installed in linux via wine. The problem is that the market is the only thing that does not work and so far i havent found a way to run my purchased indicator cause when i try it gives me an error  and there is no way to download the...
If I insert a pause of one hour in my EA after a position has taken the StopLoss, does this pause also occur in the backtest or only in real? I ask you why, I read that the Sleep function does not suspend the robot execution in the strategy tester. Thank you all for your help. Greetings, Giuseppe. 
hi guys  , after blackout , i restart my platform but , in taskmenager  see  terminal.exe  with cpu usage 99% , but not show nothing , whats wrong ? any one can suggest somnthings  thankz
First Hello to everyone reading this topic . I need your help I have this expert witch works great but it has no Take Profit I need some help to add Take Profit option. Its simple  every candle trade expert the problem is that it has no take profit option and the second thing is that it has candle...
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333