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...
Below is my source code when the task is done i want it to be repeated automaticly i cant find the way to do it any help will be apreciated. void OnTick()  {   int PositionIndex;   int TotalNumberOfOrders;   slippage=10;   volume=0.01;   Count++;           if(Count==1  )...
Usually, when we attach williams percent range indicator to a chart, say 1M chart it just draws and fixes the line per bar. But I want it to fix the line per 5 seconds. In another words, WPR updates the drawn line per bar, I want it to update per 5 seconds. (not 5 ticks, not 5 bars, just per 5...
  Usefull links/threads/tools (37   1 2 3 4)
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  Suggestions for Trading System thread  After Requests & Ideas (MQL5 only...
  Elite indicators :) (14988   1 2 3 4 5 ... 1498 1499)
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?
hello I have a problem with strategy tester I have one indicator that when i want to test it dont show indicator during test and I see naked chart but it show signals in trading chart!! why!!!!??? PLZ help
  class FruitClass (35   1 2 3 4)
Hello everyone, I am not sure how to ask this question, but I give it ago anyway. The value of the first variable changes every time that FruitClass is called (excuse me if that the incorrect terminology). Now as for the rest of the variables stay the same values until they are given a specified...
Hi  I wrote an EA without sending/closing orders. for now I just want EA show me some Comments and an alert. It's not working well  and I can't find problems. Funny part is if I put Bullish(Calculate_Bullish_Volume()) and bearish (Calculate_Bearish_Volume()) in the comment Bullish is stop working...
Hi and sorry for my poor english. Actually i'm trying to add alerts on chart for my MT4 interface. I'm able to draw lines but i need to put special graphic symbols in place. Is someone able to help me ? thank's by advance
  chartevent (5)
i write some chartevent for redraw some object in chartwindow but in debug mode if i insert a break point in chartevent function , it can gatch everone event if i clear the break point , some event will lose what can i do to fix it
Hello, I need Indicator to ema Example for buy 1. open candle h1.. example 1.3300 2. EMA 100, distance to open candle 10 pips at 1.3310 3. Indicator calculate distance of open to ema 4. Indicator calculate 1.3310 - 1.3300= 10 pips .... 5. 10 pips x 125%= 23 pips 6. suggest indicator buy at 23...
I tried to keep the subject short I have been trading profitable for 3 years with account management for clients for the past 18 months. I am now interested in turning my scalping strategy into an EA and I already know what I want but I'm a completely rookie when it comes to coding. So I'm lookin'...
  Requests & Ideas, the beginning (2709   1 2 3 4 5 ... 270 271)
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.......
Hi Guys, I am a new experimenter of Virual hosting server provided by MetaQuotes. I am wondering if it is possible to change the stoploss value with MT4 platform when the EA is runing  on the Virtual Server. Did'nt find much about it.. THANKS
Hi I created a EA using MQL4 (build 1090). Everything was going to plan until i wanted to us it on a different PC. I installed the same copy of my brokers MT4 on both machines but they respond entirely different. The PC i developed the EA opened and closed trades as expected but on the other...
Hello everyone, i'm having issue with set up my personal alerts on price level, the issue is that.. in last weeks i noted a decrease of quantities of alerts i was avaible to set up.. right now i can only set up 4 alerts on the metatrader4 ( i'm using 18 forex cross so you can imagine only 4 alerts...
Hi, my graph draws a series of vertical lines following specific indicators. If i want to check the position of the last i have found this function datetime  ObjectGetTimeByValue(   long     chart_id,      // chart ID   string   object_name,   // object name   double   value,         // price...
So I draw my trend lines on the monthly chart, then on the weekly , then on the daily and then on 4h. The problem is that the trend lines coming from higher time frames are not respected on lower time frames, and instead I have this huge gaps from where price is and where my trend line drawn on a...
Hi All :) writing a custom indicator I came across a problem... hot to place text in the right position. As I create text object I can see that the text is justified "bottom-center" and I did not found any parameter to change it :( I need my object text to be aligned "mid-left"... or otherwise the...
Petko Enchev
How to remove the dotted line that shows your opened buy/sell positions in the chart? It just gets too crowded on the chart when I add other lines and indicators and drawings and I can't see what's most important for me - the trend line.
hi I'm working with double numbers and after I normalize them with the following formula, it still remains non-normalized and has some digits that I don't need them. I want to know is there anyway to assure that if the double has been normalized correctly or not. I mean a formula to get the digits...
Hi, Please help on below that I keep seeing Error1 when the EA tried to modify the stop loss level? I already added the OrderModifyCheck  function provided by below link, but Error 1 still keep exist. https://www.mql5.com/en/articles/2555#no_changes_in_modification_request void MoveTP()   {...
Hello what does it mean this expression?...I'm confused with ? : etc. double price = (type == OP_SELL) ? Ask : Bid;
Hi, is possible to make modyfication: 1. add arrows 2. make level zero changeable as it is with upper/lower trigger 3. make final signal arrow/message on current/not current bar 4. make custom signals on/off cross buy lowertrigger - on/off cross buy level 0 - on/off cross buy upper trigger - on/off...
Hi I am quite new to coding and was wondering is there a function that can restart the terminal as there is a function on the live update that restarts the terminal? Thanks Antony
I am encountering the following problem while trading with Oanda through MT4 using an MQL4 EA. Now after 3 days of error tracing, debugging, monitoring, watching prices live, re-reading all the MQL book etc... my modest brain is near burning out due to effort plus frustration. Pointless to use the...
I have indexs in my code and I want to know the amount bars/ time from signal point and index. here is my code:  if (a[1]>=a[MaxIndex]) = OP_BUY; I  I want to know amount of bars between signal point and MaxIndex. How do I find time at MaxIndex? Thankyou!
Hello everyone, I found this post https://www.mql5.com/en/forum/150808 I am trying to get the example to work, but I have run into a problem with completely solving it. I get these errors: ')' - unexpected end of program     line 159 col  6 '{' - unbalanced parentheses          line  11  col  3...
hello everyone,  renko street trend is really interesting indicator when it is combined with renko chart, but it sometimes repaints, it is a signal bars indicator as you can see in the photo, so i am asking if there are no repainting version ? or if someone can recode it? it needs only one line of...
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255