MQL5 Algo Trading community — forex forum for traders and developers

Looking for much needed help! Thank you: Neither MT4 or MT5 wants to do anything/reaction when clicking on install files. I have tried right clicking and trying as administrator. I have also tried the compability with earlier versions of windows mode. I use windows 10 with a i7-7700k intel cpu
It's time for a complete PC upgrade. Main task of PC testing and optimisation of programs for MT5 Cost is irrelevant. Since I am way behind on current trends I need expert advice, hopefully the MT 5 developers will give some hints. What kind of processor to choose? What RAM, frequency, what is the
  How to Start with MT5, a summary !  (85   1 2 3 4 5 ... 8 9)
How to start with MT5 platform : summary. As our topic about " How to start with Metatrader 5 " is going to be huge, here you find a summary, with main links. A very good article to learn how to use this site . How to start with MetaTrader and forex , the beginning , Some news about MT4 and MT5 for
Starting July 1, 2025, the minimum supported versions of the trading platforms will be: MetaTrader 4 — Build 1440 released on February 21, 2025 MetaTrader 5 — Build 4755 released on December 13, 2024 After this date, older versions of desktop terminals will no longer be able to connect to broker
Help guys, I cannot find the migration button. No journal log also. What to do
  Swap  (1)
Can i somehow calculate in advance how much money will be charged for the swap
Hi guys, I received a message in the Mailbox of the MT4 terminal (from "Support" as it indicated). It's said that my running demo account on this MT4 terminal has been blocked. The status in the lower right corner has changed to “Invalid account.” But I don't know where to contact the support team
Good afternoon, everyone, I know that there are machine learning and statistics enthusiasts on the forum. I propose to discuss in this topic (without holivars), share and enrich our own knowledge bank in this interesting field. For beginners and not only there is a good theoretical resource in
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
  Learn to be a Scalper  (610   1 2 3 4 5 ... 60 61)
Hi, my name is Monarch, and I wanted to start a thread to teach others how to scalp the Forex market. Eur/Usd Trading sessions : Asia 80% of the time and NY 20% of the time. I do not trade the London session. Time Frame 1 minute for entry points. 5/15 min and the Hour chart for points of interest. I
Gentlemen, I am experiencing an unusual (I think it is unsusual) behavior in my MT5 platform, as illustrated in the attached image. In the screenshot, numerous ticks (last deals) appear to occur outside the ASK/BID spread range. This observation raises me the questions: How is it possible for
Hello, I noticed that the minimum and maximum withdrawal amount on MQL5 is set to 10 USD. I was surprised to see this limit, as I was expecting a different range. Could you please clarify why this limit is in place and if it's possible to withdraw more than this amount in the future
When I try to open MT5´s Data Folder I get a message that says "Explorer file not found" and asks me to check the spelling. I have restarted, tweaked the File Explorer setting and nothings seems to work
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
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
  My Own Technic  (2)
I started my journey in trading five months ago. Since then, I’ve studied all kinds of strategies— ICT, SMC, price action, and more— but none of them really worked for me, mostly because of the wide stop losses. Eventually, I switched to a demo account to develop and refine my own strategy. I
Discover in 15 Minutes: Watch the Video about Trading Signals in MetaTrader 4 and MetaTrader 5 The most frequently asked questions related to the Signals service will be collected and processed in this topic. The list of questions will be updated from time to time. Soon we will try to give answers
[Deleted]
is Envelope indicator still profitable to use? I want to know someone who make their profit with using Envelope and how to use it properly
  Trade Assistant  (45   1 2 3 4 5)
Here is a new indicator I threw together this weekend. This is the beginning, I'm going to add more indicators to this one as I go along. Basically, this indicator gives buy and sell signals on multiple timeframes based upon stochastics and RSI. I was going to wait until I posted this one but even...
  Harmonic Trading  (5993   1 2 3 4 5 ... 599 600)
