MQL5 Algo Trading community — forex forum for traders and developers

Does anyone have an idea under what circumstances this might happen or get detected? 2013.08.28 10:37:31 HistoryBase 'EURJPY' 2 invalid bars removed 2013.08.28 10:37:27 HistoryBase 'EURJPY' 2 invalid bars removed
Has anybody had this problem my VPS server was working yesterday but not today the VPS tab on MT5 is Grayed out and it keeps pinging not able to connect to any server
Do I need to allow ALGO trading on a demo account EA
We have updated the MQL5.com Chat to further enhance the user conversation experience. Check out the new service interface and updated functions, such as the revised friending logic. Create groups on financial topics, join existing channels, discuss current issues with fellow traders in group chats
Hello, Do you listen any music while you trade? I have tried with many different kinds, but I think classical music is the most appropriate to remain discipline focus and calm . Any replies are appreciated. Let's start
I tried registering my company as a seller on MQl5 market . The support teams responded by saying that I to provide the following: "link to the official website where we can check the certificate." Does anyone know where or how I can provide this link because I am unable to see where to paste it and
MetaQuotes has launched new MQL5.community information channels on Facebook, X.com (Twitter), and Telegram. These channels provide daily publications of relevant technical materials from the MQL5.com Articles and CodeBase sections. They are designed to promptly update developers on algorithmic
HI all, I loaded a daily historical series for a Custom Symbol. I haven't lower time frames. I would like to test a strategy on D1 time frame, because it only needs Open High Low and Close daily prices, but I seem it's not possible with MT5 strategy tester, could you confirm? Is there a way to run
hi, i have an issue with a freelance developer which i have selected. the work was not completely done and he asked for release of payment because he said it will take mql514 days to release the payment to him. so i obliged and release to him even when certain part of the work is not done 100%
It's time for a complete PC upgrade. Main task of PC testing and optimisation of programs for MT5 Cost is irrelevant. Since I am way behind on current trends I need expert advice, hopefully the MT 5 developers will give some hints. What kind of processor to choose? What RAM, frequency, what is the
I failed most of the time submitting my code in CodeBase and listing my EA in Market while those EA and code are working fine on my terminals. Can anyone guide me to do this successfully every time
I want to create expert on MT5 with my own strategy
Good afternoon, everyone, I know that there are machine learning and statistics enthusiasts on the forum. I propose to discuss in this topic (without holivars), share and enrich our own knowledge bank in this interesting field. For beginners and not only there is a good theoretical resource in
  Become an Author at MQL5.com!  (209   1 2 3 4 5 ... 20 21)
The new MQL5 Community website at http://www.mql5.com keeps developing. We invite all of you to make your contribution to this development. The new MQL5 is the evolutionary continuation of MQL4. The new language is characterized by the support of object oriented programming, by a higher code
Does anyone know what formula MQL5 uses to calculate the monthly profit of our trading account before it's displayed in our account portfolio? It seems like the calculation is also affected by deposit and withdrawal activities
Hello, I am sharing my strategy, which I am using for manual trading, and I am planning to build an EA based on this strategy soon. This strategy works for all currency pairs and timeframes, but the recommended timeframes are M1, M5, M15, and M30. This strategy is currently giving me an 80% win
  History Trading  (7)
hello traders, i am looking out for history trading in mt5,i want to do practice trading with past prices,where i dont have to wait long for the prices to move. can anybody help me out,how to do it
  Harmonic Trading  (5992   1 2 3 4 5 ... 599 600)
Hello all I have tested many strategies and many other stuff but i did not found them more accurant then basic analysis of the market. i mean,the Price Patterns. 1. harmony indicators : here and here. 2. candelsticks reversal patterns is here. 3. Price Patterns : - Price Patterns
  Something Interesting to Read  (132   1 2 3 4 5 ... 13 14)
This is the thread about books related for stocks, forex, financial market and economics. Please make a post about books with possible cover image, short description and official link to buy (amazon for example). Posts without books' presentation, without official link to buy and with refferal links...
  New Dolly  (261   1 2 3 4 5 ... 26 27)
After repeated requests to update Dolly to handle the new extra digit platforms i have decided to totally rewrite Dolly ( 2400 lines of code ) and i have taken the opportunity to include many new features to make the use of Dolly more user friendly, features such as 3 built in trend MAs / Entry Exit...
hi , anybody tried lag-llama for xauusd trading ? how good it is for trading
I just started this thread as a continuation of the talking made on this topic (we can read it). Or ...to make it shorter: it was some discussion about forecasting/predicting of the next candle or direction of the movement or market condition evaluation. And it was around standard indiocators in
  All About Price Action  (34   1 2 3 4)
