MQL5 Algo Trading community — forex forum for traders and developers

Hi, After I updated MT5 on my iphone y'day, somethings have changed. For example, I took a trade and when I go to set my SL/TP as I always do by tapping on the slider to drag it, it doesn't work anymore. Also a weird panel from the bottom pops up that never popped up before. Has anybody had this
Hi, What is the Contact Support email, instead of contact using bot? I need to contact using email and explain my verification. I need to do my verification to withdraw the fund from my MQL5 market Thanks
Hello. I have a question. In MetaTrader 5, when I type Persian, words are written from left to right and letters are separated. And sometimes only a straight line is drawn and the text option does not work. Please help. Thanks
“I am using the same EA, the same settings, and the same period in both the backtest and the live account. Why can the results be different, even though I am already using real ticks? On the live account my EA is profitable, but in the backtest it ends up with a margin call, even though the period
I have done everything requested of me regarding opening firewall, removing other programs (nearly all from my laptop !!), un-install and re-install MetaTrader 5 and MetaEditor and no matter what I seem to do AI Assistant doesn't respond to any questions in MetaEditor like it used to a few months
New MT5 Terminal Build [5440] Breaks Custom MQL Graphical Interfaces (GUI) Dear MetaQuotes Team, I am writing to report a major issue concerning the graphical display of my custom MQL applications (Expert Advisors and utilities) in the newest MetaTrader 5 terminal build. The problem is specifically
i imported an indicator compiled it with zero errors but unablae to see it on the existing list of indicators. Please help
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
In my metatrader i use that rounded tp sl in one click but now there is a pop up how to fix that please help me
hi I can not understand my MT5 calender stop updating data from last two weeks. i can not understand what to do? Please see attached photo. I think it is issue with my mql5 account? can you guide me please
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...
  Where Do I start from?  (180   1 2 3 4 5 ... 17 18)
Hi fam! Am a total newbie in the forex niche... Just signed up here on this platform... Please where do i start from? I need help... Anyone willing to put me through?
  How to start with MQL5  (464   1 2 3 4 5 ... 46 47)
This thread discusses MQL5 code examples. There will be examples of how to get data from indicators, how to program advisors ... in general, any questions from beginner to the MQL5 language. If you are just starting to get acquainted with the MetaTrader 5 terminal, then I can recommend the
Dear MetaQuotes Team, Please allow me to be extremely precise, because this issue is often misunderstood as a scaling problem, while it is actually a viewport vertical offset problem. This report is NOT about vertical zoom or auto-scale. Clear terminology (to avoid any confusion): Vertical Scaling
I don’t understand why the price scale position always snaps back to the default level on the first scaling. When I resize the chart vertically, it always jumps back to a fixed price level on the first resize, which is extremely annoying
I don't know if others were doing the same, having multiple EA running simultaneously on the same pair. So, I think each can work smoothly, and speedy
  What strategy actually works?  (106   1 2 3 4 5 ... 10 11)
Guys, I have been trading since 2011, I have tried nearly 2000 strategies, I have build almost 2000 Eas and indicators, on this olatform and on other platform, but I have not really found what works, what actually works? and does such a thing exists
How can be the best professional developer
In Forex market, it is important to know the return of your investment even you are a scalper to be able not to be discourage to the result of your trade
  MetaEditor, Open AI and ChatGPT  (84   1 2 3 4 5 ... 8 9)
Forum on trading, automated trading systems and testing trading strategies Test version of MQL5 Copilot in beta 3647 Renat Fatkhullin , 2023.03.23 23:11 In today's beta version 3647, we've included the first version of Copilot, a feature to enhance the editor's ability to write code. The settings
  Scalping system  (197   1 2 3 4 5 ... 19 20)
Recently I was experimenting with a couple of indicators used for a non-scalping system presented by BigBear - https://www.mql5.com/en/forum/177573 I was debugging one of the indicators when I switched to the M5 chart and noticed a nice setup for a quick short trade... hmmm.... probably a...
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
  Trade Server Problem  (16   1 2)
Hello fellow traders! I'm experiencing intermittent and severe issues with my broker's Trade Server that cause the client terminal (MT5) to desynchronize from the server. Symptom example (broker log): order #282341555 buy 20 / 20 WINZ25 at market done in 158785.980 ms (|{INTRADAY}|) Yes — 158,786 ms
[Deleted]
Hello, I am using the EMA 200, but I am confused about what ADX period I should use. Should I use ADX 200, or a lower or higher period? Up Trend: Market Price > EMA 200 ADX > 30 DI+ > DI- Down Trend: Market Price < EMA 200 ADX > 30 DI+ < DI- Please suggest what ADX period I should use. Is there any
  All About Price Action  (55   1 2 3 4 5 6)
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...
[Deleted]
  DSS3 :an scalping system  (292   1 2 3 4 5 ... 29 30)
