To post a new topic, please log in or register
HistorySelect(0,TimeCurrent());    for(int i =0;i<HistoryDealsTotal();i++)    {       ulong ticket = HistoryDealGetTicket(i);       Print(" i = " +i + " ticket = " + ticket+" total = "+HistoryDealsTotal());       int err = GetLastError();       Print(err);                  } this is my EA's little...
i wanna find out if the statistics is right about it, so let;s say for the last 3 months did you : 1) lose money 2)make money and in your opinion, do you agree that the only side who makes money on forex is FX companies themselfs, and of course Interbanks.
I made a variable as a color Gcolor_4; and another variable as an int called  int color_6 = 32768; Now I'd like to put this value from color_6 to Gcolor_4 Like this  Gcolor_4 = color_6_6; and when compiling I got "possible loss of data due to type conversion" So how can I fix this conversion ....
Hi. I'm noob at forex trades and wanted to subscribe for a Signal. I see some number and brokers list in slippage tab. what does 0.40 mean here ? is that less than a pip or more ? I don't understand the numbers but I know what is slippage means in forex trades..
Hello, I would like to know if I can withdraw a part of my equity to loose less money with the copy trades. Will the ratio change?  For example, if I have 1000USD and the trades are losing 400USD, can I withdraw 500USD in order to loose 200USD. Is it possible? I would like to put big money when I...
  Stop Trading Between Times  (17   1 2)
Hi All, I've searched all over the forum, but I can't find a way around my problem, which is to prevent my EA from continuing to trade between two times. I can do this between two hours (Hour()), but when it comes to times that include minutes, I get stuck. I just can't get my head around the logic....
Looking at a weekly chart of the USDX there is an issue with the chart for the weeks 2017.10.29 to 2017.11.26 where the price is 100 times the rate it actually traded at. Can the chart be corrected so that i can see the higher time frame view of the dollar index.
Hello, I try to test function OnTester(), OnTesterInit(), OnTesterPass(),OnTesterDeinit() using belows code. However  It is print out only Ontester() but others is no log-result. Please advise what is wrong in using these function.. Chaiya...
Hi! I don't expect anybody to be willing to help out but thought I'd give it a try. Can anybody code an indicator on MT4 that plots the previous month, week and day high/low? I find different variants but they all seem so cluttered to me. Ideally the lines should start from the previous high/low and...
  Service Desk Where is it ?  (11   1 2)
Anyone have link to Service Desk Pls Cheers
//+------------------------------------------------------------------+//|                                                      ProjectName |//|                                      Copyright 2012, CompanyName |//|                                       http://www.companyname.net...
Greetings of the day! I have an EA in which  there are too many objects. OnDeint() I am trying to save current status of all objects which is taking more than 5 seconds resulting in "Abnormal Termination". So I thought of creating a HashMap where I will be saving status of all object OnChartEvent()....
Any new software inevitably contains bugs that are not alwayspossible to detect even under the most rigorous in-house testing. Wetherefore attach great importance to all user reports about issues inour programs and try to answer each one of them. In order to improve feedback from MetaTrader 5 end...
Hi guys I apply for arbitration, because the customer does not respond within more than 1 week but apparently from the admin there was also no response, where else should I complain about this problem? thank you
  VPS SYC Error  (1)
Hi Im getting this error when i try to run my VPS: failed to connect to server 'MQL5 Frankfurt 02' (195.201.246.109:443 failed) The platform is not migrating my data successfully
Discover in 15 Minutes: Watch the Video about Trading Signals in MetaTrader 4 and MetaTrader 5 The most frequently asked questions related to the Signals service will be collected and processed in this topic. The list of questions will be updated from time to time. Soon we will try to give answers...
FXFISHERMAN BOUNCE20 METHOD The following trading system is very good for the intraday as well as the long term trader... It will work on any timeframe and any pair. But I suggest you do not use it on any timeframe below the 15-minute timeframe as you will be getting many fake signals. When we work...
Good day I need some help please. I am writing an EA and need to code the following: -Highest of 0 - 10 bars  > Highest of 10-20 bars - RSI of highest bar of 0 - 10   <   RSI of highest of 10 - 20 I have; int high10 = iHighest(NULL,0,MODE_OPEN, 10,0); int high20 = iHighest(NULL,0,MODE_OPEN, 20,0);...
Under the freelance section, there have been many request to create a Center of Gravity EA. The indicator repaints, so has anyone managed to create one that is profitable?
  Martingale  (29   1 2 3)
