MQL5 Algo Trading community — forex forum for traders and developers

Hello, Is there any tool etc. to convert MQL5 scripts to Python. If not, is there any tutorial or guideline to explain how MQL5 structures can be converted into Python. Currently I am trying to convert ATR adaptive SMA.mq5 to Python but I am stuck as I am quite new to MQL5. Any advice will be
If we made MQL 5’s signal at 2023 and we change the investor’s password account and reconnecting the MQL5’s signal but the trading history from 2023 – 2024 is disappear. Is it possible to restore the history from 2023? How can we fix it
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...
Hello everyone, I'm experiencing an issue when working with FUTURES in MetaTrader 5 (with a live or demo feed). Specifically, when performing even simple calculations on each tick (inside `OnCalculate`), I noticed that the **chart candles do not update in real-time** with the incoming price. To be
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
I’m reaching out for some clarification about how MT5 handles time zone offsets when fetching historical data. Here’s the scenario: My current local time in Budapest (UTC+2) is 10:34 AM . The broker’s time zone is Cyprus (UTC+3) , so it's 11:34 AM in Cyprus. UTC time is currently 8:34 AM . I assumed
Hi all. I have a MQL5.com website login issue that has become very frustrating, so any and all help is appreciated. I even had to start this new MQL5.com registration just so I was able to log in to this support forum and seek assistance. For many years I have had an mql5.com account, and in all
My EA has the following function: int GetHistories( ENUM_TIMEFRAMES timeframe) { MqlRates Rates[]; int copied = 0 ; ResetLastError (); string symbx= Symbol (); for ( int x= 0 ; x<mc.arrsymbx && ! IsStopped (); x++) { symbx=mc.DIRI[x]; string InpFileName = symbx + ".csv" ;
For some reason, I am missing new account registration mail. Is there any way to retrieve it? Thank you so much in advance
Cant install and Activate my purchased Product on my Server in MT5 Terminals. Getting "failded download product ... 403" error! Uninstall and reinstall all MT5 terminals, also with a non broker version from this site, but doesnt work. Any helpful Ideas
I want to sign up for a signal but it says it was rejected. However, there is no information about why it was rejected. I want to broadcast a signal. How do I do this
How to start trading in MQL5
The latest versions of the MetaTrader 5 mobile app for iOS introduce a range of convenient chart features, along with important stability improvements for a smoother user experience. Added text object for creating custom labels on charts. Open the chart objects menu and tap "Add Text". Next, enter
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, I installed MT5 on my Mac intel version, and it's opening as wine64 instead of Metatrader 5 and uses 70% of my cpu. It used to open as Metatrader 5 and work fine before I updated my MacOS. Anyone else having the same problem
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
  Harmonic Trading  (5991   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
  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
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
  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
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  (33   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 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
  "No loss" recovery hedging system  (146   1 2 3 4 5 ... 14 15)
Question: Would you be willing to trade any system or strategy you want on your $10000 account and turn every trade you take into a win trade (of $200 or $20) or a breakeven trade and have only a small theoretical chance of losing let's say $600 in worst case scenario? Some traders would probably...
I'm curious about the effectiveness of a weekly adaptive optimization approach compared to sticking with a single, static rule for EA (Expert Advisor) strategies. Consider an EA that has already been built with one year of optimization. What if we update it every week with slight adjustments based
Hi all, I was not able to successfully exploit this divergence wit han EA, anybody has any idea on how to optimize this theoritical strategy
The buyers are the loser and helpless from MQL stuffs
  DOM Ladder  (12   1 2)
Hi. How much would it cost to make this DOM?
  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 I have been trading UNLEVERAGED ETFs on non metatrader broker of Indices (NASDAQ100,S&P500) and Metals(Gold, Silver) . I was always buying .Long The reason for this choice was because no Swap is being charged and I can hold a position for months without much stress. I will now seek MT5 brokers
  Look for Best EA  (3)
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
Hello all, on trading view its possible to create currency baskets like the yen basket (JPYBASKET) but on mt5 I'm not sure how to go about this. I have zero experience in create custom symbols other than downloading tick data from dukascopy so I'd thought I would ask if anyone knew how to do this
These are the results of my strategy, both use data based on real ticks of the same currency pair and the same strategy with the same inputs and conditions, the only difference is that the real tick data from one is from Pepperstone broker and the other is from Dukascopy. Would anyone know why they
I have seriously lost it, my patience has snapped with this thing. I am so sick of absolutely screaming and going bat shit crazy just because MQL5 can't do something as simple as retrieve a magic number. It is not difficult for this thing to comprehend something so simple, but I have never been so
Can someone help me with this? I’m optimizing a new EA, everything begin correctly but then some Agents finish while others are stuck going over 100%, the overall optimization remains blocked. Optimization at 1:53 pm After 10 minutes not even a new pass executed
I found out about how to implement the Ichimoku indicator in my EA, but it can only read the values that the Ichimoku takes according to the main chart. Instead, I want to find a way where I can compare the Ichimoku values to the Levels I set for it in the beginning, levels like 80, 20 that are
Good evening everyone, I use which doexpert advisor not have capital protection...can you help me
Hello everyone and Happy Easter to those who celebrate! Recently I ran into very interesting issue, MT5 strategy tester generated trades don't match at all on chart and in journal, let's say, in the backtest tab I see 11 trades, and the chart is showing 2793 trades. I expect a high number of trades
Hi, I made an EA (this is my first Ea) and when testing it, even there is no date and time variables on it, the orders on Friday are not executed and the Diary send a message "market closed". The startegy is based on the direction of an MA and it has 3 variables for stop loss (stoplosspoints
Based on the documentation which lists a Login and a Password entries, I thought creating my custom config file that would allow me to run EAs programatically from a Windows command line should be a relatively straightforward task. I created the following very basic .ini file, almost identical to
I have a question about this mt5 python solution, do i understand this solution correctly, you need to install for every mt5 account into which you want to login also a seoerrate mt5 terninal on the same comouter? Or can you just login to any mt5 account with this python libary without need to
i am fairly new to coding. its been two days since i have been working on this. compiling it brings 2 errors, i have checked the trade mqh file for help. but made more errors on the way. here is the code. #include<Trade\Trade.mqh> // Create a Ctrade instance void OnTick () { // create an empty
Hi all, I came across a youtube video someone (Can not find the video i searched history on every browser and phone) was making code changes to position sizer from earnforex to have an indent on breakeven of specified value and also for the trailing stop to start once tp1 is achieved instead of
Hi, i have my personal money management Expert and send a sample of my expert to prop-firm provider. they told me that i'm not allowed to use this expert and have to use other experts that confirmed by them. in this regard you are kindly requested to let me know if i use my personal expert, how
Title says it all. I've been through a lot with EA coding and can do multi symbol stuff, custom performance metrics (Calmar Ratio, Avg Weekly R multiple, etc), news filtering. Yet I have never been able to create any profitable system on the 5 min timeframe. The way I build EAs might be affecting
  Strenght meter  (1)
Strenght meter v2
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
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
  Multi pair indicators  (573   1 2 3 4 5 ... 57 58)
Something I have been working some time ago. Multi pair MACD Multi pair CoeffOfLine
i used to have multiple moving averages on my chart and it worked flawlessly until earlier today i only have one ma and wanted to add more, but no matter what settings i put into the ma, when i click save nothing new was added, and only the first moving average remains. is this some kind of a bug or
  Divergence Indicators  (330   1 2 3 4 5 ... 32 33)
Hi all, I am looking for an Indicator with show Divergence on the macd version i attach below , with a sound alert signal. Can any one programer help out please. Thank you
  Correlation indicators  (164   1 2 3 4 5 ... 16 17)
a nice indicator i think green GBP /red USD se the pic
Can someone convert this ADR or recreate it for MT5 (MT4 Source Code Included)
Can anyone out there advise if there's an MT5 version of this indicator? Even a recreated version with the features highlighted in green (from the MT4 version, for which I don't have the source code) doesn't help—I've been unable to find an MT5 ADR indicator that matches the settings and delivers
  Zigzag indicators  (647   1 2 3 4 5 ... 64 65)
Different zigzag's indicators please post here
Hi all. I'm trying to make simple indi which will speed up placing sup/res lines on the chart. It will place Hline on mouse click only while holding (ctrl for Blue or shift for Red line) but I don't know how to combine CHARTEVENT_KEYDOWN & CHARTEVENT_CLICK or I'm doing it the wrong way? Can...
  day fibo  (2)
/*+------------------------------------------------------------------+ | 1DayFibo | | Copyright © 2011 | | basisforex@gmail.com |
hi everyone i have an issue with my indicator, the arrow buffer is filling with some strange values that draws wrong signals on charts here is the issue picture and here is the code: #property strict #property indicator_chart_window #property indicator_buffers 5 #property indicator_plots 2
Kuskus Starlight : Kuskus Starlight is an oscillator that utilizes a Fisher price transformation to identify trends and potential reversals. The original MT4 code by Scriptor is available at: https://www.mql5.com/en/code/8365. Author: Marteo Gonzales Cosme
New article The checks a trading robot must pass before publication in the Market has been published: Before any product is published in the Market, it must undergo compulsory preliminary checks in order to ensure a uniform quality standard. This article considers the most frequent errors made by...
Check out the new article: Integrating AI model into already existing MQL5 trading strategy . This topic focuses on incorporating a trained AI model (such as a reinforcement learning model like LSTM or a machine learning-based predictive model) into an existing MQL5 trading strategy. In this
Check out the new article: MQL5 Wizard Techniques you should know (Part 61): Using Patterns of ADX and CCI with Supervised Learning . The ADX Oscillator and CCI oscillator are trend following and momentum indicators that can be paired when developing an Expert Advisor. We look at how this can be
Check out the new article: Building a Custom Market Regime Detection System in MQL5 (Part 1): Indicator . This article details creating an MQL5 Market Regime Detection System using statistical methods like autocorrelation and volatility. It provides code for classes to classify trending, ranging
RRS Impulse : This EA scalps using the Relative Strength Index (RSI) Indicator, Stochastic Oscillator Indicator, and Bollinger Bands Indicator to identify trend or counter-trend opportunities. As a multi-pair EA, it scans multiple currency pairs for signals. This EA comes with a variety of features
Volatility quality - zero line: Short description. Author: Mladen Rakic
Check out the new article: How to create a simple Multi-Currency Expert Advisor using MQL5 (Part 6): Two RSI indicators cross each other's lines . The multi-currency expert advisor in this article is an expert advisor or trading robot that uses two RSI indicators with crossing lines, the Fast RSI
Examples from the book "Neural networks for algorithmic trading with MQL5" : The book "Neural networks in algorithmic trading with MQL5" is a comprehensive guide, covering both the theoretical foundations of artificial intelligence and neural networks and practical aspects of their application in
Simple license on account name : Below you can find a super simple method to create a license based on MT4 account name. Place in your init function: CheckLicense(); The stringLower method makes sure the account name is in lowercase. Then you can check this value with the account name you want to
Check out the new article: Websockets for MetaTrader 5: Asynchronous client connections with the Windows API . This article details the development of a custom dynamically linked library designed to facilitate asynchronous websocket client connections for MetaTrader programs. The article
Piano : Listen to the rhythm of your candlesticks Author: Rajesh Kumar Nait
EA Stochastic Bollinger Bands Multi - Timeframe : This MQL4 code implements an Expert Advisor (EA) that trades based on the Stochastic Oscillator and Bollinger Bands indicators across multiple timeframes (M1, M5, and M15). Author: Trap Music
Check out the new article: How to build and optimize a volume-based trading system (Chaikin Money Flow - CMF) . In this article, we will provide a volume-based indicator, Chaikin Money Flow (CMF) after identifying how it can be constructed, calculated, and used. We will understand how to build a
Check out the new article: Decoding Opening Range Breakout Intraday Trading Strategies . Opening Range Breakout (ORB) strategies are built on the idea that the initial trading range established shortly after the market opens reflects significant price levels where buyers and sellers agree on value
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 ();
In my indicators, I use OBJ_BUTTON for creating buttons and I have not implemented any custom sounds for button clicks. However, one of my users mentioned that they hear a sound every time they click a button and asked, "Would you please allow users to turn off the sound of the click button?" I
Hi All I would really appreciate some assistance. Fairly new to MT4. I have recently managed to code my strategy into an EA, which is mainly used on indices (DE40, NAS, US30). I ran a backtest on my NAS trading strategy using MetaTrader's Strategy Tester, set to the "Every Tick" model for maximum
Hi, can I use screenshot() to snap the screenshot of an order I just opened in theExpert advisor? If it works, does it work in StrategyTester also, or only live? Also, can I use screenshot() within a custom indicator?
How can I get MT4? Whenever I download the MT4 window setup and run it, it ends up installing MT5. This is confusing as I actually need MT4 to write EAs for my clients
Hello, what should i use along with OrderSelect? if (! OrderSelect (i, SELECT_BY_POS, MODE_TRADES)) // Ensure order selection is successful return ; if (! OrderSelect (i, SELECT_BY_POS, MODE_TRADES)) // Ensure order selection is successful break ; if (! OrderSelect (i, SELECT_BY_POS
  Triangular moving average (TMA) ...  (775   1 2 3 4 5 ... 77 78)
The purpose of this thread is more personal ... At some stage (some 4 years ago, posted it at this post : https://www.mql5.com/en/forum/175938/page17I ) coded one variation of an indicator that I named TMA centered. After that somebody shortened it's name to TMA and ever since I am receiving emails...
Hi All,   Working on a Multi Time frame stochastic oscillator tool that works well for me as a manual trading strategy ive integrated into part of my EA and it works fine forward testing it but I cant back test it using strategy tester.   Ive done a lot of modding of the code lately to really strip...
  Dolly new MT4  (51   1 2 3 4 5 6)
Dolly Graphics v16The Dolly indicator has been updated to reflect the new code available with the new 600 series MT4, hopefully when MetaQuotes release the next platform update everything continues to operate. The indicator is currently being tested and checked for any obvious bugs and will be...
I CANNOT DOWNLOAD or INSTALL new MT4 at my VPS, I think the IP of my server is banned by mql5 for this, anyone has any idea or how to contact mql5 offically, the support messaging system just direct me around and cant really even a message
Trades from 2022 and 2023 are archived in one of my MT4 accounts . Does anyone know the reason for this and if it is possible to unarchive these trades? All history show correctly in MyfxBook but not in the terminal. The broker, IC Markets, could not explain why this happens in only one of my
Hello, I want to close all opened or which open trade automatically except 2 most recently opened trade. My code extern int BlindClose = 2 ; void CloseOldOrder( int MagicNumber) { int OldOrderClose_totalOrders = OrdersTotal (); int OldOrderClose_count = 0 ; int
I had abandoned Strategy Tester for more than a year. Then I decided to try it again. Terrible experience just like in the old times. I write an EA that is an absolute winner in the backtests, then I put it to work on a live account (demo, of course) for three days and it loses money for three days
HI I am using Macbook air 2015 using BIG SUR version 11.7.10. on the app store it says my system is not compatible. i contacted the apple support and they told me to ask for a previous version of MT4 which is compatible with my system. hope someone can help on this
Hi coders, I'm learning programming now to develop a simple Stochastic indicator . I don't know what codes are lack of resulting the indicator wasn't updated automatically. Upon a New Bar is launched, there are 2 issues :- 1) Stochastic "< 80" or "> 20", the DotLine wasn't removed automatically 2)