Hello , at Stochastic Oscillator thread , Dear Mladen wrote a cool indicator , which was Dear PAVA's idea.It was DSS3 . It's a good system for scalping . I want to scalp with it and share my result at this thread .
Hi again, The Multiple Regression Analysis and Forecasting template provides a solid basis for identifying value drivers and forecasting time series data. While it utilises a range of commonly employed statistical measures to test the validity of the analysis, results are summarized in text for ease
  Dual Candle-stick Strategy  (37   1 2 3 4)
Dual Candle-stick Strategy My 4HR Dual Candlestick strategy is based on dual candlestick patterns in which the second candle is completely contained by the high and low of the first candle. Using two indicators for this strategy are Bollinger Band (20,2, close) RSI (14, close, Levels 30,50,70) Long
  Bulletproof  (518   1 2 3 4 5 ... 51 52)
Try this combination on 5 min and up....you might like it...or not.... ⌒╮WELCOME ╭⌒╮ ╭⌒╮ ╭⌒╭⌒╮╭⌒╮~╭⌒╮ ,)))),'')~~ ,''~) ╱◥█◣ ╱◥█◣ |田|田||田|田| ╬╬╬╬╬╬╬╬╬╬╬╬╬╬
Good day dear forum members. After reading the forum a bit, I came across several threads on arbitrage and pair trading . Judging by the threads, some are interested and some are trying it. I used to dabble in this topic a long time ago, but my knowledge was not enough. Now I am a complete mess in
After the last MQL update on MT5 (5273 12 Sep 2025) //--- Show all the information available from the function AccountInfoDouble() printf ( "ACCOUNT_BALANCE = %G" , AccountInfoDouble ( ACCOUNT_BALANCE )); printf ( "ACCOUNT_CREDIT = %G" , AccountInfoDouble ( ACCOUNT_CREDIT )); printf (
  Indexes disabled  (3)
SP500 and NASDAQ Indexes are not up to date and have been disabled for some time now. Is anyone else experiencing this
I was doing trading and leave the screen for some minute and I want to back check the history. Is there any tick data or tick data based back check method
I want to demo Options board on MT5 but cant find ANY one who offers it? Where can i try the MT5 options board? Who is currently demo/ real trading with MT5 options platform? its ridiculous i cant find ANY information on how to actually do it/ who offers it. Its almost as if it doesnt exist/ noone
Want to trade gold and silver on spot not futures .. i tried futures algo trading on ninja.. too much loss on slippage. Any ideas what are others doing
If you invest in stock portfolio or asset management firm, and you have 2 options 1- Long only : go long with bullish market only ( lower return ) 2- Long-Short : go long when bullish and short when bearish market ( extra return from shorting ) When strategy short stocks it expose your portfolio to
i been using amp for future trading from last two years in usa but from last three days i been noticing disconnection of data feed in live trading for almost 30 seconds to 1 minute, is anyone else have this issue
  DOM Ladder  (18   1 2)