A friend asked me if it’s possible to make money by“Martingale”.  On my opinion, in every area could exist a professionalmaking an incredible job! My response to that question is always yes. I believetalented traders can actually make a lot of money using “Martingale” system. Thetrue is that the...
I test in MT4 but mismatched chart errors so high. How to reduce this?
Undoubtedly, trading forex is very difficult and people try to design their own trading strategy with indicators and expert advisors. However, now for the silly question: is there any consensus on some strategies/systems (not asking about EAs) being better than others? Is there such a...
I have to run optimization backtests on MT5 on custom symbols because I need to set custom spreads and timeframes. The Cloud network does not work with custom symbols, so I need another option to run these tests much faster. Does anyone have experience using Amazon AWS/Instances for testing with MT5...
simple trand reverse ea with templet and indecetar .i hope this is bes for all trader. thanks
Does anyone know which software can backtest multiple types of trading? For example, I buy EURUSD and sell GBPUSD at the same time. Because I did not test this function in MT4.
Does each Agent represent 1 full CPU, or does 1 Agent represent 1 single CPU core, or does 1 Agent represent a core and a thread?  Ex. How many Agents is a 4 core 8 thread CPU? 
Hallo I want to publish my order in my website  so I need to export orders from MT4 to Mysql  I know you can do it
Which strategy is best to close profitable positions ?
I am not a programmer, hence this question. Does the Metaquotes language code have the ability to measure a trend based on a single line indicator on a chart to develop an EA or does it have to be a two-line cross over indicator?
Hi guys, I've got a great indicator on TradingView, but I would like to have it on Mt4. Can someone program this into a MT4 indicator? //Credit to LazyBear for some of his CVI code\\ study("Tops/Bottoms", shorttitle="Tops/Bottoms", overlay=true) length=input(3) ValC=sma(hl2, length) bull=input(-.51,...
Hi, Are there any brokers allow trading both FX and stocks/index for the Hong Kong markets? Thank you in advance
Hello, I got an expert advisor whit a strategy that needs a low spread to work, I need a spread of 1 or lower, also I need to put at least 400 pending orders to  work propertly. I´ve been looking through several brokers but no one feets my needs. Do you know any broker whit these requirements?...
Hello, Can any one please suggest me the best indicator for binary options trading? Thanks...
The international broker has expanded its exchange trading offering. Using the multi-asset platform, traders can invest in securities of global corporations, such as Allianz, BMW, Bayer, Siemens, Heineken and Royal Dutch Shell. This addition to the previously available portfolio of US stocks, brings...
The Best Stocks Of 2016: Nvidia (based on the article) The price was increased by 10% just for December only!
Hi. My provider, ig,  currently only offers currencies in mt4. How can I get stock quotes in mt4 from another provider? Any one to recommend?
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...
We are pleased to announce about the geographic expansion of the company by the establishing of a new representative office. MetaFintechLLC has become the company's official agent in thelargest international business center of the Middle East - Dubai,&nbsp; UnitedArab Emirates. MetaFintech will be...
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...
  Forecast and levels for Dax Index  (53   1 2 3 4 5 6)
