MQL5 Algo Trading community — forex forum for traders and developers

Hey traders! 👋 Lately, I’ve been exploring the idea of building trading systems based on pure simplicity . The goal? To test whether a single indicator—no filters, no magic—can still deliver results in today’s markets. So I built a basic RSI-based Expert Advisor (EA) in MQL5. And to my surprise
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 have tried to solve this in many way. But none of them were successful. I can't see the correct chart at all. I can't see the candlestick values correctly. I have tried many times to get the correct candlestick values using python but they are showing wrong. That is, I see the values exactly as
I cant speak in mql5 groups where everyone else can theres just not a place i can message like a normal chat in a group im not muted or punished in the group the creator of the group has no clue is it because i have not completed kyc or put id on my account
Hey guys, I've had a problem lately where when I check my optimization results some don't show a forward results tab and some have got forward results but all the backtest results in the forward tab have a score of 0.00 however when I single test the strategies you clearly see that it traded on the
Hi everyone, I am trying to publish my MT5 EA. The EA is designed to trade commodoties and indicies futures. However, the validation test the EA with Forex pairs, thus my EA fails validation. How do I indicate my EA is not designed for Forex so it will pass validation? Thanks
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
Dear I have been using an MT5 demo account on the MetaQuotes-Demo server for a long time without any issues. However, recently I’ve encountered a problem where the account no longer downloads historical data. Only live price data appears to be working. This issue is unexpected as it was functioning
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
On Friday, December 13, 2024, the MetaTrader 5 platform update will be released. This update fixes an error in the calculation of triple swaps in the strategy tester, which occurred under certain combinations of testing conditions. Additionally, a number of minor enhancements and fixes have been
Hi every one, I need help on my Mac for this error, on Windows it'w working perfect, but On Mac I think I'm doing something wrong, and help or link will be more then welcome, Best Reguards, ZeroCafeine
Hi developers. When I am trying to compile my code in MQL5 it takes so long time. about 120 sec. the same code in MT4 complies in just a blink. Can I do any thing to make the "Generating Code" process faster
Hello MetaTrader Community, I am reaching out to seek guidance on setting up a funded account program for traders. I am interested in creating a program that provides traders with a funded account to trade with, and I am looking for advice on how to structure the program and what features to
Hi all I have really been struggling to fix this... anyone having the same issue...? /AceDK
Hi Guys, Does anyone from MQL5 read these posts? where do we submit feature requests? My feature requests: 01: It would be great if we could save chart drawings to your server, so when we login to another PC the chart drawings are saved not matter where we login from. 02: Candle countdown timer
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...
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
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
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
As from the title, I mean which method has the best ratio safety/profitability for you (support resistance based, atr based, range based, time based etc etc.) Share your opinion...
Hello, How can I identify a trend or trend reversal (counter-trend) using RSI, Stochastic, and Bollinger Bands ? What are the recommended settings for RSI, Stochastic, and Bollinger Bands
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
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
  Who are the resistance?  (12   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
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
I use SOA to distribute processed data . So, to make life easier i tried to use the ArraySetAsSeries() function for reverse access. For some reason ArraySetOfSeries() does not reverse my indexing order, I don't know if I'm doing something wrong or is it not supposed to work only with OnCalculate
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
In OnTick(), if i want sell gold in $ 3230 , due to delays in broker,the next tick not find 3230 Position,repeated sell,i used Sleep(),but not much effect. Is there any other way
Can you tell me if this is a realistic tester figure? And is this a good or bad result for a year with a deposit of $3,000
I've been trying to calculate target price for a given profit value (in account currency) but I have failed! I've opened a position in USDJPY and with the following state: Volume: 0.01 Entry price: 152.982 Current price: 153.449 Current profit: $ 3.60 Now I'm trying to calculate the profit in MQL5
[Deleted]
I'm consistently receiving error 5273 when invoking SocketRead MQL5 API. I connect to the server from an MT terminal and would like to check periodically if some data have arrived from the server. Here is my code: if (client== INVALID_HANDLE ) return false ; uchar rbuf[ 512 ]; uint rlen=
  Multi instrument robot  (22   1 2 3)
Hi every body, I used to trade manually since many years. But today I want to automatise some of my algorithmics systems. Is it possible to create a robot who can manage 20 or 22 instruments on a single account, with the possibility to calculate the quantities according to previous results ? Thanks
  Multi Currency EA  (27   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
  Buying or Selling all 7 pairs  (35   1 2 3 4)
Dear All i was trying a trading strategy to buy or sell all the USD Currency pairs together, i only check the daily strength of the USD, then i take decision to buy or sell (open 7 positions), then i check after so many hours, sometimes waiting for days looking  for total positive profit after that...
A must ! Before using it or asking any question : please read the Online Help (Also accessible by F1 on your MT5 platform) Strategy Tester For Traders General overview of the possibilities. Overview of results : Visualize a Strategy in the MetaTrader 5 Tester The general information about
Can someone please explain genetic optimization. I am reading Auto-tuning: ParameterGetRange and ParameterSetRange and my question is if this approach can be used with genetic optimization or only with "slow complete algorithm". The author has two input params FastOsMA and SlowOsMA and the rule is
Hi , but if i not have history , how can recover a commission of instruments ? thanks
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
Hello everyone When I use the iIchimoku function in MQL5 code, the Chikou Span value, which should be equal to the current candle's close price, is incorrect and returns a wrong value. Could you please guide me? Thank you
Hi, It suddenly appear that on my MT5 with a new adviser, after fast test, I got a list of optimization results, when I double click one of it, the result on backtest and graph doesn't match the profit result on optimization results. Here is the backtest result when double click above Pass:4 504
  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
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
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
Check out the new article: Feature Engineering With Python And MQL5 (Part IV): Candlestick Pattern Recognition With UMAP Regression . Dimension reduction techniques are widely used to improve the performance of machine learning models. Let us discuss a relatively new technique known as Uniform
Check out the new article: Developing a Replay System (Part 65): Playing the service (VI) . In this article, we will look at how to implement and solve the mouse pointer issue when using it in conjunction with a replay/simulation application. The content presented here is intended solely for
Check out the new article: Reimagining Classic Strategies (Part 14): High Probability Setups . High probability Setups are well known in our trading community, but regrettably they are not well-defined. In this article, we will aim to find an empirical and algorithmic way of defining exactly what is
Check out the new article: Trading with the MQL5 Economic Calendar (Part 7): Preparing for Strategy Testing with Resource-Based News Event Analysis . In this article, we prepare our MQL5 trading system for strategy testing by embedding economic calendar data as a resource for non-live analysis. We
Check out the new article: From Novice to Expert: Programming Candlesticks . In this article, we take the first step in MQL5 programming, even for complete beginners. We'll show you how to transform familiar candlestick patterns into a fully functional custom indicator. Candlestick patterns are
Chaikin Money Flow : Chaykin Money Flow (CMF)" indicator Author: Artyom Trishkin
TradeTransaction Class: A base class to simplify coding of trade transactions in MQL5. 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
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
Check out the new article: Manual Backtesting Made Easy: Building a Custom Toolkit for Strategy Tester in MQL5 . In this article, we design a custom MQL5 toolkit for easy manual backtesting in the Strategy Tester. We explain its design and implementation, focusing on interactive trade controls. We
TrendStrengthv2: Conversion from MetaTrader 4 version. Author: Alain Verleyen
Check out the new article: From Basic to Intermediate: SWITCH Statement . In this article, we will learn how to use the SWITCH statement in its simplest and most basic form. The content presented here is intended solely for educational purposes. Under no circumstances should the application be
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
Check out the new article: Creating a Trading Administrator Panel in MQL5 (Part IX): Code Organization (V): AnalyticsPanel Class . In this discussion, we explore how to retrieve real-time market data and trading account information, perform various calculations, and display the results on a custom
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
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
  Pattern  (24   1 2 3)
Pattern indicators.
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
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
Hi coders, need your advice for codes. I have a Multi-Symbols EA and for exit section, the codes are as follows :- bool SequenceBreak=false; if (OrderType()==OP_BUY && OrderMagicNumber()==mnBUY) { string ExitSequence= StringSubstr (ExitSig(sym,cTkt,cOpTm,cOpPx,cLot,cTPPx,cSLPx), 12 , 12 ); //
I've got a smiley face, a moving chart, and a preloaded strategy running on a 1 minute chart (should have plenty of signals)... but no trading. Ideas
Trying to place an arrow/text if there is three consecutive bearish or bullish candles formed. Tried a couple of options, but unable to handle Arrow's position. Either too many arrows got painted or the location was at the wrong place. Also tried place text but no luck. #property copyright ""
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...
  Interesting and Humour  (49770   1 2 3 4 5 ... 4976 4977)
Members of the forum, don't forget to follow the rules
0 I'm trying to create a simple EA tool in MT4 so that I can drag and drop two lines on the chart, and based on input parameters it calculates lot size, and then when I press execute, it enters a limit order with the entry price and stop loss price. As you can see I'm consistently getting the error
Good morning everyone, Is someone can help me understand the difference between : bands_shift [in]  The indicator shift relative to the chart. shift [in]  Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). Thanks a lot for...
  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
Using a Mac First post and I am sorry if this is in the wrong place. My Navigator window and Market Watch have become undocked.....sure it was my fault. Now, I can't get either back docked?? Does anyone know how to fit this? It is a really silly problem to have without any way to get it back
  Traders joking, the beginning  (7329   1 2 3 4 5 ... 732 733)
They say that an average trader can work for about twothree years. Then he has enough money to buy Ferrari and spend the rest of the money on psychoanalyst and antidepressants. Well, drive your Ferrari and save the rest of the money by reading our next column. Making money is one of the funniest...
Hi - for some reason, my MT4 is not compiling. I'd be super grateful if someone could help compile this into an ex4. Any help very gratefully received, thank you. Love and Light //+------------------------------------------------------------------+ //| EMA + Stochastic Trend EA with Customisable
This website uses cookies. Learn more about our Cookies Policy.