Dear friends/Brothers/Sisters, I want to start this post regarding Price Action. I want people to help about what I know. Please Respond this post, Share the way you know and learn the way I know. I am not a master but a trader like others and also like to know how others doing. Reply and Keep in...
Hi I saw a very interesting Strategy from a Professional Trader...and I was looking for a way to receive alerts when this trade setup happens in any cryptocurrency or forex pair, etc.... "The price action compresses and the MACD goes relatively FLAT for a period of 3-15 minutes Second, we observe a
  KG Trapping Mode  (751   1 2 3 4 5 ... 75 76)
Hi, i am just a newbie in this forex worlds and if you are a newbie too i know what you feel about this forex's game. I'll share two system that you can use to start your trading: ---------------------- 1. KG Trapping System ---------------------- OK. This is how you can use it: a. Download file...
  Best method to identify trend in forex  (87   1 2 3 4 5 ... 8 9)
Hi guys, I just start a trading discussion about what the best method to identify trend. We know there are three type of trend: 1. Up Trend 2. Down Trend 3. Sideway. How we identify Trend? Thanks in Advanced
  Candel Sticks Indicator and Filters  (59   1 2 3 4 5 6)
Hi Guys Realy Great Stuff you are presenting here. I wanted to share this indicator with you. The Indicator is to show the candel sticks reversal patterns. I know that there is 2 or 3 indicators are doing the same as this one. But what I added in this indicator is to recognize the full pattern not
Hi everyone, I'm in the process of designing an EA for AUD/USD, NZD/USD, GBP/USD, and EUR/USD. My strategy enters trades on the 5-minute timeframe (M5), based on EMA50 crossing over EMA200, with confirmation from the 1-hour trend direction (H1 EMA50). I'm setting slippage to 1 pip. Before I go
The whole point is that you don't have to run separate EAs that trade specific strategies. A centralized solution has many advantages such a system is better risk management between strategies. We can block signals if we detect multiple similar signals. We can dynamically calculate the lot size
Hello, Article : https://www.mql5.com/en/docs/series/iclose iClose, iHigh, iLow, iOpen these values provide the current/Live/real-time candle information or previously closed candle information?. How can iClose value is possible for Current candle because ones the candle is closed, it became
  DOM Ladder  (14   1 2)
Hi. How much would it cost to make this DOM?
  Simple trade automation?  (11   1 2)
I used to use metatrader4 when I was messing with Forex, but I have funds that I'd like to use out of my stock porfolio to trade one particuarl stock which goes up and down $1-2/day pretty much all the time. I'd like to set metatrader up to say, sell at a certain price, then buy at $2.00 lower, then
  Trading Futures  (6)
Hello all, I am new to the MT5 platform & my background is in trading E-Mini S&P500 futures. Of course, I am interested in algorithmic trading but I have not been able to find any source code for this particular instrument. I would appreciate any guidance or assistance in finding some expert
Hi, I have data export from NT8 and need to import it in MT5 but the formats compatible with the two platforms are clearly different. Is there a process/tool to automate this
  Who are the resistance?  (13   1 2)
If BTC/USD has support at $68,000 and resistance at $70,000, what type of group or person would keep dumping at $70,000 when they make very little profit from a buy at $69,000
good day. I'm new here, and I can't find an answer. Please advise: I downloaded a couple of "free" EAs to MT5 and I need to backtest them via "test". But I have a problem that it is counting my profit as a few dollars. I have something set up wrong. I need to set it up for back-testing on stocks and
Hey guys, dumb questions from a noob I just created a demo account on ****** to try their MT5 and I'm trying to find the emini futures in there (S&P 500) but I simply can't. Their website says they support it, but I just can't find it. I wonder if I'm doing something wrong here
Hi @ all, i´m new with MT 5 and wanted to know if its possible to trade on sim/demo account other markets than forex? For instance, NQ, SP500, etc. For now i only see forex markets to choose from. Any ideas? Thanks
  Indexes disabled  (2)
