Download MetaTrader 5
To post a new topic, please log in or register
Dear Any Programmers, I need help fixing this code At the moment only the Add Missing Stop Loss is working. I need to Add Missing Take Profit to be working aswell. Below is the specific part of the file I need looking at. Thank you void InsertTakeProfit(int ticket) {       //Inserts a take profit...
If technology duplicates every two years, does it also mean that forex market trading robots will become better, making the marker ever harder to profit? If the answer is yes then in 10 years, forex market will become 32x harder to profit, is that correct?
If it's like a wave, so if you develop 2 indicators to detect: a- the return point b- the equilibrium is above or bellow the price then you can basically predict the marker. If it behaves like waves so it's predictable, because after the return point the price will move directly to equilibrium, so...
  Words of Wisdom in Trading books  (116   1 2 3 4 5 ... 11 12)
Hello everybody, While I was studying Technical Analysis I made a lot of Photoshop imagesto show words of wisdom that was said by writers of technical analysis books. Ibuild this thread to share those pictures with you and I hope they could helpyou to find them interesting. I encourage you also to...
what kind of code can close all open orders automatically when synchronization is done? Is the following code responsible for closing open orders during synchronization? I need help please. I have been banking my head for the last few days without success. I need to keep my orders open during and...
  Traders Joking  (10465   1 2 3 4 5 ... 1046 1047)
Do you have interest or hobby outside trading ?, or some jokes and humor for other forumer ? or maybe something else ?, Well, why don't show it here. Life is NOT all about trading or programming, and so is this topic, and you must participate in this topic ;D.
Hi guys.... I usually don't post too much, but I got serious problems with the last few updates, mainly with the testers. I run some really deep statistical analysis (huge optimizations) both remote and locally, some passes are getting 0.0% and stuck in it...it doesn't go further... That's a issue I...
How do i download mt4 and not Mt5 from the site. 
  There certainly is a Holy Grail!  (227   1 2 3 4 5 ... 22 23)
It is generally accepted in the trading community that there is no Holy Grail.  That is a very human and absolutely normal way of dealing with the subject.  As many of us know, there are a number of fundamental items in the economy that are fundamentally wrong, but, the human race developed the...
Hi, I would like to hire a developer for a big project via MT5 (Freelance) platform. A single project has 2 major milestones. I want to release payments to the developer based on those 2 milestones, means 50% on achieving 1st milestone and and rest of the 50% payment on achieving 2nd final milestone...
Hi everyone, Does anyone have any recommended broker that has a good conversion from CAD to USD and uses Skrill possibly? I currently use FXOpen and FXTM but the conversion is quite high, i transfer funds to Skrill then fund my broker using Skrill.  Does anyone else have a better way to convert CAD...
  C++ ... whats next?  (15   1 2)
I've just finished my first C++ book "C++ Primer Plus" and still want to study C++ for jumping to the next level in EA programming in MQL 5. Which book would you advise me to study next? Which subject in C++ should I master now for excelling in EA programming?
https://github.com/Roffild/RoffildLibrary
  How to Start with Metatrader 5  (1145   1 2 3 4 5 ... 114 115)
I decided to create this thread to help to myself and to the others to start with Metatrader 5. I am experienced in MT4 and in forex in general (i hope : ) but we traders really need to collect all the information about it in one place. I will make some posts about 'how I am starting with MT5'....
  Forecast and levels for EURO  (248   1 2 3 4 5 ... 24 25)
EUR/USD April-June 2017 Forecast: ranging rally within narrow s/r levels W1 price is below Ichimoku cloud for the primary bearish market condition with the ranging within the following support/resistance levels: 1.0828 resistance level located below the cloud in the beginning of the secondary rally...
  Very Profitable Heiken-Ashi System  (63   1 2 3 4 5 6 7)
Greetings, I, like many others, have been searching for the perfect trading system, and I believe I have found it. I'm writing to ask you to examine this system and provide any constructive feedback that you might have. When I say "perfect" trading system, I do not mean to imply that it has no...
  PANTHERea.....100% win ratio  (84   1 2 3 4 5 ... 8 9)
Ok guys, this is the end of my forex path...... It took me 5 years to make this(coding lasted for few days), but the method itself was developed for years. Bassicaly I took all of my knowledge, mixed it, coded it, optimize it........and done that for last 3 years. This ea is something with the...
  Trading signal  (4)
I connect with a signal and it has neither Stop Loss nor Take Profit. Am I expected to close it or allow it run continuously? Please help
  Digital Filters (basic explanation)  (51   1 2 3 4 5 6)
What is the filter? In signal processing, the function of a filter is to remove unwanted parts of the signal, such as random noise, or to extract useful parts of the signal, such as the components lying within a certain frequency range. Ok. Why digital? A digital filter uses a digital processor to...
I want to say that my nick 'newdigital' is not connected with digital filters. But I started this thread to discuss and explain about trading strategies based on the digital filters only. And to understand how to implement those filters. All about digital filters you may find https://www.mql5...
This is Ilan-TrioKS v1.45 - /English Version/ - The new SUPER Expert Advisor. Working with all pairs. TimeFrame - M15. Please test it.
Thanks to Hendrick Stam for sharing this winning system and expert advisor. This EA (Phoenix 4 Contest) is currently 2nd place at ATC 2006 hosted by MetaQuotes. Phoenix_4_CONTEST.mq4: running live at ACT 2006. phoenix_ea_v5_6_03.mq4: the latest version. Hendrick: It’s time to start a new thread...
Trading and training video (from youtube for example) about forex and financial market in general.  thread for April 2013 - look at this thread,  thread for May 2013 - look at here,for June 2013 is here.July thread 2013 is hereAugust thread 2013 is this oneSeptember thread 2013 is hereOctober thread...
hello master trader. Recently I learned trading strategy using trend line but I have difficult to identify trend. and that I want to ask. how to identify trend changes using trend line. as shown below the picture above is an example of a scenario for a trend change. of the two images above which are...
  Forecasting indicators  (333   1 2 3 4 5 ... 33 34)
Please find some indicators which are forecasting something. First is i-DRProjections_v.0.1. This indicator shows the support and resistance of current day forecasting on the base of previous day. All the calculation is based on Thomas R. DeMark book "New Science of Technical Analysis".
Locked-in Range Analysis (abbr. LRA) is the futures market analysis method, described in the ebook "Locked-in Range Analysis: Why most traders must lose money in the futures market (Forex)" by Tom Leksey, which minimizes an uncertainty in the futures market. LRA is the method of interpreting the...
This Ea is one I have backtested and achieved 90% modeling quality on four and five digit brokers and have found good results.I enclose Ea and backtest report.
  Trading System by Xard777  (3880   1 2 3 4 5 ... 387 388)
Here is a suggestion for a possible trading system... System one is MT4-Xard777.rar and System two is XARD-BOX.rar Enjoy... All the best Xard777
hello guys, I'm struggling with a system that enters supports and resistance, some ideas on how to structure the entrance. The signal must be given by three highs or three lows
  MONEY MAKING manual trading system  (515   1 2 3 4 5 ... 51 52)
Dear All, As this is my first post on this forum you may think that i am a newbie which i am for sure in comparing with some forex gurus like Igorad, but after spending couple of years in losing money, researching, losing money, researching and finally earning money i don't feel like one . I...
  Forecast and levels for S&P 500  (326   1 2 3 4 5 ... 32 33)
S&P 500 January-March 2017 Forecast: long-term bullish ranging within the narrow s/r levels for direction W1 price is located far above Ichimoku cloud in the bullish area of the chart. The price is on ranging within the following narrow support/resistance levels for the bullish trend to be resumed...
Bitcoin vs USD January-March 2017 Forecast: key resistance level at 850.15 to be broken for the bullish trend to be continuing Weekly (W1) price is located above Ichimoku cloud in the bullish area of the chart. The price is on ranging within the following support/resistance levels: 850.15...
  Welcome to the new section!  (17   1 2)
Inspired by comments and reviews received from MQL5.community members, we have added a new forum section called "Trading stocks, futures, options and other exchange instruments". Share your ideas and trading experience with the website visitors. Reach out to MetaTrader 5 developers if you have...
Keen observers of price behaviour have no doubt discovered that from time to time, gaps appear in the normal price sequencing. These can usually be seen clearest on a technical chart. Gaps are areas on a chart where the price of a financial instrument has moved either up or down with no...
  MT5 real FUTURES broker  (15   1 2)
Hello, is anyone aware of any futures broker that offer its client the MT5 trading platform? Is there a list of those? I mean real futures, not CFDs. Futures that trade on CME Globex and Eurex exchanges. Thank you.
DJIA January-March 2017 Forecast: long-term bullish; resistance level at 19,987 is the key W1 price is located above Ichimoku cloud in the bullish area of the chart: the price is on testing 19,987 resistance lkevel to above for the primary bullish market condition to be continuing. The price is...
  Bermaui Analysis  (104   1 2 3 4 5 ... 10 11)
A Bullish RSI14 Reversal Signal for Dow Jones Industrial.
  Forecast and levels for Nikkei  (26   1 2 3)
Forum on trading, automated trading systems and testing trading strategies Press review Sergey Golubev, 2016.12.24 17:18 Nikkei Q1 2017 Fundamental Forecast: Bullish (based on the article) Fundamental Analysis  "The Bank of Japan has been buying stocks for over two years now. And in September, the...
Hello, I currently read about companies developing CQG and Interactive Brokers bridges for MT5. And this is great news, something that I have actually been waiting for a long time. But besides the announcement I still found no broker  offering access to the CME and COMEX via MT5? Does...
AMP Futures has officially announced the launch of the MetaTrader 5 platform for trading futures. AMP Futures is a US regulated Chicago-based Futures Commission Merchant (FCM) providing access to the global electronic futures markets for individual traders, as well as US and foreign Introducing...
It is very sad that majority of the people that get involved in the forex business end up losing their money but I will explain the major reasons why this happens below: 1. Leverage and Margin - Trading on margin seems like a fast way to make quick profit however, this gives birth to greed as a...
Hi there, Does anyone know how to get the Sugar charts to load? They've been added more than one week ago and all it says is "WAITING TO UPDATE". Still very new at this - Go easy on me :)
Stock Market A To Z: 26 Names, Themes And Trends To Watch (based on the article) A is for Apple "The stock trailed the broader market in 2016, but there may be tailwinds in 2017. Tax reform may include a provision that incentivizes the company to deploy its billions in foreign cash back to...
  McDonald's  (11   1 2)
The weekly share price stopped the bearish reversal and it was bounced from 110.32 support level to above to came back to Ichimoku cloud to the ranging market condition. Fow now, the price is on testing 121.85 resistance level to above for the reversal to the trendy primary bullish market condition...
  Apple  (23   1 2 3)
AAPL Technical AnalysisL daily bullsh with 120.35 resistance to be testing for the bullish trend to be resumed Daily share price is located far above 200 SMA in the bullish area of the chart: the price is on testing resistance level at 120.35 to above for the bullsh trend to be continuing. If the...
Hi, I try to use a CandleTrail function on a simple MAcross system and it works but I have many [Invalid stops] errors and I don't know why. Can someone help me fix this problem? 
Does anyone out there have a clue on how to get this to work, inside a CAppDiolog box?  I'm trying to make several dialog boxes, inside a main dashboard box, but I need to get the main Dashboard to scroll up and down.  Does anyone know how this thing works?  When I put my smaller dialog boxes inside...
I am busy developing an EA. EA works but I have 2 warnings in code when compiling. does anyone have a solution towards removing the warnings? 1st one  possible loss of data due to type conversion 1st Hedge EA overlay v7 timer.mq4 229 81 2nd one  possible use of uninitialized variable 'ticket' 1st...
Hi all, I'm using the CTrade class to place a pending order and retrieve the executed price when the order gets executed, however I keep getting a value of 0. This is the MqlTradeResult I get : MqlTradeResult{  retcode:10009 deal:0 order:2 volume:1.47 price:0.0 bid:11766.129999999999199645 ask:11767...
Hi, I was "playing" with hedging to explore possibilities : it's very tempting, since it allows purely & simply to recover from a bad position taken.  The risk of these strategies is well-known : lot management. Comes ALWAYS a point, where the margin is stressed, the logical solution being to accept...
Hi, I am trying to learn about Expert Advisory strategy tester. Just as a test I would like to calculate if I opened a position above the 200MA and then closed it when it closed below again or at say 50 pips and again for the opposite. Can anyone assist me in getting this to work on EA Strategy...
Hello Everyone, I'm developing my first EA. I got to write one, and it works perfectly well on the strategy tester.  My EA does the following: I specify a pair of currencies, say currency1 and currency2. When it starts, the EA buys immediately the currency1. Afterwards, it checks the conditions A &...
I have tested a number of EAs on the Marketplace which show strong backtesting ability but fail in forward testing, these were run on tick charts. Of course the sellers present their backtesting results which look spectacular. Can anyone explain what is going on here? Is this a case of deception by...
Hi there. to assist my automated trading via EA-s in MT5 I would need a database in which/from which I could read/write data using mql code. I've seen some posts explaining how to connect MT5 with MySql, have tried that, but it's a bit difficult, while writes to DB are straight forward, reads from...
I am trying to create a simple indicator on Mql5 but i get an ERROR when i compile it... Could anyone help me please? int OnCalculate(const int rates_total,                const int prev_calculated,                const datetime &time[],                const double &open[],                const...
  Custom symbols  (4)
Hello, why when I connect the mt5 to the Metaquotes server is deleted the personal data history present in the folder Custom \ Symbol \ Ticks? Thanks for the reply
Hi everyone, Is there anyone that can help me with my problem on how to convert CloseAvg() function from MQL5 to MQL4? I got this from one of the samples from MetaQuotes.  https://www.mql5.com/en/code/316 double CloseAvg(int ind){    CIndicatorBuffer *buffer=At(0);//--- check...
Hi, since yesterday, the debugger is not able to compile the project anymore, just like that. It started when I created a macro and inserted this into some source files. This was the first time when the debugger created an invalid EX5 file, while the normal compiling process created a working...
I have thought that there might be some function that can get me previous Bid or Ask price similar to the one that give OHLC value. But I could not see any such function.    Please let me know how I can get the previous values of the Bid or Ask?
  Requests & Ideas (MQL5 only!)  (415   1 2 3 4 5 ... 41 42)
Terms and Conditions: You describe (you provide) the idea, I place an open MQL5 code in this branch, I place this code in a CodeBase. &nbsp, I specify the author of the idea and the author of a MQL5 code in a code, The coding services are provided "as is" and you use them at your own risk. List of...
Hi, I am trying to link buttons states according each other. When I press (true) a button, all the others are unpressed (false). bool TLR_Button_1_State       =ObjectGetInteger(0,"TLR_Button_1"       ,OBJPROP_STATE);   bool TLR_Button_2_State      =ObjectGetInteger(0,"TLR_Button_2"...
Hi, I'm trying to convert this custom indicator that I originally coded in MQL4 into a new MQL5 custom indicator. However, the IndicatorCounted() function that I previously used doesn't exist in MQL5... I read multiple posts regarding this subject but none of them seemed to be able to replace this...
What is the best trend indicator / What is the best trend indicator code?
  The Best Indicator for Profit  (45   1 2 3 4 5)
Hi All What is your favorite indicator, that makes you a constant profit? thanks for sharing
Can someone help with that? I made an indicator that work well, but sometime when change the symbol or time frame in the chart get this error. Here is the part of code than have problem. //+------------------------------------------------------------------+//| Custom indicator iteration...
Hello Group, I found this indicator for bar numbering which was written in MT4  https://www.mql5.com/en/code/19248 I tried to convert it to MT5 however am getting lot of compilation errors, can some of you gurus out here please help convert this MT5, will be greatly appreciated. Thanks.
Hi Folks, I am adapting an indicator but i am not able to do the following task. The indicator must be drawn until (rates_total-X) ....what I get is ok but at rates_total-X a vertical line is drown and the folliwing values are 0. How can I draw the line until (rates_total-X) skipping drawing the...
Hi there, I need to find time after a "datetime". Exactly 15 min after a by-hand-pre-defined datetime. The datetime is not a multiple of "15 min". It begins 1 min before the previous hour and it ends 15 min after. here in the image below what i need to do : How can I do this please ? Kind regards.
  Dynamic zone indicators ...  (1580   1 2 3 4 5 ... 157 158)
It seems that David Stendahl can not help him self Where his name appears "attached" to some indicator or TA way, it sure is worth trying it out and studying it. The basis for these were originally published in the Stocks & Commodities July 1996 issue (attached the original article here). Do not be...
Is there a way to detect currency strength of 2 currencies for current chart in multiple timeframes? If yes, how to do that?
  Symbol in MQL5  (2)
Is there an  alternative  symbol  or conversion in MT5 for ' SYMBOL_STOPSIGN '. Thank you.
Hi all gurus, I've hust started trading, and since I've an engeneering background and approach, I've investigeted formulas, and read a book written by Renato di Lorenzo, based on work of Corinnah Kroft, who has worked with Butterworth filter integrated with that one of R. F. Mayer, so to have two...
  How to install MT4 Indicators?  (132   1 2 3 4 5 ... 13 14)
Here is a little guide on how to get the work done NOTE: An indicator can be of 2 format (extensions), .MQ4 and .EX4. MQ4 is the source code, and EX4 is the compiled version of the code. Step By Step 1) Download/Copy/Save the MQ4/EX4 file into your C:\Program Files\MetaTrader 4\experts\indicators...
  RSI indicator  (1412   1 2 3 4 5 ... 141 142)
RSI indicator We are continuing discussion about the indicators. We have the following thread: Parabolic SAR indicator Momentum indicator Stochastic Oscillator Divergence Indicator Now we are talking about RSI. "Technical Analysis from A to Z": OverviewThe Relative Strength Index ("RSI") is a...
PSAR indicator, with colors to indicate direction + Alert when a cross is happening. Download it here Download Parabolic SAR Alert Good Trading!
AutoFib TradeZones: Auto updating fib retracer showing zones for range trading/breakouts. Author: Benjamin Joshua Nash
New article How to Access the MySQL Database from MQL5 (MQL4) has been published: The article describes the development of an interface between MQL and the MySQL database. It discusses existing practical solutions and offers a more convenient way to implement a library for working with databases....
Murrey Math Lines for the Current Bar: Murrey Math Lines for the current bar are an effective tool for the market movements forecasts. The well-known theorist Thomas Henning Murrey is widely known in the world of the modern trading. It was he who adapted the theory of the legendary William Gann...
New article Automatic construction of support and resistance lines has been published: The article deals with automatic construction of support/resistance lines using local tops and bottoms of price charts. The well-known ZigZag indicator is applied to define these extreme values. Support and...
  Experts: Renko 2.0 Offline  (23   1 2 3)
Renko 2.0 Offline: Renko 2.0 Offline non-trading expert generates custom symbol information on 1M chart. Important! Always leave it on M1 chart. A complete Renko chart with wicks. Now Offline! Based on Renko 2.0 indicator. References the Symbol library for MetaTrader 5 by fxsaber. Configure using...
Breakout Bars Trend: The alternative indicator for trend definition based on the breakthrough bars and distance from extremums. Author: Serhii Ivanenko
New article The ZigZag Indicator: Fresh Approach and New Solutions is published: The article examines the possibility of creating an advanced ZigZag indicator. The idea of identifying nodes is based on the use of the Envelopes indicator. We assume that we can find a certain combination of input...
Martingale Bone Crusher: The EA uses martingale strategy: it enters trades according to the price that is above or below Moving Average. If we lose a trade then the EA will take a new trade in the opposite direction with a multiplied lot size. This Martingale EA can work on all pairs and all...
New article Using MetaTrader 5 Indicators with ENCOG Machine Learning Framework for Timeseries Prediction is published at mql5.com: This article presents connecting MetaTrader 5 to ENCOG - Advanced Neural Network and Machine Learning Framework. It contains description and implementation of a simple...
FuzzyNet Fuzzy Logic Library: FuzzyNet is one of the most popular mathematical libraries for creating fuzzy models Fuzzy Logic Library for Microsoft.Net (FuzzyNet) is an easy to use component that implements Mamdani and Sugeno fuzzy inference systems. FuzzyNet includes: 5 membership functions...
Average Volume per Hour: This script scans through the bars within a 1 Hour chart and calculates the average volume per hour. It is prevented from working on any chart other than 1 hour and the average calculation uses MathAbs to ensure the absolute volume is calculated. Just drag the script...
Range Oscillator + Bands: Range Oscillator is an indicator that shows the relative position of median price in the highest high to lowest low range for desired period. Unlike the basic version, this version uses Bollinger Bands for overbought and oversold conditions assessment....
Range Oscillator: Indicator that is similar to "raw" Stochastic and Williams Percent Range. Range Oscillator is an indicator that shows the relative position of median price in the highest high to lowest low range for desired period. It is bound to 0 - 100 range, hence those levels are the...
New article How to Subscribe to Trading Signals is published: "Signals" in MetaTrader 5 trading platform allow traders to connect to any signal issued by providers. Select and subscribe to any trading signals provider to copy all his or her deals on your account. How to become an investor and...
  Experts: RoNz Auto SL-TS-TP v.2  (139   1 2 3 4 5 ... 13 14)
RoNz Auto SL-TS-TP v.2: EA for Automatic StopLoss, Take Profit, Profit Lock, and Trailing Stop. SL and TP could be hidden. Author: Roni Nafrianto
Can anyone advise how to make input parameters by iCustom? Please see the attached picture. Is this correct? double indicator = iCustom(NULL,0,"indicator name",0,"Alert name",false,false,false,false,"alert.wav",0,1);
Hi all, I need help as follows: 1) There are numerous Objects in the chart, I am interested to get value of the object on a specific bar of the chart.  2) Object with the names, as an example, "XYZ04", "XYZ110", "XYZ005"  appear on the chart, therefore I know the prefix, but I do not know the suffix...
My indicator (Pivot Lines) are not showing up on chart when selected - is there something I can do or something I can udo to get them to work again. They were taken of my chart when the computer reset - now they will now go back onto the chart
I am considering global variables that are supposed to show the rank (who is the oldest ID) of four charts that are to be open at the same time... But the ranking function resides in an include file, and while I can avoid dealing the global variable there (I could just return the rank and let the...
Hello,  I have some issues regarding 2 array for storing horizontal lines. This is the code, it shows  Trendline EA 1.4 EURUSD,M15: array out of range in 'Trendline EA 1.4.mq4' (108,50).    int linB=0,linS=0,B=0,S=0;   for(int i=0;i<ObjectsTotal();i++)     {      objectname=ObjectName(ChartID()...
hello ... I work on an indicator and I try to play with candle hammer I calculate it the following way in the code, my problem is in the loop inside the first loop I want when the price comes back to the opening of candle the indicator gives an alert My code :    int i,limit,x=-1 ;...
i have 28 terminals mt4 on my pc; each time I have an update of EA, I must paste It on each one of 28 terminal folder at mql4; is there anyway for paste it just one time at all mql4 folders? or any other way to make it more usefull? tks
Hello, I'm hoping to find some help here. I've been researching and trying to figure out how to combine two indicators MACD and Stochastic Oscillator into one indicator but haven't had any luck. I'm not looking to overlay them on top of each other in the MT4 chart window but actually combine the...
Hi, I coded a simple expert that open an order (BUYLIMIT or SELLLIMIT) when the price reach a certain level that define, I run it monday and it worked perfectly, But today I run it and it doesn't work despite that I didn't change nothing in the code, and I try it on many brokers but the problem...
Hi Guys, I have a question, and I cant quite find the answer. When I sort an array,for example ascending, do indexes keep or they rearrange? Thank you in advance !
Can someone help me code this script a a daily open line indicator? Would really appreciate it. Thank you.
Hey everybody, my indicator draws lines on the chart and on every new day I want the re-initialize the indicator again. In the OnCalculate() function I will put the following: OnCalculate(const int rates_total,      // size of input time series                 const int prev_calculated,  // bars...
  Advanced links/threads/tools  (29   1 2 3)
One more average and variations - key thread for MT4 One more average and variations for MT5 -  the indicators for MT5 are inside this MT5 thread  The following indicators can be found on the above mentioned threads: One more average - very advanced indicators with speed changing, with smooth...
  ADX alert!!  (133   1 2 3 4 5 ... 13 14)
Hi, Can anyone help me with this favor? I am looking for an ADX that will alert, when a cross between D- and D+ occurs and vice versa. Sound alert that a cross happened, that will be appreciated Thanks
Hi at all, I use MetaEditor when i work from my personal work station, repository type git, on bitbucket.com. But MetaEditor save file mq4/mqh ecc ecc as binary type ???? No in text type ??? After working, i must create a file .txt, put all code inside, create a new name (es.: myWorkEA_last.txt ),...