MQL5 Algo Trading community — forex forum for traders and developers

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
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
I collected three months of historical data in Excel and recorded 127 trades based on my strategy. However, the Strategy Tester only executed 105 trades. After reviewing the trade history visually on the chart, I identified a bug where certain positions fail to open. The EA log shows a “Market
  Chatgpt can create awesome EA?  (25   1 2 3)
I am very interested in whether ChatGPT can create a very intelligent EA. Has anyone used ChatGPT to write an EA
Hello guys, I have this error and i just can't solve it. Could any of you give me some tips ? int ticket = OrderSend(Symbol(), OP_BUY, 0.1, Ask, 10, 0, 0, "Auto Buy", 12345, 0, clrGreen); When i change this to this: int ticket = OrderSend(Symbol(), OP_BUY, 1.00, Ask, 10, 0, 0, "Auto
Hey, Does anyone knows how to change the profit colors like its shows in app blue and red
#property indicator_chart_window #property indicator_buffers 1 #property indicator_plots 1 #property indicator_label1 "Test Trailing Stop" #property indicator_type1 DRAW_LINE #property indicator_color1 clrMagenta #property indicator_style1 STYLE_SOLID #property indicator_width1 2 double
Hello - I've coded an EA that is ready to sell. I want to be able to link to my live MT5 EA account but don't know how to do this or whether there are any free options available. Any advice would be appreciated. Thanks very much, Mark
Please help, how do I go about getting my pay, I've completed the job, and the customer agreed to the negotiation phase and after sending the final job to him, the client has not clicked to approve my payment not reply to my chat since the day I sent the work file to him
  payment failed  (1)