SP500 and NASDAQ Indexes are not up to date and have been disabled for some time now. Is anyone else experiencing this
Newbie question I know..trying to place a leveraged buy order for stock RNG.N. Current ask price is at 32,950. Account balance is 103€ with the same free margin (no other open positions) and a 1:200 leverage. For 50 stocks this should be enough, right? Stop loss is not set. Still getting the "not
Hello all, I'm a software engineer with a C++ background and have been using metatrader for a long time. I've been importing chart data into custom symbols successfully however, I lately have been needing to import historic prices; and in this area, MT5 is limited. The issue --seems to-- lie in the
Dear all, I am trying to import historical data (M1) to MT5 from my Tradestation account. I have export the data in csv format and below there are some rows as example: "Date","Time","Open","High","Low","Close","TotalVolume" 1/2/2008,03:01:00,3841.00,3842.25,3840.25,3841.75,184
[Deleted]
MetaQuotes Software and oneZero Financial Systems announce a new connectivity gateway for integration with Interactive Brokers Group, Inc., available through the oneZero Hub product. The gateway provides the possibility to trade stocks, futures and other exchange traded instruments on the largest...
  Futures Rollover  (1)
does the future contracts on mt5 automatically rollover? Like ES, YM, NQ
Hi all, I'm trying to build a hedge-based EA where: A manual trade is opened (BUY/SELL) If the trade goes into 2-point loss, a hedge trade is opened in the opposite direction Once the hedge trade gains 3+ points, I try to move the hedge trade’s SL to breakeven I am using trade.PositionModify(...)
Hi everyone, here is an include file for walk forward analysis in mt5, it also has the mq5 file which has an example how to call it into you're EA. It's the bare framework of a walk forward analysis type program so it's not like any fancy software you've seen out there before, I'm hoping we can all
  Price_Channel_v6-ea  (88   1 2 3 4 5 ... 8 9)
Hello. Today I come to propose a new method to you which proved reliable manually. I know that newdigital uses this indicator on its method, but today the approach is different . Here several weeks that one of my best friends trade with this method than it improved much and who is advantageous still
my errors do not happen often, however, I know that it will happen on 8 of 16 cores/threads if i start optimiser with all 16 threads enabled. But makes sense to me that it would so i never start optimiser with more than 6. But I am getting 1 core, never the same core, every 16 hours or so, with the
Yesterday when I was doing some backtesting of EA I realised that ticks data were missing for year 2023 and before resulting the testing quality to be 0 What could have happened? Do I need to contact the broker for this? I have tried to delete all tick data and tried to re-download but data are
folks, it's a big pain navigating between charts and editing indicators (add, remove, change color, change time frame....etc) in mt5....so i was wondering if anyone managed to hotkey important charting and trading functions using autohotkey and elgato steam deck ? i was thinking it might be possible
  Look for Best EA  (8)
Can someone tell me which ea is the best in MQL5 market ? There are so many EAs in MQL5. It is difficult to find good EA
Hi all, maybe someone knows whether there will ever be the possibility of showing "Positions" in the backtest report? In MT4, they were clearly listed using their Open price + time, Close price + time and their total profit/loss. In MT5, only "Orders" and "Deals" are shown with no real connection to
Hi all, I'm encountering persistent compilation issues specifically with MetaTrader 5 Build 4885 where the compiler fails to recognize seemingly standard, fundamental MQL5 constants. I'm hoping others might have seen this or have insights. The Problem: Even in minimal .mq5 scripts, the compiler
hello, I'd like to run many test with different parameters and/or on different pairs automatically. for example I'd like to test my EA on EURUSD2012 and CADCHF2011 wihtout having to manually restart backtest at the end of the first run, in this way I could let my laptop work overnight and collect
Hi, I want to set the stop loss for the trade to a particular % of the price. For making it multiple of the ticks, I used the below code: double tickValue = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_SIZE); double price = (type == ORDER_TYPE_BUY) ? SymbolInfoDouble(_Symbol, SYMBOL_ASK)
For me personally I build strategies based off indicators so I follow something like the darwinex multisymbol template posted on github. I have a bunch of enums for deciding lot size, sl and tp based on ATR, new filter enum, and a bunch of functions I copy and paste over for placing trades that have
Cannot load indicator/Cannot load custom indicator error MT5 tester My Ea runs normal when trading but when I test it I get the mentioned error, anybody knows how to solve it please? Thanks
My question is does the base currency of an account require corresponding symbols to be enabled in market watch? For context. My ea runs on the eurusd pair. It uses the OrderCalcMargin function. I noticed it was unable to trade without both the eurgbp and gbpusd pair also present in the market
Can you tell me if this is a realistic tester figure? And is this a good or bad result for a year with a deposit of $3,000
Hi Traders, If you are trading using indicators especially the one from CodeBase, I invite you to share your strategies here. Thanks for your participation
Hi all, I'm programmatically loading a custom indicator using IndicatorCreate() and passing values for the indicator's input parameters via the params[] array. My custom indicator uses input group declarations like " " and "--- Tick Density" to visually organize input settings in the parameters
  Trend continuation factor  (89   1 2 3 4 5 ... 8 9)