Hi. How much would it cost to make this DOM?
  Who are the resistance?  (16   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
Hello there, I'm trying to trade on, Micro E_mini Nasdaq-100 index futures, As far as I know their symbol is MNQU5, I just cant seem to get them to show on MT5
Hi I just Googled "mql5 depth of market volume", and got the following definition: In MQL5, "depth of market" (DOM) volume refers to the aggregated volumes of pending buy and sell orders at various price levels, visible in the order book
As the title says, MT5 supports options. I have been waiting for a long time, but I have not seen any use cases
Hi guys, can anyone share their experience with trading Bitcoin on nano and cent accounts? Do you have any tips regarding input settings, how they calculate decimals, and similar details? Thanks
  Simple trade automation?  (12   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
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
I'm mostly talking about issues with the "Visual Mode" of the strategy tester 1) If I start a backtest, but then stop it using the stop button of the main MT5 window and then try to start a new backtest by clicking "Start" : it doesn't work. I have to go to the Visual Mode window and click stop
I've noticed that after copying history with CopyRates MT5 keeps copied array in memory. It's ok for cached access but when I run through lots of symbols my memory ends fast. And memory stays occupied until MT5 exits. Is there any way to forcibly release memory occupied by CopyRates cache
In market execution mode, we can't specify an opening price and a maximum deviation, but the broker sets the openprice for the trade. This raises two questions for me: 1. Cannot we set a limit to slippage? Could the broker set an open price significantly different from the one I got before opening
Hi, reading documentation it seems (maybe i'm wrong) there is no EXACT way to know, before a trade is open, how much margin the trade will take. Reading OrderCalcMargin , doc specify: The function calculates the margin required for the specified order type, on the current account, in the current
Hi guys, I am really enjoying MetaTrader5 and enjoying doing EAs and back testing them. I am doing now a Python script that I want it to calculate some technical indicators and tell me if the market is OK and I should enter, or if it is bad and I should exit. I need some web sources so that my
I'm using CustomRatesUpdate() function . It costs up to 2-3GB of disk space on real time running interval 1 sec in 24 hours (version A) but while I copy M1 timeframe data from server then CustomRatesUpdate() from 8/2024 just in 7MB (version B) . CustomRatesReplace() also has the same effect Version
I want to check weather the deal in history is SL or TP. How do I track the deal from the order number that assigned when place order (name: ticket01). I understand that ' HistoryDealGetTicket' parameter is 'Number of a deal in the list of deals'. But what is that? ulong deal =
As I run optimization test ,get result and run single test result not match the result. Get huge deviation, not sure it's optimization get error or single run get error. It's so confuse me. I do lot of tests base on this version code,over one month. MT5 base on version 5, build 2981. Always skip the
Let's look at the results of the tests on one and a few characters. The tests will be conducted in All ticks mode. You can use your own multisymbol EA schemes to reproduce the problem and share your results. Let us denote the problem. For example, if you test one symbol, the test time takes 1
  pip install MetaTrader5  (19   1 2)
ERROR: Could not find a version that satisfies the requirement MetaTrader5 (from versions: none) ERROR: No matching distribution found for MetaTrader5 This is no longer working
// MT5 – minimal heartbeat tester #property strict input string CONFIG_FILE_NAME = "***\\***_mt5_config.ini" ; string gApiKey = "" ; string gAccountId = "" ; string gIngestUrl = "" ; string gHeartbeatUrl = "" ; //----------------- helpers ----------------- string TrimBoth( const string
I am getting absolutely infuriated with this utter piece of crap, why is MQL5 continuing to give me the same errors despite the fact that I am doing nothing wrong? Why when I create a function which checks to ensure that all variables are not initialized to zero, does MQL5 think it's perfectly
In an EA that I am developing in MQL5, I use the function SymbolInfoDouble(symbol, SYMBOL_TRADE_TICK_VALUE ) to get the tick value of pairs that I am trading. It gives me the correct tick value when I run the EA normally. However, when I run it on the strategy tester the function returns wrong tick
Hello guys, I have a problem when try to use example for vector::Sort at https://www.mql5.com/en/docs/matrix/matrix_manipulations/matrix_sort when I compile it said error that: 'Sort' is not a member of 'vector' type I try some another ways but still don't know the way to use Sort method Can you
I am trying to calculate iBandsOnArray for MQL5 but i am only able to get the middle line value in my expert my upper and lower line keep giving me wrong values i think the problem is from the standard deviation if i can get a standard deviation function that i can apply to the current bb mid value,...
I am proud of myself with how far I have come with my coding knowledge without any experience and relying only on YouTube and Google for help. I have been trying to convert an indicator from Trading View Pine Script into a MT5 indicator and have learned so much along the way. I have learned how to
Hi, i have a doubt about reliability of data obtained via CopyBuffer in EA. Considering this example. Let's assume we have a custom indicator where each tick in onCalculate sets 3 buffer: double A[]; double B[]; double C[]; ..... //set buffers in OnInit ..... int onCalculate(....){ //initialize
  Everything about RSI  (1466   1 2 3 4 5 ... 146 147)
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": Overview The Relative Strength Index ("RSI") is a
Please help if anyone has this indicator for mt4
  Currency Strength  (35   1 2 3 4)
hi, it is nice to be introuced to such nice forum which discusses different ideas of trading and systems .. I noticed when surfing the forum that no one is talking about different currencies strength relative to each other.. where I think is Important , When We trade - we some times say we are
Good morning, everyone! I hope you are all well. I am adapting an indicator ( CurrencySlopeStrength ) which, for those who are not familiar with it, behaves similarly to other oscillators, such as RSI, Stochastic , etc. However, I have noticed that the indicator becomes heavy when attached to
How can I get a MACD that's exactly the same as that in TradingView for e.g macd((fast)12, (slow)26, (signal line)9) on close price. The current default in mt5 shows signal line as line and macd as histogram but I want it to appear exactly as in TradingView. Can I download one that's already built
Hello respected MQL5 community, I am working on a trading strategy and I need an indicator like the one in the attached screenshot. Unfortunately, I do not know its name, and it might even be a custom-built one. I have tried my best to find it using common search terms, but without success. I am
Hello. How do I stop this warning from appearing? Resource indicator 'Fractal_Range.ex5' is compiled for debugging. That slows down performance. Please recompile the indicator to increase performance. I'd like to compile it without these options, but where are they? Thanks
[Deleted]
  Multi Timeframe Indicators  (12253   1 2 3 4 5 ... 1225 1226)
Hi all, I've been wanting to have the ability to plot indicators from different timeframes on my chart, but MT doesn't have this capability built in. (Does anyone know of any charting programs that do this natively?) As an example, if you're following the IWCR system, it'd be nice to be able to plot
Hi there, i found this script to remove all windows borders. But infortunately, it does not work. Can you please help me (or fix it for the community) ? Regards //#property script_show_inputs #import "user32.dll" int SetWindowLongA( int hWnd, int nIndex, int dwNewLong); int GetWindowLongA( int
  Oscillators  (46   1 2 3 4 5)
Does anyone have a large collection of oscillators (works best in a trading range) that he/she put together? Maybe we could start a thread where all oscillators are gathered. And let's go a little beyound RSI and Stochastic
  Scalping  (68   1 2 3 4 5 6 7)
Scalping EA from russian forum finlist for usdchf, M1 with the settings attached. It is very interesting but they understand the scalping as a trading on m1 timeframe only. This EA is trading no more than one trades per day. It is backtested very good on m1, m5 and m15 timeframe for usdchf, every
  Pearson correlation  (64   1 2 3 4 5 6 7)
There had been a lot of "systems" lately relying on symbols correlation Might be interesting to actually see correlations with an indicator like this (based on math, not experience or assumption) Pearson correlation (among other things) explained : Correlation - Wikipedia, the free encyclopedia PS:...
  MQL5 Cloud network.  (18   1 2)
Hi, I'm a complete beginner here, and I've been trying to create an account and a connection to the agents, but I can't find my account number, I don't know where to look?Is there anyone here who can help me step by step
Check out the new article: Building AI-Powered Trading Systems in MQL5 (Part 7): Further Modularization and Automated Trading . In this article, we enhance the AI-powered trading system's modularity by separating UI components into a dedicated include file. The system now automates trade execution
Check out the new article: Adaptive Smart Money Architecture (ASMA): Merging SMC Logic With Market Sentiment for Dynamic Strategy Switching . This topic explores how to build an Adaptive Smart Money Architecture (ASMA)—an intelligent Expert Advisor that merges Smart Money Concepts (Order Blocks
Check out the new article: Larry Williams Market Secrets (Part 1): Building a Swing Structure Indicator in MQL5 . A practical guide to building a Larry Williams–style market structure indicator in MQL5, covering buffer setup, swing-point detection, plot configuration, and how traders can apply the
Check out the new article: Pure implementation of RSA encryption in MQL5 . MQL5 lacks built-in asymmetric cryptography, making secure data exchange over insecure channels like HTTP difficult. This article presents a pure MQL5 implementation of RSA using PKCS#1 v1.5 padding, enabling safe
  Libraries: MT4Orders  (100   1 2 3 4 5 ... 9 10)
MT4Orders : Parallel use of the MetaTrader 4 and MetaTrader 5 order systems. Author: fxsaber
Check out the new article: Automated Risk Management for Passing Prop Firm Challenges . This article explains the design of a prop-firm Expert Advisor for GOLD, featuring breakout filters, multi-timeframe analysis, robust risk management, and strict drawdown protection. The EA helps traders pass
Click on the market chart to create a price alert : This is a first for MetaTrader 5. Now you can click on the chart to create price alerts. Author: Conor Mcnamara
Indiana Jones Mean Reversion EA : This is a simple mean reversion EA Author: Yashar Seyyedin
Check out the new article: Statistical Arbitrage Through Cointegrated Stocks (Part 8): Rolling Windows Eigenvector Comparison for Portfolio Rebalancing . This article proposes using Rolling Windows Eigenvector Comparison for early imbalance diagnostics and portfolio rebalancing in a mean-reversion
Three Screen Elder Arrows : An indicator in the form of arrows on the basis of Elder's trading system. Author: sigma7i
Arbitrage Triangle EURGBP-EURUSD-GBPUSD by Peter Mueller : The EA identifies discrepancies between theoretical and actual currency exchange rates to execute risk-minimized trading opportunities. Author: Peter Mueller
Check out the new article: Creating Custom Indicators in MQL5 (Part 1): Building a Pivot-Based Trend Indicator with Canvas Gradient . In this article, we create a Pivot-Based Trend Indicator in MQL5 that calculates fast and slow pivot lines over user-defined periods, detects trend directions based
Check out the new article: Tables in the MVC Paradigm in MQL5: Integrating the Model Component into the View Component . In the article, we will create the first version of the TableControl (TableView) control. This will be a simple static table being created based on the input data defined by two
Check out the new article: Introduction to MQL5 (Part 32): Mastering API and WebRequest Function in MQL5 (VI) . This article will show you how to visualize candle data obtained via the WebRequest function and API in candle format. We'll use MQL5 to read the candle data from a CSV file and display it
Static text display : Static Text display is a lightweight and user-friendly Expert Advisor (EA) for MetaTrader 5, designed to inspire and educate traders by displaying motivational trading tips directly on your chart. With a sleek, centered black background and white text in a monospaced font, this
Hi, I’ve been trying to pass the validation phase with my EA for a few days now. I understand what this error means and what causes it, but I’m still unable to fix it. Exact logs: EURUSD,H1: invalid stoploss for OrderSend function EURUSD,H1: OrderSend error 4107 I couldn't replicate the error in my
Hi guys anyone have the download from Eightcap MT4 or the IP Adress from this server EightcapLtd-Real-4 ip adress ? Thank you so much
Hi everyone, I’ve written a custom indicator called SP2L (Spike and 2 Legs) , and I’d really appreciate your help in identifying where my logic might be flawed. The core idea is as follows: A "spike" is detected when at least three consecutive candles of the same color each break the high/low of the
Hello again, I would like to detect a timeframe change and clean all objects on the chart from my indicator. Deinit() seems not to execute on a timeframe change on the same chart. -this is, clicking H4 from D1 for example. I would really appreciate some help, and thanks in advance for all your...
Good Day all. I need help running MT4 in portable mode on Linux. The instructions only work on a Windows OS. Even when you install MT4 on a Windows OS in portable mode and copy it to a USB Stick and then copy it to the Linux OS. The portable link do not work on a Linux OS. How do you create the
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...
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
Here is the deinit(). Could this be the problem? int deinit() { ObjectsDeleteAll(0, 23); for(int a = ObjectsTotal(); a >= 0; a--) { string name = ObjectName(a); if(ObjectType(name) == OBJ_TREND && (StringFind(name,"DP_Line") >= 0 || StringFind(name,"SW_Line") >= 0))
  Something interesting, old thread  (1283   1 2 3 4 5 ... 128 129)
Dear all, I would like to start this new thread cause I have some indicators that I paid for them and I want to share for free with you, all of you that for years share tons of ideas with me in this beautiful forum. I hope to encourage many users to do the same thing Best regards doc EDIT now the...
  Coding help  (7912   1 2 3 4 5 ... 791 792)
Hi, Mr. Guru could you please help me to constantly refresh an ea after each tick movement. I have tried everything, But I just can't make it refresh constantly. What lines of code must I insert to keep an ea and indicator refresh after every tick ? Tnx
[Deleted]
I am trying to add Loss control to my EA. 1. it will stop taking new trade ones it hit X amount in loss Today and will restart taking new trade tomorrow. void TodayLossControling() { // ================================ // 1. Calculate start of current day // ================================
[Deleted]
Hello, I am desperate need of help with getting my Forex Hacked EA to work on my live account. Below is the description of the issue I'm having. My broker is Forex Place (4xp). I do not have access to the code for this EA since it was purchased with rights. I will provide any information you...
  Cross-Currency Strength  (23   1 2 3)
So we know that some currencies correlate (or are negatively correlative) to some degree and can be used to confirm or predict movements. This indicator basically puts it all on one scale (from -1 to 1, I put the max to 1.2 so you can see the graphs without the labels getting in the way). I've coded
The RVI indicator ( Relative Vigor Index ) is a pretty good indicator which can be used in various ways to identify reversals. I developed a way to use it for making absolute fool-proof extremely safe and reliable entries, at the beginning of very significant trend direction changes. It can work as...
Is there a possibility to start a backtest from the command line? Something like "terminal.exe -tester EAxyz EURUSD 5min 2000.01.01 2010.01.01" ? Any other idea, how I could start a backtest from outside? I want to use external programs that start different backtests automaticaly. But I have not...