please help i cannot buy the indicator because he say payment failed
How come is i already defined since i is part of for scope, does anyone know about this? I know the fix, but this has never happened to me once, and from some time ago, it just doesn't stop.. Thanks! void OnTick () { for ( int i = 10 - 1 ; i >= 0 ; i--) { Print (i); } for ( int i =
Hi, i recently started coding using mql5, and i'm making my first steps. I was developing this expert advisor. It was nothing serious (i didn't even finish it), it was just an attempt to understend how simple "buy" methods work. Anyway, i keep getting stuck when i actually have to send the order
Problem with identity verification, I may have done something wrong, but it's not good that it ends with a general apology and a limit of retries, I get a rejected message: "Your application has been rejected. Sorry, your application did not pass the automated review and was rejected. You have
I need the aid of a GM to reset PW, so i can start placing some of my Ea's to sell thank you
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
  Best method to identify trend in forex  (86   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
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
  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
  KG Trapping Mode  (750   1 2 3 4 5 ... 74 75)
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...
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...
  Harmonic Trading  (5990   1 2 3 4 5 ... 598 599)
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
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
  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
  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 @ 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
  DOM Ladder  (10)
Hi. How much would it cost to make this DOM?
  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
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
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
What do you guys considerer essential in risk management and account protection? Anything other them, auto flattening by time / loss / profit, max trade count, max loss sequence, daily profit protection using trailing features, maximum open trades count, maximum open risk
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
struct economicNews { MqlCalendarEvent event ; MqlCalendarValue value ; MqlCalendarCountry country; }; //+------------------------------------------------------------------+ //| |
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
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
I found a solution for the many charts that the strategy tester opens automatically in MT5. Till now I closed them one by one with Ctrl F4 and than clicking on the next chart tab. But this goes faster: On your keyboard: Alt W ... this opens the Windows List. Now select the first of the charts you
//+------------------------------------------------------------------+ //| OxygenAI.mq5 | //| Copyright 2025, Hüseyin Avni Ekmekçi | //| haekmekci@hotmail.com |
Hi to alla guys , Wile i was trying to set my EA code for a strategy in AUXUSD I get a strange value for SYMBOL_TRADE_TICK_VALUE, spcifically this is my code snippet : int OnInit() { string szSymbol = "XAUUSD"; bool selected = SymbolSelect(szSymbol, true ); // select in market Watch bool found =
Hi All! Im having a problem using the strategy tester. After an update of mt5, the strategy tester is not respecting the stop loss or take profit anymore. (picture attached) The code is simple and it was working perfectly before. And it is working in real time in a demo account too. I tried...
I have a problem with the strategy tester in MT5. Why, with the same EA parameters and settings, does it show me great results once and then wipe my account in the next test? Let's say I test the EA on a 5-minute timeframe and I get great results, I change it to a 15-minute timeframe and I get great
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
From my understanding ObjectCreate() can only draw lines on the chart_id which is always the current chart inside the strategy tester . bool CChartObjectVLine::Create( long chart_id, const string name, const int window, const datetime time) { if (! ObjectCreate (chart_id,name, OBJ_VLINE
  Multi Currency EA  (28   1 2 3)
Hello I'm trying to build a multi currency ea that works in the mt5 strategy tester. i'm not a professional programmer but i tried i've read the articles on this website about that and tried but with no luck i couldn't understand the method because they use about 3-5 include files linking to each
//+------------------------------------------------------------------+ //| OxygenTR.mq5 | //| Copyright 2025, Hüseyin Avni Ekmekçi | //| haekmekci@hotmail.com |
//+------------------------------------------------------------------+ //| OxygenTR.mq5 | //| Copyright 2025, Hüseyin Avni Ekmekçi | //| haekmekci@hotmail.com |
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
  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
Hello. In MT4 I had a MTF MA indicator and it is working nice. The problem is that I can't find any sample in MT5 which works the similar. Simply, I want to use 1 min chart and I want to attach to that chart SMA calculated on 15 min chart. I can't solve that. Any help will be very useful. Thanks
I'm experiencing an issue with the FX Trend indicator, which I acquired from the marketplace, as it is not attaching to my charts. I've already corresponded with indicator's developer, and based on our communication it appears that my installation and setup procedures are correct. The developer has
Dear Fellows I am trying to customize Volume Profile indicator https://www.mql5.com/en/code/47784 and make it EA Friendly to get signals for POC Price (png attached), HVN and LVN Prices. Google search did not helped much and all the VP Indicators lack the Buffers. Is it really impossible to created
Volume with MA and color of candle: Volume indicator as modified by RonT, but histogram bar color will be red on a down candle, green on an up candle Author: Robert Rice
Check out the new article: MQL5 Wizard Techniques you should know (Part 38): Bollinger Bands . Bollinger Bands are a very common Envelope Indicator used by a lot of traders to manually place and close trades. We examine this indicator by considering as many of the different possible signals it does
ICT by Emil : Takes trades based on ICT silverbullet and 2022 model with trailing stops and partials, also keeps entry according to OTE, and risk according to prop firm version Author: Emil Paul Jacob
Check out the new article: MQL5 Wizard Techniques you should know (Part 60): Inference Learning (Wasserstein-VAE) with Moving Average and Stochastic Oscillator Patterns . We wrap our look into the complementary pairing of the MA & Stochastic oscillator by examining what role inference-learning can
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
Check out the new article: Creating a Trading Administrator Panel in MQL5 (Part X): External resource-based interface . Today, we are harnessing the capabilities of MQL5 to utilize external resources—such as images in the BMP format—to create a uniquely styled home interface for the Trading
Currency Strength Meter MT5 : Currency Strength Meter for MetaTrader 5 with configurable timeframe parameter, It was converted from "Currency Strength Giraia 28 pairs TRO MODIFIED" MetaTrader 4 version Author: Andrew Ingosi Likare
Check out the new article: Introduction to MQL5 (Part 14): A Beginner's Guide to Building Custom Indicators (III) . Learn to build a Harmonic Pattern indicator in MQL5 using chart objects. Discover how to detect swing points, apply Fibonacci retracements, and automate pattern recognition. In this
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
New article MetaQuotes ID in MetaTrader Mobile Terminal is published: Android and iOS powered devices offer us many features we do not even know about. One of these features is push notifications allowing us to receive personal messages, regardless of our phone number or mobile network operator....
Indiana Jones Mean Reversion EA : This is a simple mean reversion EA Author: Yashar Seyyedin
  Indicators: iForexSessions  (75   1 2 3 4 5 ... 7 8)
iForexSessions : Highlights the Forex Market Sessions (Sydney, Tokyo, London, New York). Author: amrali
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
Check out the new article: Formulating Dynamic Multi-Pair EA (Part 2): Portfolio Diversification and Optimization . Portfolio Diversification and Optimization strategically spreads investments across multiple assets to minimize risk while selecting the ideal asset mix to maximize returns based on
AveragePrice : Indicator for calculating the average price of open positions, you can use the magic number if you want to separate the positions of just one robot, but the zero number is for manual operations. Author: Francisco Gomes Da Silva
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)
The MetaTrader 4 update will be released on Friday, February 21, 2025. This version provides important security improvements, error fixes, and platform stability enhancements. The update will be available through the Live Update system
[Deleted]
Hi I have seen If two object crossed with each other then the cross section get white or in other color. Is there any way to avoid that?   I don't want the white area, I want it to be full blue. How can I do that? One thing predicting object cross section are is not possible as its dynamic. Regards...
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" //+------------------------------------------------------------------+ //|
Why did you post your MT 4 question in the MT 5 Indicators section instead of the MQL 4 section , (bottom of the Root page )? General rules and best pratices of the Forum. - General - MQL5 programming forum ? (20 17 ) Next time, post in the correct place. I have moved this thread. Hi guys
I started this thread to post all news/signals indicators and EAs we have now and will have in the future.
  Triangular moving average (TMA) ...  (773   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...
Can someone help me find the non-repainting version of the attached TMA Centered Bands. Thanks a lot
  Pattern  (24   1 2 3)
Pattern indicators.
Why did you post your MT4 question in the General section (a miscellaneous catch-all category) instead of the MQL4 section, (bottom of the Root page)? Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893 Moved to MQL4 and MetaTrader 4 How