Been fooling around with "Trend continuation factor" indicator by M.H. Pee and somehow I could not find the "original" indicator for mt4 (the non-smoothed one) so, here it is (along with the original article by M.H.Pee about the way it should be calculated and used). One T3 smoothed version of it...
I want to know how you handle your moving average indicator. I am developing EA that is using 3MA to make trade. Exactly i want to know what is your MA Parameters? Now i am discussing  about your great Parameters and your experiences to improve my 3MA Crossover EA. SO if you having any idea to...
Plotting arrows a long indicators' buffers on subwindow, which has more than one indicators , seems to be impossible to do it correctly since each indicator has its own scaling/zoom factor, and there is no way to retrieve that scale/zoom factor. Simple code to try it out
Is the some indicator that would display how many points i can tank before i'll get a margin call? (With the current balance i have). Could be good to see it as a stop loss line. Otherwise i'll be happy to know if there is smth similar
I’m working on an MQL5 custom indicator and I’ve extracted this part of the code to test why the arrows aren’t showing up on the chart. The main logic of the indicator is working as expected, but the plotting is not. Note that this is just a part I extracted from my indicator and I’ve given random
In MQL5 what command is used instead SetLevelValue(..)
  CCI Woodie like  (278   1 2 3 4 5 ... 27 28)
  ADX indicator?  (255   1 2 3 4 5 ... 25 26)
Hi, Was wondering where I could get my hands on the ADX indicator with color changing when above a certain level
Hi, I have this sample code for the MTF RSI indicator. The first thing we check in onCalculate is whether the number of bars calculated by the RSI handle matches the number of bars in the selected timeframe. If they don’t match, the function returns zero. This works well in the open market, and
  Strenght meter  (4)
Strenght meter v2
In mql5, starting from an indicator, I wanted to make 2 instances of the same indicator, so that the 2 graphs could be presented in the chart. I started by duplicating the inputs, as well as the arrays, properties and buffers. After numerous tests, I only managed to present the first instance of
Dear all, I am trying to write an MQL5 indicator, but the buffers are empty. Additionally, the arrows are logically not shown. Can someone please help me? Here's the code: #property description "Fractals" #property indicator_chart_window #property indicator_buffers 4 #property indicator_plots 4
  help with code  (2)
i'm trying to make an indicator that works on M1, it checks if the minute candle closed above previous hour high or below previous hour low and marks it, it seems i have a problem with getting previous hour high and low, the below code works but not consistent, sometimes it marks candles that did
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...
  Indicators: Perfect Trend Line 2  (35   1 2 3 4)
Perfect Trend Line 2: Perfect Trend Line 2 Author: Mladen Rakic
Check out the new article: Finding custom currency pair patterns in Python using MetaTrader 5 . Are there any repeating patterns and regularities in the Forex market? I decided to create my own pattern analysis system using Python and MetaTrader 5. A kind of symbiosis of math and programming for
New article Payments and payment methods is published: MQL5.community built-in services offer great opportunities both to MQL5 developers and ordinary traders with no programming skills. But all these features can't be implemented without in-house secure payment system, that provides a convenient
Normalized Price Indicator: By using this indicator you can see the normalized price of any chart! Author: Farhad Kia
Donchian Channel : Donchian Channel with mid line and moving average of mid line. Author: Rain Drop Trading
Bunnygirl Cross and Daily Open: Based on the intersection of the averages. The author of the system states that about 90% of the trades are positive. And considering its exit strategy, it is possible to collect a rather big profit during a trend. Author: John Smith
Arrow and Smile: Arrow for input and Smile for output. Author: Jing Jie Huang
Check out the new article: From Basic to Intermediate: Operator Precedence . This is definitely the most difficult question to be explained purely theoretically. That is why you need to practice everything that we're going to discuss here. While this may seem simple at first, the topic of operators
Check out the new article: Price Action Analysis Toolkit Development (Part 21): Market Structure Flip Detector Tool . The Market Structure Flip Detector Expert Advisor (EA) acts as your vigilant partner, constantly observing shifts in market sentiment. By utilizing Average True Range (ATR)-based
Check out the new article: Manual Backtesting Made Easy: Building a Custom Toolkit for Strategy Tester in MQL5 . In this article, we design a custom MQL5 toolkit for easy manual backtesting in the Strategy Tester. We explain its design and implementation, focusing on interactive trade controls. We
Check out the new article: High frequency arbitrage trading system in Python using MetaTrader 5 . In this article, we will create an arbitration system that remains legal in the eyes of brokers, creates thousands of synthetic prices on the Forex market, analyzes them, and successfully trades for
Check out the new article: MQL5 Wizard Techniques you should know (Part 63): Using Patterns of DeMarker and Envelope Channels . The DeMarker Oscillator and the Envelopes' indicator are momentum and support/resistance tools that can be paired when developing an Expert Advisor. We therefore examine on
New article How to Test a Trading Robot Before Buying it from MQL5 Market is published: MQL5 Market allows you to test a trading robot and its features before buying it. Every Expert Advisor offered in MQL5 Market comes with a demo version that can be tested in the Strategy Tester. It is quite...
Check out the new article: Overcoming The Limitation of Machine Learning (Part 1): Lack of Interoperable Metrics . There is a powerful and pervasive force quietly corrupting the collective efforts of our community to build reliable trading strategies that employ AI in any shape or form. This article
Hi! Hope everyone is doing well! I have couple of questions: In MT4: 1. When I double click for example in XAUUSD D1, this data is downloaded from trade server, right? 2. When I select Download, this gives you an alert saying that data will be downloaded from MetaQuotes, so, data is overrided with
Hi everyone, i want to change the default settings for price alert from sound to notification! When i add new alerts over the chart than the expire date is activated. I want this also off as a default. Thanks@all!
  Previous tick's value  (40   1 2 3 4)