Hello all I have tested many strategies and many other stuff but i did not found them more accurant then basic analysis of the market. i mean,the Price Patterns. 1. harmony indicators : here and here. 2. candelsticks reversal patterns is here. 3. Price Patterns : - Price Patterns
[Deleted]
  Statistical Arbitrage  (15   1 2)
This is statistical arbitrage. Arbitrage is simple. See the difference, buy this, sell the other. If you can't take decision based on current data in the front of your eyes and need sophisticated indicator, it's no longer arbitrage, it's the speculation based on indicators!!! I put the pairs...
hello dear traders if someone have any adaptable strategy or idea about a unique strategy that unlike %99 strategies out there can make consistent money in every market conditions (choppy and trending market) welcomes here
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
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
  History Trading  (7)
hello traders, i am looking out for history trading in mt5,i want to do practice trading with past prices,where i dont have to wait long for the prices to move. can anybody help me out,how to do it
  Something Interesting to Read  (132   1 2 3 4 5 ... 13 14)
This is the thread about books related for stocks, forex, financial market and economics. Please make a post about books with possible cover image, short description and official link to buy (amazon for example). Posts without books' presentation, without official link to buy and with refferal links...
  New Dolly  (261   1 2 3 4 5 ... 26 27)
After repeated requests to update Dolly to handle the new extra digit platforms i have decided to totally rewrite Dolly ( 2400 lines of code ) and i have taken the opportunity to include many new features to make the use of Dolly more user friendly, features such as 3 built in trend MAs / Entry Exit...
hi , anybody tried lag-llama for xauusd trading ? how good it is for trading
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  (34   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...
  DOM Ladder  (17   1 2)
Hi. How much would it cost to make this DOM?
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
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
  Simple trade automation?  (11   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
  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
  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
Hey guys, dumb questions from a noob I just created a demo account on ****** to try their MT5 and I'm trying to find the emini futures in there (S&P 500) but I simply can't. Their website says they support it, but I just can't find it. I wonder if I'm doing something wrong here
Hi @ all, i´m new with MT 5 and wanted to know if its possible to trade on sim/demo account other markets than forex? For instance, NQ, SP500, etc. For now i only see forex markets to choose from. Any ideas? Thanks
  Indexes disabled  (2)
SP500 and NASDAQ Indexes are not up to date and have been disabled for some time now. Is anyone else experiencing this
Newbie question I know..trying to place a leveraged buy order for stock RNG.N. Current ask price is at 32,950. Account balance is 103€ with the same free margin (no other open positions) and a 1:200 leverage. For 50 stocks this should be enough, right? Stop loss is not set. Still getting the "not
Hello all, I'm a software engineer with a C++ background and have been using metatrader for a long time. I've been importing chart data into custom symbols successfully however, I lately have been needing to import historic prices; and in this area, MT5 is limited. The issue --seems to-- lie in the
Dear all, I am trying to import historical data (M1) to MT5 from my Tradestation account. I have export the data in csv format and below there are some rows as example: "Date","Time","Open","High","Low","Close","TotalVolume" 1/2/2008,03:01:00,3841.00,3842.25,3840.25,3841.75,184
[Deleted]
MetaQuotes Software and oneZero Financial Systems announce a new connectivity gateway for integration with Interactive Brokers Group, Inc., available through the oneZero Hub product. The gateway provides the possibility to trade stocks, futures and other exchange traded instruments on the largest...
  Futures Rollover  (1)
does the future contracts on mt5 automatically rollover? Like ES, YM, NQ
Hello everyone, I’ve run into a problem with MT5 Strategy Tester. I’ve been using Flex EA with official presets. Everything worked fine for the first ~15 tests. Now, the backtest runs, but no trades are being executed . The equity curve is flat, and the journal shows no errors . History quality is
Hi, I work now with dark venus with several weeks, and most of the time it's working well. But sometimes, I have an exit on live for some trades that should'nt happen, and when I backtest the same trades, It not closing where the live is closing. I'm on MT5. Please check the two images below that
Can someone help me with this? I’m optimizing a new EA, everything begin correctly but then some Agents finish while others are stuck going over 100%, the overall optimization remains blocked. Optimization at 1:53 pm After 10 minutes not even a new pass executed
  Issue with strategy tester  (14   1 2)
Hey guys, I have been encountering an issue with the strategy tester on MT5 since some time. I used it before to run tests and everything worked perfectly until yesterday I launched a backtest and it kept getting stuck at the stage of loading data. I will show you a picture of what the Journal is
I've read a few articles, and still have yet to find a working solution for this, while also trying not to deviate too far from what the documentation says to do. I'm trying to create my own custom SPY symbol ( different than the default SP500m data provided by the demo server ). For ease (and THIS
I want to calculate the data through matrix and convert the one vector to array for indicator show. And it is found there is no output array function in matrix or vector. the "row" or "col" member only output vector. https://www.mql5.com/en/docs/basis/types/matrix_vector Is it necessary the get all
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
What is MQL5 Wizard : The MetaTrader 5 Trading Platform includes the MQL5 Wizard , which allows to quickly generate code of an Expert Advisor (Expert Advisor builder). With MQL5 Wizard, knowledge of programming languages is no longer a prerequisite for creating trading robots . In the past, it
  Look for Best EA  (10)
Can someone tell me which ea is the best in MQL5 market ? There are so many EAs in MQL5. It is difficult to find good EA
For me personally I build strategies based off indicators so I follow something like the darwinex multisymbol template posted on github. I have a bunch of enums for deciding lot size, sl and tp based on ATR, new filter enum, and a bunch of functions I copy and paste over for placing trades that have
  Invalid stops  (1)
Hi, I want to set the stop loss for the trade to a particular % of the price. For making it multiple of the ticks, I used the below code: double tickValue = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_SIZE); double price = (type == ORDER_TYPE_BUY) ? SymbolInfoDouble(_Symbol, SYMBOL_ASK)
folks, it's a big pain navigating between charts and editing indicators (add, remove, change color, change time frame....etc) in mt5....so i was wondering if anyone managed to hotkey important charting and trading functions using autohotkey and elgato steam deck ? i was thinking it might be possible
Hi all, I'm trying to build a hedge-based EA where: A manual trade is opened (BUY/SELL) If the trade goes into 2-point loss, a hedge trade is opened in the opposite direction Once the hedge trade gains 3+ points, I try to move the hedge trade’s SL to breakeven I am using trade.PositionModify(...)
Hi everyone, here is an include file for walk forward analysis in mt5, it also has the mq5 file which has an example how to call it into you're EA. It's the bare framework of a walk forward analysis type program so it's not like any fancy software you've seen out there before, I'm hoping we can all
  Price_Channel_v6-ea  (88   1 2 3 4 5 ... 8 9)
Hello. Today I come to propose a new method to you which proved reliable manually. I know that newdigital uses this indicator on its method, but today the approach is different . Here several weeks that one of my best friends trade with this method than it improved much and who is advantageous still
Plotting arrows a long indicators' buffers on subwindow, which has more than one indicators , seems to be impossible to do it correctly since each indicator has its own scaling/zoom factor, and there is no way to retrieve that scale/zoom factor. Simple code to try it out
  Smoothed Demark  (7)
Anyone have a smoothed demark indicator ? Not the TD, just the standard but smoothed. Could have some use. Many many thanks
  Lines  (1)
Hi. I din't get, or have the horizontal line on the left of my chart. Where can I get it? Adriaan
Dear all, I am trying to write an MQL5 indicator, but the buffers are empty. Additionally, the arrows are logically not shown. Can someone please help me? Here's the code: #property description "Fractals" #property indicator_chart_window #property indicator_buffers 4 #property indicator_plots 4
Hi Traders, If you are trading using indicators especially the one from CodeBase, I invite you to share your strategies here. Thanks for your participation
In MQL5 what command is used instead SetLevelValue(..)
Hello everyone, I am currently developing a custom indicator in MQL5 which utilizes multiple Exponential Moving Averages (EMAs). However, I am encountering a parameter count error with the iMA function and need some assistance in resolving it. The code is intended to calculate four EMAs (5, 10, 20
Hi all, I'm programmatically loading a custom indicator using IndicatorCreate() and passing values for the indicator's input parameters via the params[] array. My custom indicator uses input group declarations like " " and "--- Tick Density" to visually organize input settings in the parameters
  Trend continuation factor  (89   1 2 3 4 5 ... 8 9)
Been fooling around with "Trend continuation factor" indicator by M.H. Pee and somehow I could not find the "original" indicator for mt4 (the non-smoothed one) so, here it is (along with the original article by M.H.Pee about the way it should be calculated and used). One T3 smoothed version of it...
I want to know how you handle your moving average indicator. I am developing EA that is using 3MA to make trade. Exactly i want to know what is your MA Parameters? Now i am discussing  about your great Parameters and your experiences to improve my 3MA Crossover EA. SO if you having any idea to...
Is the some indicator that would display how many points i can tank before i'll get a margin call? (With the current balance i have). Could be good to see it as a stop loss line. Otherwise i'll be happy to know if there is smth similar
I’m working on an MQL5 custom indicator and I’ve extracted this part of the code to test why the arrows aren’t showing up on the chart. The main logic of the indicator is working as expected, but the plotting is not. Note that this is just a part I extracted from my indicator and I’ve given random
  CCI Woodie like  (278   1 2 3 4 5 ... 27 28)
  ADX indicator?  (255   1 2 3 4 5 ... 25 26)
Hi, Was wondering where I could get my hands on the ADX indicator with color changing when above a certain level
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
RSI Expert Advisor - Automated Trading Tool Based on RSI : The RSI Expert Advisor (EA) is an automated trading tool developed for the MetaTrader 5 (MT5) platform. This EA leverages the Relative Strength Index (RSI) to identify buy and sell signals, incorporating risk management, partial position
Economic Calendar Data Aggregator : This is meant to be an aggregating service script that collects data from the EconomicCalendar functions & outputs the values to a text file as a list of dictionaries for each event collected over a period of time. This is meant to be a prototype test to
MQL5 Programming for Traders – Source Codes from the Book. Part 7 : The final seventh part of the book discusses the advanced capabilities of the MQL5 API, which will be useful when developing programs for MetaTrader 5. These include custom financial symbols, built-in economic calendar events, and
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
Market Status Info : A script that displays the useful information about the broker, the account and the full specifications of the instrument. Author: Svetoslav Boyadzhiev
Stoch Cross EA – Buy Below 20, Sell Above 80 (H1) : A simple and effective Expert Advisor based on Stochastic Oscillator reversal signals on the H1 timeframe. Buy signals are triggered when %K crosses above %D below the 20 level. Sell signals are triggered when %K crosses below %D above the 80
Custom MACD: Elevate Your Trading with Real-Time Signal Alerts to Your Phone : Custom MACD for MetaTrader 5 enhances the classic MACD with real-time signal alerts sent to your phone. Detect trends and reversals with customizable parameters, intuitive visuals, and automated buy/sell notifications
Shved Supply and Demand - indicator for MetaTrader 5 - Multi Timeframe Version : This is MQL5 version of Shved Supply and Demand indicator written by Shved and upgraded by eevviill7 from this link. Subsequently Mr. Behzad Movaghar added other functionalities to this link. This version of the
Risk Management EA Based on ATR Volatility : This Expert Advisor (EA) helps traders manage risk by automatically adjusting position sizes and stop-loss levels based on market volatility, using the Average True Range (ATR) indicator. The EA calculates the optimal position size for each trade
Find Swing Highs Swing Lows : The Swing High/Low Identifier for MetaTrader 5 marks significant swing highs and swing lows directly on your chart with color-coded arrows. This tool helps traders quickly identify key price levels, which can serve as resistance and support, and is ideal for trend
Check out the new article: Neural Networks in Trading: Superpoint Transformer (SPFormer) . In this article, we introduce a method for segmenting 3D objects based on Superpoint Transformer (SPFormer), which eliminates the need for intermediate data aggregation. This speeds up the segmentation process
Creating a Simple News Filter for XAUUSD Trading on MT5 : Trading XAUUSD (Gold) is often influenced by major economic news events like USD, GBP, or EUR releases. To mitigate risks during these volatile periods, using a News Filter in your Expert Advisor (EA) is essential. In this article, I’ll share
BBMA - Bollinger Band Moving Average : All indicators required by BBMA Strategy in a single indicator. Author: Sopheak Khlot
BBMA - Bollinger Band Moving Average : All indicators required by BBMA Strategy in a single indicator. Author: Sopheak Khlot
Range Breakout Indicator - Indicator Buffer Only : This indicator for Breakout Strategy. It doesn't print objects on the chart. Author: Sopheak Khlot
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...
Hello friends. I am having problems with MQL4 indicator coding. I am not that good at programming. I am having the problems I mentioned below with the RSI indicator. Can you help me? When I add this code after the rssi buffer, both lines disappear. It does not produce an error code. Compilation is
  error need help  (13   1 2)
when i put my indicator in the market it gave me this error EX4 file must be compiled using <a target="_blank" href="http://docs.mql4.com/en/basis/preprosessor/compilation"> #property strict</a> directive. what can i do to fix this error thanks in advanced
//+------------------------------------------------------------------+ //| ReverseTrade.mq4 | //| A fully functioning EA that opens a reverse trade when price hits | //| -50% of SL of an existing trade, and keeps original trade open. |
Hello, I have a very simple histogram indicator displayed in a subwindow. It displays fine unless val2 > val1 then the val2 histogram 'covers' the val1 indicator colour. Is there a simple fix to this? Is there a way to send val2 colour to the background so that both histogram colours show on this
  Copy string to clipboard  (17   1 2)
Hello, for to copy text to clipboard, I tried the solution of ricx on https://forum.mql4.com/30795 It's running through without error, but in the clipboard there only is the first character of the input string. I tried to find an explanation and a solution and then replaced "CF_TEXT" with
Even adviser that works on ticks, or any other code, cannot save a variable in memory. Because of this, the ability to make a cool code fades away greatly. When code execution ends, the values ​​of all variables are reset.... And already doesn't matter , that function OnTick (other global function
Hey coders, I found a code about how to maximize a chart window by using SendMessage but I can't find something like WM_MDIMINIMIZE. I googled it but I didn't find a command to minimize a window. Can someone help me? This script is working fine to maximize a chart and I figured out that
Hi! Hope everyone is doing well! I have couple of questions: In MT4: 1. When I double click for example in XAUUSD D1, this data is downloaded from trade server, right? 2. When I select Download, this gives you an alert saying that data will be downloaded from MetaQuotes, so, data is overrided with
Hi everyone, i want to change the default settings for price alert from sound to notification! When i add new alerts over the chart than the expire date is activated. I want this also off as a default. Thanks@all!
  Previous tick's value  (40   1 2 3 4)
I, a custom indicator , just got a new tick and am currently in Start already. I need to find out whether I am to move up from the previous tick or down. Where do I fetch this information
How can I fetch Tick data from MT5 and MT4 broker terminal in real time (live tick data)
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" //+------------------------------------------------------------------+ //|
  Terminator v2.0  (564   1 2 3 4 5 ... 56 57)
Here it is guys. Check out the ReadMe file thoroughly. I've been using the H1 chart. Updates will be posted here so they are not dispersed throughout the thread. If a zip file has a low number of views, it's due to a recent update, if only in the readme file. Enjoy, Tom
Hello, I'm having an issue getting the correct signal from my indicator. Previously the line of code stated ( if x > 1) and it signalled correctly now i want it to signal if x is between 1 and 2, but the back test seem erratic, I'm using the code below if (x > 1 && x < 2) it seems as though it'll
This website uses cookies. Learn more about our Cookies Policy.