Dax Index January-March 2017 Forecast: flat within bullish with key resistance at 11,649 W1 price is located above Ichimoku cloud in the bullish area of the chart. The price broke 11,485 level to above on close weekly bar with 11,649 as a nearest bullish target to re-enter. Thus, the weekly price is...
Hello all, I am new to this forum and I have recently downloaded MT5. Now I want data for Indian Stocks. Can someone help me who are authorized data vendor for India Exchange NSE for MT5. There are many data vendors for Amibroker and Ninjatrader in India but not for MT5. How I can import historical...
  Forecast and levels for Nikkei  (31   1 2 3 4)
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...
There is an opinion that from time to time some great capital, who knows SL in small enterprises, is playing against the market to defeat them and their machines. On mql5.com, I read that in the last days there was a loss of 4 to 5 million baks in the group of salesmen. This is a huge loss of...
  MT5 real FUTURES broker  (24   1 2 3)
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.
CAC 40 January-March 2017 Forecast: bullish with key resistance at 4924.69 W1 price is located above Ichimoku cloud in the bullish area of the chart. The price broke 4860.85 resistance level to above on close weekly bar with 4924.69 as a nearest bullish target to re-enter. Thus, the weekly price is...
Hello traders, Someone has any idea why my backtest is showing results with and without profit factor information? By the way, the best results (looking for less DD) are without PF. Any idea???
Hello guys, I've a multi-currency EA that use the open of daily candle for some calclations. I've coded it as  SymbolSelect(oSy,true);Sleep(1000);RefreshRates();iOpen(oSy,PERIOD_D1,0) Most of times the value obtained from iOpen is right, but sometimes occurs that value is wrong and it is taken from...
Hi all, I hope you are well. I have a question. I wonder how we can insert our EA into the mql5.com market if we use an extarnal indicator. I want to insert my EA in to the market however, I use an external indicator. Is this a problem?
Hello everyone, So I recently took a course about a month ago on how to optimize MT4 / MT5 bots and the author of the series always said to use 3 months backtest, 1 month forward test. Now to me, that didn't seem like enough. But then I see others that claim that more than 2 or 3 years is needed for...
Im still learning alot regarding mt4 programming Basically saw the idea regarding correlation and bolligner bands  Buy on the EUR/USD if price is below the middle line (20SMA) of the bands on the EUR/USD pair and price as crossed and closed below the lower band on the USDCHF pair Sell on the EUR/USD...
Hi All, I am creating a a simple manual trader with buy and sell buttons but cannot get the buttons to work in the tester.  I'm sure there is a secret to this.  Anyone that can help?
Hello everyone, I am a beginner in coding and with the MT5 language. I'm trying to develop a slightly evolved EA. I already managed to perform basic functions but now I am stuck. My problems are: In the OnTick function () I check the position opening condition four times, at defined times...
I want to create an EA after making buylimit1 when buylimit1 success, it will execute buylimit2
Good day I need some help please. I am writing an EA and need to code the following: -Highest of 0 - 10 bars  > Highest of 10-20 bars - RSI of highest bar of 0 - 10   <   RSI of highest of 10 - 20 I have; int high10 = iHighest(NULL,0,MODE_OPEN, 10,0); int high20 = iHighest(NULL,0,MODE_OPEN, 20,0);...
Hi everyone,  I have already been helped by members of mql5, so I try again with an other problem.  I want to add Trailing stop in my EA but I don't know where I can put the modification without break my code.  For exemple, this is my part of 'Order Close - Buy' :  double SL_Buy =...
this code works when I use [OHCL 1 minute] in the strategy tester, but when I use [every tick] it stops working and some positions remain open for ( int conta= PositionsTotal ()- 1 ; conta>= 0 ; conta--)        {         string symbol= PositionGetSymbol (conta);         ulong PositionTicket=(...
Hey everybody! I would like to share the following pain... I have a custom signal (inherited from CExpertSignal, based on Heiken Ashi candles) and EA based on this signal. The signal works fine, but it's not always displayed on the Strategy Tester chart... The problem is that it's displayed randomly...
  is market open/close  (15   1 2)
Hi all I would like to check in the expert advisor if the markt is open/close. What's the easiest way to do that? I don't want do check that over time. I also need to know when the market open again after the short close every day at 11pm. Thanks FX_TA
  Requests & Ideas (MQL5 only!)  (466   1 2 3 4 5 ... 46 47)
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...
Hello All, I could use some assistance with some code I have written. Basically I am trying to calculate consecutive days of rise or fall. The issue I am running into is the count isn't correct, it will start off at 0, now lets say its a bullish day it will increment by 1, the next day stays within...
I am new to this platform and purchased the MT5 version of an indicator accidentally as I need the MT4 version does anyone know if mql5 support will swap it for me I have reached out to support but have had no response
Hello everyone, Here is the code below. Where I have I allowed this to occur. #property copyright "Copyright 2018, MetaQuotes Software Corp."#property link      "https://www.mql5.com"#property version   "1.00"#property strict#property indicator_separate_window#property indicator_minimum 0#property...
Hi, can anyone tell me how to make an indicator for mt4 that plots the value of the pivot point of the last year, please? Thank you.
Wow, new to this all....I purchased an indicator today, tried to install and run it, but when i went to the purchased tab, it read: purchased but not downloaded. cant find a place to download it to this computer...purchased the indicator on my phone logged in to the correct account, the same one as...
  Signal_Bars_v7  (336   1 2 3 4 5 ... 33 34)
Signal Bars has come of age so i thought that i would start a new thread with the latest version This version Signal Bars v7 has some new features, the User can select which Timeframes they want displayed and the indicator can now be placed into any indicator window to help free up chart space. One...
Can you please add sound & email alerts for this indicator? Thank you so much!!!
this indicator sends notifications way too late or only when i refresh or jump between timeframes i would much rather it send notifications exactly when the arrow appears or similar operation im not sure why it only does it when i refresh or change timeframes is there someone that can make the...
I have added the RVI indicaror to my EA but I just want to confirm I have used it correctly: RVIp = External input I have used MODE_MAIN and MODE_SIGNAL for the 2 lines = is this correct? If not, what should I use? RVIm0   = iRVI(Symbol(),0,RVIp,MODE_MAIN,0); RVIs0   = iRVI(Symbol(),0,RVIp...
Many indicators appear to have been developed for the stock market and then transplanted into the Forex market. The markets are fundamentally different so, which are the indicators developed exclusively for the Forex market?
Hi, Unfortunately my search didn't yield any results in the MQL5 constants/functions. Is there any way to read out the current value that was put into the one click trade panel? Your help is much appreciated. I am getting back to MQL5 programming after some time of absent, so please be patient with...
Can someone tell me or help me edit this, how to make the indicator synchronize with current chart? Thanks //+------------------------------------------------------------------+ //|                                                         Test.mq4 | //|...
is there anyone that can add notifications to this indicator operation needed 1. when support band manifest send buy/support notification 2.when resistance band manifest send sell/resistance notification simple... thank you
Hello, I was wondering if anyone could help me in coding this indicator, which is supposed to be better than the RSI. It was featured on the February issue of the "Technical Analysis of Stock and Commodities Magazine". It can be found in these 2 places: Thank you.
Hi,I don't know if it is the right session for writing my question. I would like to sell an indicator (for example X) that call for another my indicator (for example Y) Y will be free can I sell X on market session? thank's in advance
Hola, tengo inconvenientes con este códigoInt índice =iHighest (NULL, 0, MODE_HIGH, 76,39); Técnicamente me tendría que devolver un valor entre 76-39, pero de devuelve 108, ya probé con rangos como 50-20, 81-17, pero todas me dan una barra fuera del rango que establezco.  Agradecería su ayuda 
Day Trader Market Profile: The indicator ыimulates the full structure of the market profile system that described by "James Dalton" in his book "Mind Over Markets". Author: Bassam Maamoon
Weis Waves: Volume Wave indicator originally idealized by Richard D. Wyckoff. Author: Minions Labs
  Experts: Simple Scalping EA  (26   1 2 3)
Simple Scalping EA: Very simple scalping EA, no Indicators. Logic is based on very fast price movements. Author: yan
  Experts: TryME  (21   1 2 3)
TryME: try me... Author: Antonis Michos
New article Library for easy and quick development of MetaTrader programs (part II). Collection of historical orders and deals has been published: In the first part, we started creating a large cross-platform library simplifying the development of programs for MetaTrader 5 and MetaTrader 4 platforms...
  Indicators: Channels  (26   1 2 3)
Channels: Finds and draws channels using all timeframes from 1 minute to 1 month Author: Nikolay7ko
New article How to Become a Signals Provider for MetaTrader 4 and MetaTrader 5 is published: Do you want to offer your trading signals and make profit? Register on MQL5.com website as a Seller and specify your trading account to offer your signals to traders. Keep in mind that you can create only...
New article Integrating MQL-based Expert Advisors and databases (SQL Server, .NET and C#) has been published: The article describes how to add the ability to work with Microsoft SQL Server database server to MQL5-based Expert Advisors. Import of functions from a DLL is used. The DLL is created using...
Different Signals Counting from indicator into EA via iCustom: If you make your own EA with iCustom from any indicator, but you don't know which signals from indicator via iCustom work? This EA help you. Author: hacibroker
  Experts: Daily Chart Trader  (16   1 2)
Daily Chart Trader: This is strictly for daily chart and any symbol with spread low enough for its operation. Author: Gbenga Ayodele
  Indicators: Equity Chart  (31   1 2 3 4)
Equity Chart: The indicator displays the equity and balance charts. Author: transcendreamer
Ticks Volume Indicator: In the futures markets data on trade volumes a reported with a one day delay. To compensate for this, many analysts use the tick volume indicator (tick volume). Author: John Smith
  Indicators: Money Manager Graphic Tool  (72   1 2 3 4 5 ... 7 8)
Money Manager Graphic Tool: Money Manager Graphic Tool shows Lot Size, Ratio, Risk and opens orders (Buy, Sell, Buy Stop, Buy Limit, Sell Stop, Sell Limit). Author: takycard
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...
Price Percentage and Times on cursor crosshair: This indicator enhance the functionality of the standard crosshair of MetaTrader adding the difference in Percentage and the time span in a human readable form (not in bars, but in Hours, minutes, days, etc) Author: ludoz
Hello experts, I'm wondering if it is possible to write a script/EA which will make edits to a loaded EA without removing it and reloading it. The EA is compiled and I do not have access to the source code. The only way to adjust the settings is via the GUI dialog box (right-click window -> expert...
Hi. I am building the automatic strategy and I need the code to count the number of bars from Forex Trend indicator. And hint would be appreciate. thank you
  RSI EA code help  (16   1 2)
Hi...  Need an indicator to trade RSI. where if the value goes above 70 and retrace below 50 I enter short wher if the value goes below 30 and retraces above 50 i enter long  need help with teh code 
Hi all, I'm trying to create a function that on every Bar, determines the Maximum and Minimum values of the MFI. But it's not working. Can someone give me some hints ? Appreciated. //---Function Max and Min values int MFI_Period = 14; double Max = 0; double Min = 999999; //emulate infinite double...
  Traders joking, the beginning  (7473   1 2 3 4 5 ... 747 748)
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...
  Close all orders for Symbol  (14   1 2)
Sorry for my English I was using this function to close all opened orders for one symbol  if profit > xxx but the problem it close some of orders then the profit be <xxx and it stop closing other orders //--------------------------------- bool CloseDeleteAll(){    int total  =...
  Excess Printing  (29   1 2 3)
I only want this to print the Spread to the Experts Journal when it places an order when the spread is low enough. Now it prints one every time (their is a Tick?) and more annoyingly, makes a sound. I want to fix it, not just eliminate the sound (< 8) Thanks for any and all assistance....
Hi everyone,   I have one trading system which I'd like to have as EA. This system is based on renko charts and mindhero indicator.  Why am I using renko charts? The reason is simple. Renko simply filters choppy market. Also it is very useful during news (I'll show you what I mean in example below)....
Have this code: Print("Profit target: ",NormalizeDouble(AccountBalance()*((CloseProfit/100)*OrdersTotal()),2)); But in the experts tab it prints: "2019.04.24 11:35:41.370 CloseAgent XAUUSD,H1: Profit target: 641.8099999999999". Please help.
Hi!  The following code is an example of metaquotes.  #include <Controls\Dialog.mqh> #include <Controls\CheckBox.mqh> //+------------------------------------------------------------------+ //| defines                                                          |...
If one entry make profit ,how can open next same orders into this direction in EA How can code it.
Hello Supply and Demand Traders, I have a custom expert advisor which trades off supply and demand zones.  The zones it trades off are from this source - https://www.mql5.com/en/code/14545 (indicator attached below).  Here are the rules of the EA: - When price reaches the proximal level of an...
Hi all, I am not sure if I am posting this in the correct page. I faced a problem when come to code the risk management module. My deposit currency is in SGD and the instrument that I traded is in HKD. I like to allocate 2% risk for every trade that I take using MT4. For example, Hang Seng index is...
Hi all, can someone kindly tell me how to make a EA what measures price movement from starting price what can be first bar open price. to point that price has risen or decreased lets say 10pip. and from that price it will repeat the process again and so on. Many thanks.
  Turn ON/OFF Grid  (7)
Hello all, I would like to understand why this code doesn't work. Some expert help please.  Code:     bool ShowGrid=ChartGetInteger(chart_id,CHART_SHOW_GRID,1,value);//         Grid not removed    int OffOnGrid=ChartGetInteger(Chart_ID,CHART_SHOW_GRID,window,value);//  Grid not removed 1) What does...