I, a custom indicator , just got a new tick and am currently in Start already. I need to find out whether I am to move up from the previous tick or down. Where do I fetch this information
How can I fetch Tick data from MT5 and MT4 broker terminal in real time (live tick data)
From the topic u will get fast my problem I'm a beginner EA programmer, this is my first EA pls see my Code I really dont get why its still not working, I mean why do I get still "invalid error" //+------------------------------------------------------------------+ //|
  Terminator v2.0  (564   1 2 3 4 5 ... 56 57)
Here it is guys. Check out the ReadMe file thoroughly. I've been using the H1 chart. Updates will be posted here so they are not dispersed throughout the thread. If a zip file has a low number of views, it's due to a recent update, if only in the readme file. Enjoy, Tom
Hello, I'm having an issue getting the correct signal from my indicator. Previously the line of code stated ( if x > 1) and it signalled correctly now i want it to signal if x is between 1 and 2, but the back test seem erratic, I'm using the code below if (x > 1 && x < 2) it seems as though it'll
Hello, I am trying to avoid 6 hours before market close and 6 hours after market close in my EA. i am using SymbolInfoSessionTrade to get opening and closed time of assets. What mistake i am making? extern int MinuteToAvoid = 360 ; void MarketHoursMonitor() { datetime serverTime = TimeCurrent ();
  MTF Stochastic  (32   1 2 3 4)
Hi, The attached stochastic is an mtf version that is great. However it does not show interim values on higher time frames when used - it only updates the values on close of the higher time frame values. Could you change it to show higher time frame values in the interim before bar close, during...
Hi, I've tried using several EA's on MT4 and keep getting the attached error message. Any help would be much appreciated. Thaks Steve
Hi all. I have recently used ChartSetInteger function to programmatically change sub window height (MT4 latest build 830). Once this code is applied to the chart, then I can't change sub window size manually afterwards. It seems the code fixes the sub window height and even if I drag my mouse...
Guys, Ive been trying to withdraw funds from my MQL5 account and MQL5 frustrating my effort. I created a webmoney account to receive funds and their response was "Our payment provider does not support your region" Please let me know how an international payment system such as webmoney is not
  MT4 Purchases Not Showing Up  (14   1 2)
Hi, I am having trouble with the 'market' tab on MT4 after I login to community, I am unable to see all my purchases on my account to download my products I have purchased, and this started occurring after I reinstalled metatrader, but also checked a different installation I have on MT4 on a
The MetaTrader 4 platform update will be released on Thursday , October 14, 2021. This version provides error fixes and platform stability improvements. The update will be available through the Live Update system
Hello, I am trying to achieve two operation, On friday before market close, close all the open trade before X hour and On monday after market open, Start taking new trade after X hour. I am trying like this int MinuteToAvoid = 60 ; void MarketHoursMonitor() { datetime serverTime = TimeCurrent ();
This website uses cookies. Learn more about our Cookies Policy.