MQL5 Algo Trading community — forex forum for traders and developers

i did not uploaded any document, not asked any where but application rejected
i just notice a wrong money value on strategy tester result. i have buy 0.01 @4352.332 and then closed @4350.159, the result is -$21.73 which mean its wrong. it should be only about -$2 since its only moved about 20 pips from open price (4352.332 - 4350.159). this is happen only after MT5 update
Hello, I used to use the local network farm feature on Ubuntu Linux. When I tried to run it again after a while, I found it was no longer working - possibly due to an MT5 update. - Symptoms Clicking the "Add" button for an agent in the "Services" tab of MetaTester 5 Agents Manager produces no
i am from india im trying to verify as a seller but i dont recieve any verification code i cant complete the verification
If so, I would love to hear opinions on the tool based solely on experience
The MetaTrader 5 platform update will be released on Friday, July 31, 2026. We have conducted a comprehensive analysis and audit of the platform's code, resolved any identified issues, and implemented numerous internal improvements aimed at enhancing the stability, reliability, and performance of
Rule VII.8 of the Freelance Service prohibits submitting “code generated automatically through a third-party service”. At the same time, MetaQuotes officially publishes materials demonstrating the use of ChatGPT/Claude and AI tools for MQL development. I would like to clarify the exact meaning of
how to contact customer service? thank You
  GOLD, Gold and XAUUSD  (1338   1 2 3 4 5 ... 133 134)
Hi! Is it worth buying gold at 1130
Hello, I have been using MT and ME on Ubuntu for quite a while now and I have to say it works fine, except these few problem are very annoying. Not even sure if it is a problem that wine also has in other applications or is it just the Meta Editor version on wine? When I am moving the cursor via
Hello community. I'm evaluating the reliability of my EAs and a question has come up regarding the optimal historical depth for backtesting. My dilemma is this : a 10-year backtest theoretically proves that the EA can survive multiple market regimes. However, the current market doesn't behave the
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
Use detailed Nasdaq data to enhance your trading strategies through more accurate decision-making and efficient risk management. This is a unique opportunity for those looking to improve their results. Unlike traditional minute or hourly bars, the subscription offers access to tick data, providing
Hi everyone, I am testing a simple BTC trading strategy and noticed that crypto prices can be slightly different depending on the source. For forex pairs this is already normal between brokers, but with crypto it feels more noticeable because liquidity and exchange structure are different. I usually
I am new, I have error message "cannot synchronize history" what does this mean and how can I fix it
Over the years, I’ve tested and observed many Expert Advisors, especially on XAUUSD. And there’s something that keeps repeating itself again and again. Most EAs that show amazing backtests on gold rely on some form of martingale or grid logic. At first glance, everything looks perfect: high win
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
Hello everyone, I wanted to share some lessons learned about parameter optimization, hoping to get your feedback and maybe some ideas to improve. 1. Walk- forward optimization beats simple single-period optimization. A strategy that looks great on one year of history often breaks on the next six
[Deleted]
Hello everyone in the Trading Systems section! I'm trying to improve a simple trend-following approach specifically for XAUUSD (Gold), and one big issue I'm facing is too many false signals/entries during high volatility (news events, sudden spikes, choppy ranges). What I've tried so far: Using a
What are the best risk management tools you have used in trading and why
This topic is created in order to have a guide and discussion about multi strategy EAs. I have seen this topic appeared in some topics but the discussion tends to die after some comments. So the intention is to have the topic in here and don't let it die
Hi everyone, I created an MT5 Expert Advisor (EA) that uses 2% risk management and two indicators (Moving Average and MACD) . I ran an optimization using 3 months of backtest data and 3 months of forward test data on XAUUSDc (M5 timeframe) . Results: Backtest Profit: 15,714 USD Forward Test
M artingale, H edging and G rid <<< MHG >>> M y H oly G rail Over 50% of freelance jobs can be classified as one form or another of MHG. I wonder why ? Martingale : A gambling system of continually doubling the stakes in the hope of an eventual win that must yield a net profit. Hedging : Taking
I would like to start a technical discussion about Expert Advisors for algorithmic trading. I believe that identifying the market trend is certainly important, regardless of the approach used (price action, technical indicators, neural networks, etc.). However, I have the impression that the real
Hi everyone, I produced an ea that works at m5 on Xau/usd nasdaq us30 and ger40. I ran several tests without any problems and ran all the Monte Carlo simulations. I wanted to publish it here on MQL5, but it doesn't pass the tests, and I see errors with EURUSD h1 in the report. What should I do? It
Rather than increasing deposits, I've been studying a staged compounding approach where each new stage is funded by profits from the previous one. The concept isn't about predicting the market, it's about structuring risk differently . Let me give you a Numerical Example here : Stage 1: Risk $10 →
hello, any link or topic about how to identify BREAKOUTS and HOW TO USE FIBO in trading. Thank you!
I've been developing trading EAs for about a year now, and one thing I keep running into is the same issue over and over: lagging indicators. Take a simple trend-following strategy using an EMA Golden Cross and Death Cross. It can perform really well in certain market conditions, but over time it
Hello traders, I have been working on algorithmic strategies for XAUUSD (M15 timeframe), and one of the biggest challenges I face is controlling drawdown while maintaining solid profitability. In your experience: - What risk management techniques work best for gold? - Do you prefer fixed lot or
Please somebody help me with this. I know that this is a simple and basic ,maybe even stupid question to ask ,but it still give me a headache. Anyway , here it is: What is a tipical(average,expected whatever you want to call it) spread on XAUUSD preferably on ECN type accounts. Of course ,i know it
Hello, Can any one please suggest me the best indicator for binary options trading? Thanks...
  Simple trade automation?  (17   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
  BTC  (11   1 2)
Does anyone here trade BTC
  Nasdaq  (2)
Does anyone here trade Nasdaq? What leverage do you get from your broker
  Who are the resistance?  (19   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
What is your Preffered Syle of trading? Swing Day Or Scalping? What EA would you prefer for developers to make you assuming All of the work and are profitable
For the past weeks I've been developing an EA based on SMC, multitimeframe liqquidity-sweep: Stats are good IMO, DD < 10%, good sharpe ratio, etc... But I question myself about this being more stable? Such as diversifying. My main problem is choosing a variety of pairs, i.e: EUR/USD GPB/USD USD/JPY
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
  Indexes disabled  (6)
SP500 and NASDAQ Indexes are not up to date and have been disabled for some time now. Is anyone else experiencing this
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
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
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
[Deleted]
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
  We use Bitcoin ;)  (493   1 2 3 4 5 ... 49 50)
Seems we need a Bitcoin thread to discuss about due the growing popularity of this virtual money. Forex-TSD is studying the idea of take Bitcoins as payment method and having our thread to discuss about pros and cons sounds as good approach. You will find more information on the official Bitcoin...
i wanted to ask this to the website admin but there's no way to contact them other than the chat bot. does anybody know if as a signal provider i can sell stock signals or is it only for forex
When testing an EA in the strategy tester, code changes after the first test do not seem to be reflected correctly in subsequent tests. Example scenario: 1. In the settings tab of the strategy tester, I select the ex5 file of my EA, symbol, period etc. In the input tab, I set the input values. Then
first of all this strategy tester was working without any bug after this update the stategy tester is not at all working it is keep on showing history check of xauusd failed, even though all the data was there it is failing to test my strategy
I read somewhere MQL 4/5 is not as fast in execution as using C++ to write algo`s, granted i`m new. I just wanted to preferably use raw C++ instead of learning another scripting language. Are there coding benefits in the types of things you can create/do with MQL that are longer harder in C++? Thank
Hi All, Can anyone help me with this issue? I dont know if it is a VPS issue or the EA issue, but an EA does nt seem to be allowing me to get to the properties box to change some inputs. All I hear is like an error sound after I right click on the EA name, as though I was trying to open something
Hi! Currently performing a slow complete optimization on my EA, but quite astonished to see that the number of passes covered in the forward phase is much lower than in the optimization phase ( Optimization Results ). I assume MT5 only considers the best passes of the optimization phase to assess
Sorry, but why are the simplest of things just impossible. The fact that there are other posts on here saying the same thing - with equally unclear responses - speaks volumes. The `PlaySound()` method - seriously? The file path ` C:\Users\<user>\AppData\Roaming\MetaQuotes\Terminal\Sounds ` is where
[Deleted]
Hello, How to do, let say EA usually take 10 ms and i want to set if EA taking more than 20ms during onTick operation exit/break whole operation in middle and start again in next tick
[Deleted]
fRSI(SelectedSymbol, PERIOD_CURRENT , 14 , PRICE_CLOSE , 0 ); double fRSI( string sy, ENUM_TIMEFRAMES SelectedTimeFrame, int period, ENUM_APPLIED_PRICE applied_price, int shift) { double buf[ 1 ]; int handle= iRSI (sy,SelectedTimeFrame,period,applied_price); if (handle< 0 ) {
gidday. i want my script to work on forex pairs, all trades, from all forec symbols. My script below is working on both usd and aud deposit accounts, but only on BUY TRADES. help! I want all my trades have an sl that is equivalent of $350
I want to get the position ID of a trade right after opening it, but it always returns 0 . Here is the code I’m using: if (trade.Sell(volume, symbol, 0 , sl, tp)) { ulong order_ticket = trade.ResultOrder(); // Trying to get the position ID ulong pos_id = HistoryDealGetInteger (order_ticket
The strategy that I am currently developing performs very well in the strategy tester, but when I do forward testing it fails. How can I shorteh the gap between strategy tester data and forward testing
I have a custom indicator with a reusable CMA class ( Setup() + Compute() ) that computes one of 14 selectable moving-average types. Two different input-variable pairs feed separate instances of this exact same class/method: baseMAType / baseLength → feeds 4 instances ( maBaseClose , maBaseSrc
Hello, I'm working on a multi‑symbol Expert Advisor that monitors trade events across several instruments. I know that OnTradeTransaction is triggered when a trade transaction occurs on the account, but I'm not entirely sure about its scope when used in an EA. If I have a single EA running on a
I am developng EA, I want to set max slippage in mql5, do anyone know how to set max slippage
Running 2 EAs on MT5 via VPS. Recently had one go quiet for about 3 days — no crash, no errors in Experts or Journal, smiley face still there, terminal connected. It just stopped taking trades. I only found out because I manually check the accounts every few days. Could easily have been longer
Why the version of MT5 backtest speed such slow, I pend it over night(~8 Hours), only 1 pass finished but I have brought a new cpu, the usage of CPU keep only 11%
Hello, I am trying to publish an Indicator to the CodeBase, but the submission is stuck and I cannot complete it. The problem: - Step 4 (Code): the progress bar stays at 20% and never advances, so I cannot reach the final submit. - Step 5 (Test): "Validation state: Not started", and the Type is
I am using the following EMA set up. emaFastCloseHandle = iMA ( _Symbol , _Period , emaFastPeriod, 0 , MODE_EMA , PRICE_CLOSE ); emaSlowCloseHandle = iMA ( _Symbol , _Period , emaSlowPeriod, 0 , MODE_EMA , PRICE_CLOSE ); My initial thoughts were doing the following double fastEma[ 2 ];
Hi Friends. I'm trying to create an indicator that shows green fill when price is above a certain level and a red fill when price is below a certain level. But the indicator keeps returning only the red fill. Code is attached below. Please help me have a look. Thanks #property
Hi, why in my script ,the high[] not return a good high ? //+------------------------------------------------------------------+ //| supertrend.mq5 | //+------------------------------------------------------------------+ #property version "1.02"
My breakout EA work on different currency pairs need an indicator to help to avoid false breakout. May be consider the volume or anything else is OK. Please advise. Thanks Peter
Dear all. I am trying to build Custom indicator base on iBand. After alot of searching I decide to Post here may be someone can help me. Here is the full indicator. //This is MQL5\Indicators\Anhnt\iBand_Display.mq5 #property indicator_chart_window #property indicator_buffers 3 #property
Hi, I'm new to MQL5 and would like to make an indicator that identify the swing & internal points of the chart. I read that in order for you to find the swing/internal points then you need to identify the HH/HL/LL/LH of the chart. I want to collect some algorithm ideas on how to do this. Thanks
Hello, I'm having trouble registering as an indicator seller on the platform. I've tried four times already and I haven't received an SMS notification
Hello everyone. I have been experimenting with marking the opening hours of the main liquidity sessions (London and New York) directly on MT5 charts as shaded zones, and using their high and low as levels for scalping entries. The idea is that a breakout of the session range in the first hour of
Hello traders, I would like to start a discussion about useful tools that traders feel are missing in MT5. There are thousands of indicators available, but sometimes traders need specific solutions or better versions of existing ideas. What type of indicator, dashboard, scanner, or trading
Hi, the code "while(!IsStopped())" is not working on my Indicator. I have a code like this: while (! IsStopped ()){ copied = CopyTicks ( _Symbol , ticks, COPY_TICKS_ALL , LAST_TICK_TIME, 1000000 ); Print("COPIED: "+copied); if (copied> 0 ){ LAST_TICK_TIME =
Hi, i'm trying to create an indicator with claude ai help, and it's almost works well, this code is intended to draw a plot arrow into the particular candle as a signal based on stochastic level the only issue i face is the signal only appear on previous candle that already formed, meanwhile for the
I'm LOOKING for the BEST REVERSAL INDICATORS PLEASE
  Spread Indicator  (28   1 2 3)
Hi traders, several times traders from forums ask if there is an indicator simply showing the current pair's spread. I already programmed such an indicator for my own use and decided to contribute it to the community. Feel free to comment! By the way, it's also posted @ codebase.mql4.com Indicator...
Structure Range : Sell Arrow SL Box: Extends UPWARDS from the Sell Arrow. Buy Arrow SL Box: Extends DOWNWARDS from the Buy Arrow. Author: Israr Hussain Shah
Normalized MACD : This version is an attempt to normalize MACD in known bounds. Author: Mladen Rakic
Scale Out Value Analyzer : A native MQL5 tool that reconstructs closed positions from deal-level history, flags the ones closed through more than one exit, and reprices each one at its own first, last, and best exit rates to measure whether scaling out actually added value. Reports a Value-Add
Smart Trade Manager for MT5 : Automatic structure-based SL, breakeven, ATR trailing, and dollar-based profit protection for manual MT5 trades and pending orders on Gold and selected FX pairs. Author: Waseem Shahrukh
Swing High Low - Non-Repainting Pivots with Push/Email Alerts : Marks non-repainting swing highs and lows using configurable LeftBars / RightBars pivots. Sends push and email alerts on each new confirmed swing. Author: Hirpara Sahil Jivanbhai
Risk Based Position Size Calculator : Draggable Entry, Stop-Loss and Take-Profit lines with a live on-chart panel that calculates the exact lot size for a chosen account risk. No manual math, no guessing — drag the lines, read the size. Author: Olamide Daniel Adebayo
RSI Histogram : This is an MQL5 custom indicator for MetaTrader 5 called RSI Histogram. It plots the standard RSI line in a separate window, plus a color-coded histogram version of the same RSI values that changes color based on momentum: Author: Marian Beceanu
Channel Sun Signals : Overview Channel Sun Signals plots an adaptive, triangular-weighted moving-average channel (a center line plus an upper and lower band) around price, and marks potential reversal points where price pierces a band and then closes back inside it. It is built on the same
Aura Heiken Ashi : Advanced smoothed Heiken Ashi indicator featuring automated Supply & Demand zones, EMA trend filtering, and multi-indicator momentum confirmation for high-precision trading. Author: Ilham Hijrah Saputra
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
Trend Execution Planner - Regime and Risk Panel : Free open-source MT5 read-only chart utility that scores current trend conditions and builds broker-normalized long and short risk plans. It uses moving-average direction and slope, ADX, Efficiency Ratio, ATR, spread, account currency and symbol
Check out the new article: Porting the Canonical Catch22 Time-Series Feature Set and Testing It on Volatility Regimes . We present a native MQL5 implementation of the catch22 feature set: all 22 canonical time-series characteristics in a reusable class validated against pycatch22. Using a leak-free
Check out the new article: Bayesian Online Change-Point Detection (BOCPD) in MQL5: One Regime-Break Signal, Three Ways to Use It . This article delivers Bayesian Online Change-Point Detection as a single, dependency-free MQL5 class that maintains a per-bar, causal probability of a regime break. We
Quantora Trade Statistics Dashboard MT5 - Professional Trading Performance Analytics : Professional open-source Trade Statistics Dashboard for MetaTrader 5. Analyzes trading history with win rate, profit factor, reward/risk, streaks, BUY/SELL performance, lot statistics and floating P/L. Author
Risk Position Size Calculator : Set your risk %, drag the stop, and get the exact lot size priced in your account currency — margin and target included. Calculates only, never trades. Author: Radoslaw Karol Lubas
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
EDIT:Whilst it seems to me that this Normalization used to be a problem, theexperimental test indicators and scripts below have convinced me that this isnot (or is no longer) a problem (at least with the latest MT4 and with mybroker). The thread remains primarily for the indicator/EA below, which...
Good morning everyone ... I would like to ask the experts in general if they have news on some utility for mt4 that changes time frames by entering intervals different from those pre-ordained thanks
Greeting , Can anyone help me please with programe lines (code base) to add to my EA -mq4 file simply , I only want the EA to open trades only if RSI value between 65 and 35 for example or 70-30... etc , it would be really appreciated sorry I don't have experience in programming
Greetings dear Coder, Please help with a way to diplay emojis on MT4 Chart using an EA. In MT5, this is possible using the following code: ObjectCreate ( 0 , "Lips" , OBJ_LABEL , 0 , 0 , 0 ); ObjectSetInteger ( 0 , "Lips" , OBJPROP_CORNER , CORNER_LEFT_LOWER ); ObjectSetInteger ( 0 , "Lips"
  Astro...  (231   1 2 3 4 5 ... 23 24)
Hi guys, I was wondering if anybody in this forum is interested in searching of connetion among planets,moon and other movements in space. We can share our experiance and learn more and more... All you know that the most famous and successful trader/W.D.Gann/ is used astrology and other technics to
Hi all, question as per subject line. I'm sure an easy fix. Anyone? thanks in advance
Goal: I usually have my charts(over 20) maximized but at certain times, for comparrison, I want to have only two charts filling the whole window: one to the left with 100% height and 50% width and another one to the right with the same dimensions. I'm aware that I can do this manually but to get it
  Something interesting, old thread  (1290   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...
Posting this here since MetaQuotes doesn't have a public proposal email — happy to move this wherever makes more sense. Hello, My name is Mahmoud Seyedi. I'm a trader, and formerly a university faculty member in architecture — not a professional software developer. Over the past two years, working
The MetaTrader 4 update will be released on Friday , May 24, 2024. This version provides important security improvements, error fixes, and platform stability enhancements. The update will be available through the Live Update system
Hi, I can't download any indicators because I get an error that I don't have the appropriate application installed on my computer. I'm logged into the mql5 service on my MT4 terminal. I've assigned the .mq4 and .ex4 extensions to my MT4 platform on my computer, but I still get an error when
  Live vs Demo EA  (7)
Anyone fancy taking a look at this EA , when back tested in strategy on the 1m chart XAUUSD with TP 100 , the results are amazing, however in live I cant get it to be profitable? here's the script : //+------------------------------------------------------------------+ //| Expert Advisor
All lessons of Codersguru: https://www.mql5.com/en/forum/175653 Mql - Metatrader Development Course | www.metatrader.info https://www.mql5.com/en/forum/172885 All Codersguru lessons + questions/replies and so on are on this section Metatrader 4 mql 4 - Development course - Forex-TSD Book: https...
You may have already noticed that the most interesting things now happen mainly on the MQL5.community . MQL4.com is about to be switched to the data archive mode. Only Book and Documentation sections will remain on MQL4.com by November. Besides, the entire MQL4.com Forum content is to be transferred