MQL5 Algo Trading community — forex forum for traders and developers
how to contact customer service? thank You
Since I don’t want to repost a topic that has already been discussed, or lose track of one I’d like to keep reading after a few days, is there a way to keep track of specific topics
I searched there is no built in function for this purpose. Can anyone recommend a solution. For example, a position id gotten from a deal or order that is used to generate a ticket number
Hello, again, MetaDev. I have another feature request that I think the users would appreciate. Is it possible that we get a Price Alert feature? It would really be convenient. Also another thing I think would be great is an alert for when price closes below or above a certain price. Pretty please
MetaQuotes has once again demonstrated its leadership in creating innovative solutions for the financial industry. At the Forex Expo Dubai 2025, held on October 6–7, the company received two prestigious awards: MetaTrader 5 was named Best Multi-Asset Trading Platform Including Web and Mobile
Hello guys. Could you please help me fix my EA panel+Button? it should work next way, Show Daily, Weekly, Monthly and Total profit properly, update them on every closed trade and button should show current profit/loss and pushing it should close all trades under this pair + magic. Current version
Is it common for code to "change on its own" after being idle for a long time? Whenever I make a new update, I create a new version of this code, thus generating several versions (1.01, 1.02, 1.03... etc)... and I keep them saved for future reference. The problem is when I go to check later and the
I'm using a notebook and after the update the Test only starts when I'm connected to the network via WiFi! There is a problem loading the data. If I disconnect during optimization, it is no longer a problem, the Test will run. The connection is only required when starting the Test ! I tried
Hello everyone, Currently, on the MQL5 Market, developers can only sell compiled products (EX5 files). There is no official option to sell source code (MQ5), even in special cases where buyers may want to purchase full ownership or exclusive rights to a trading tool. I would like to propose adding a
Comments that do not relate to the " Ask for help ", have been moved into this topic
If we want to insert some values in a table COMPANY of a database, it should be written as below: //--- enter data to the table if(!DatabaseExecute(db, "INSERT INTO COMPANY (ID,NAME,AGE,ADDRESS,SALARY) VALUES (1,'Paul',32,'California',25000.00); " )) { Print("DB: ", filename, " insert
is any one will guide me, how to install free robot in mt5 or mt4? I will appreciate
Hello everyone, hope this message finds you all well I have an issue with my XML exported optimization results → I have a TF setting, and in the results, it appears as a number so i can't find out which time frame it is. Does anyone have the solution, like a database which refers the assignated
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'd like to verify my mobile phone, however the Verification Code is not received neither by Telegram nor SMS. I tried Both Telegram & SMS, but No code has been received. i already exceeded the confirmation limits, i have to try after 24 hours, but i don't so far what is the problem. can anybody
How to better filter false entries in trend-following strategies on XAUUSD during volatile periods?
(4)
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
I can't see the MT5 VPS option anywhere! I tried Navigator - not there I tried tools - unable to select I tried tools --> option, no cloud tab to select. I have tried on 3 accounts: Metaquotes, IC Markets and Pepperstone. Anyone knows the issue? Thank
How can be the best professional developer
For me was very hard, it took like 2-3 months, the thing that helped me the mos wast replicating a pattern that I watched in the market: High of the day + M15 sweep / Low of the day + M15 sweep Firstly backtesting it a lot and then taking screenshots of the pattern, then started coding and learning
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
I’d like to discuss the difference between what we often call a “strong breakout” and a “false breakout”. What criteria do you personally use (candlestick body size, volume, retest behavior, multi-timeframe confirmation)? My observation: sometimes a breakout above recent highs comes with strong
Has anyone actually used an EA for passing their prop firm challenge and maintaining their prop firm accounts over a long period of time? If so, do you have proof? Trade history on myfxbook, for example? Thanks
Market Condition Evaluation based on standard indicators in Metatrader 5
(2438 1 2 3 4 5 ... 243 244)
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
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...
Forum on trading, automated trading systems and testing trading strategies Test version of MQL5 Copilot in beta 3647 Renat Fatkhullin , 2023.03.23 23:11 In today's beta version 3647, we've included the first version of Copilot, a feature to enhance the editor's ability to write code. The settings
Hi all, I’ve been experimenting with a structure-based EA approach on XAUUSD where internal market behavior is evaluated together with a few correlated markets (mainly index and dollar-related symbols) to derive contextual confirmation before execution. The technical idea is to combine: Market
Risk/money management, Handling market irregularities, Emotional control (trusting the EA), Finding a consistently profitable strategy, Backtesting accuracy
Hi! To be honest, I am a beginner trader and a complete novice when it comes to coding. But I like new challenges and I'm curious to discover new things. With the help of Gemini and Claude AI, I am trying to develop a trading robot that uses the HOLO strategy (“High Open, Low Open”). This is a
Recently been thinking about the idea of making EAs that use different timeframes: H4-M15 H1-M5 M15-M3 Have someone donde this
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
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
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...
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
"Hello, I am interested in publishing an article on MQL5.com, but I am facing some challenges in getting it through the initial review process. Could someone please guide me on the specific technical standards or formatting rules I should follow? I want to make sure my code examples and explanations
I was doing trading and leave the screen for some minute and I want to back check the history. Is there any tick data or tick data based back check method
i 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
Hi @ all, i´m new with MT 5 and wanted to know if its possible to trade on sim/demo account other markets than forex? For instance, NQ, SP500, etc. For now i only see forex markets to choose from. Any ideas? Thanks
I 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
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
SP500 and NASDAQ Indexes are not up to date and have been disabled for some time now. Is anyone else experiencing this
After the last MQL update on MT5 (5273 12 Sep 2025) //--- Show all the information available from the function AccountInfoDouble() printf ( "ACCOUNT_BALANCE = %G" , AccountInfoDouble ( ACCOUNT_BALANCE )); printf ( "ACCOUNT_CREDIT = %G" , AccountInfoDouble ( ACCOUNT_CREDIT )); printf (
I want to demo Options board on MT5 but cant find ANY one who offers it? Where can i try the MT5 options board? Who is currently demo/ real trading with MT5 options platform? its ridiculous i cant find ANY information on how to actually do it/ who offers it. Its almost as if it doesnt exist/ noone
Want to trade gold and silver on spot not futures .. i tried futures algo trading on ninja.. too much loss on slippage. Any ideas what are others doing
If you invest in stock portfolio or asset management firm, and you have 2 options 1- Long only : go long with bullish market only ( lower return ) 2- Long-Short : go long when bullish and short when bearish market ( extra return from shorting ) When strategy short stocks it expose your portfolio to
i been using amp for future trading from last two years in usa but from last three days i been noticing disconnection of data feed in live trading for almost 30 seconds to 1 minute, is anyone else have this issue
Hi, this is an example code that is working correctly in terminal, but it is not working in stratey tester. It give me error 4004 on CopyTicks call, but if i code it whitout "while" it is working correctly. Can someone explain me the reason, please? ulong last_tick_time = 1 ; int to_copy = 2000 ;
Hi! I'm trying to open a .txt file using CFileTxt class while executing backtesting. The idea is that it gets a list of datetime values which the EA is supposed to skip. When trying to open the file, I allways get error 5004, so apparently the FileOpen function is not finding my .txt file. The
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
Hello everyone. I am new with programming Expert Advisors (EA), in my research I found that in Meta Editor there is a wizard function, which allow the user to create an EA with some predefined parameters, with this some questions came up to my mind. -Wizard's EA compile perfectly once the parameters
Hello, I have built an multiTimeframe and MultiSymbol EA. For example, i am using Moving Average, it create handle for all the selected symbols and timeframe. 1. Sometime Due to Moving Average full EA get stuck 2. Sometime CopyBuffer get failed and return 0 (for all indicators) 3. When i deinit and
Hello, I've had issues using multicurrency EAs on MQL5 VPS. It looks like the EA cannot place orders on other symbols - even if the corresponding charts are open when I sync. Do you know how to solve this
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
Using specific deal/order tickets, Looping through all orders, Custom frameworks, Other (specify in comments)
Hi, I'm looking for a small EA utility which allows to close existing orders (opened manually or by other EAs) based on rules given by indicator values. E.g., it uses the stochastic indicator and closes the orders once the overbought or oversold regime of the specified trade instrument are reached
Hello everyone and MetaQuotes Support, I am writing to express my severe frustration and disappointment as an EA developer. I have been developing a professional trading panel for a long time, and the recent rapid-fire updates are making development unsustainable. Before the January 30th update
Hello, I am using simple RSI + BollingerBands to find reversal and take a trade. i am not using any Take Profit or StopLoss defined directly in Order or defined in Point/Pips instead i am using Indicator to calculate When to close trade in profit (Take Profit similar) but the problem is i am
My mother language is Arabic, I will try to make this article as simple as possible, away from technical jargons. This article is about using two Python scripts (master_client001.py and slave_server.py) to copy trades locally (at the same PC or Laptop) between two MT5 platforms (Master and Slave
I look in the forum but this has not been answered although some similar topics but not this example. As the strategy tester is running my profit calculation is wrong. See these two examples, trading XAUUSD with USD as the currency. Can someone give me some insight here
Why did you post your coding question in the MT 5 General section (a miscellaneous catch-all category) instead of the MT 5 EA section (non-indicator coding)? General rules and best pratices of the Forum. - General - MQL5 programming forum ? (20 17 ) Next time, post in the correct place. I
Hello, Using #include <Trade\PositionInfo.mqh> #include <Trade\Trade.mqh> CPositionInfo m_position; // trade position object CTrade m_trade; // trading object Will make my EA slow? or should i use purely for example CTrade m_trade; or directly
Please find some indicators which are forecasting something. First is i-DRProjections_v.0.1. This indicator shows the support and resistance of current day forecasting on the base of previous day. All the calculation is based on Thomas R. DeMark book "New Science of Technical Analysis".
On which time frame is it the easiest to count Elliot Waves correctly
Does anybody know if this indicator exists for mql5? My guess is that it does not. All I found with that name was some old one from 2012. I know maybe 30 % of mql5. How hard will it be to convert from pinescript to mql5? 186 lines of code is a bit worrying. Edit. My link from tradingview
I want to build a volume profile per candle indicator like the attached picture. This indicator work in mt4 using ticks. Can anyone know the exact step to build this type of indicator
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
Modern trading platforms store total traded value and total quantity for each time interval. I propose the Capital-Weighted Price (FO) : FO = Total Transaction Value / Total Quantity Request: Display FO alongside OHLC values in candlestick panels. Allow FO as default input for all technical
Hey Guyz
Thanks in advance for the help and advice on where or what I might be able to do to make the RSI+MA overlay!!!
I seen an earlier post that sayd to copy one CODE and PASTE the code on to the other CODE.
However I tried this and complied the instrument, came back ok however when...
[Deleted]
Hello, Is it possible for me as an MT5 trader to set up 7 Minute, 8 Minute and 9 Minute charts on my MT5 platform? If yes, how do I go about doing that? Thank you, PennySeven
I want to move an old indicator to MQL 5 and therefor need iRSIOnArray equivalent. Searched, but couldn't find anything so far. Would someone be so kind to point me to an implementation
Hello All, Whilst browsing for a useful indicator with sorce, I came across the RSISignal - indicator for MetaTrader 4 . As I have my own wrapper for adding logic, I thought I'd port this combined indicator to MQL5. I have been making use of the plethora of open source indicators made available by
Hello Friends! I tried to convert an indicator from MQL4 to MQL5. the indicator named: Swing Cloud and I don't know what is wrong with MQL5 code. In uptrend the cloud should be below the price and in downtrend the cloud should be above the price. Here is on MT4 it print the cloud in the correct
I have programmed my own indicator, whose values are calculated from the price[] buffer. The indicator code contains the line: #property indicator_applied_price PRICE_MEDIAN When I insert the indicator into the chart, I can select the desired applied price on the Parameters tab, based on which the
Hi, Can some share us the Supply and Demand zone indicators MQL5 file
NRTR (Nick Rypock Trailing Reverse). There are a lot of modifications of this indicator for mt3 and mt4 as well. But original idea came from here - see image attached. It was the good trading system in 2001.
Is it absolutely set in stone correctly validated that Elliot Wave 3 is NEVER shorter than wave 1 and 5? Is that what is stated in the official rules for Elliot Waves
Check out the new article: Master MQL5 from Beginner to Pro (Part III): Complex Data Types and Include Files . This is the third article in a series describing the main aspects of MQL5 programming. This article covers complex data types that were not discussed in the previous article. These include
New article How to Buy a Trading Robot on MQL5 Market? is published: Now you also can use trading robots and any technical indicators with MetaTrader 5. All you need to do is to launch MetaTrader 5 trading terminal and open Market tab of Toolbox window. Author: MetaQuotes
Support and Resistance(SNR) Sentinel Indicator : Adaptive Support & Resistance indicator that automatically detects, tracks, and updates the nearest valid S/R levels using configurable confirmation bars. Levels dynamically shift after confirmed breakouts and extend forward in real time. Author
Price Action Dynamic Exit Strategy - Profit Shield pro : Take it as profit guardian or market reversal detector. It is a script that acts as a safety net to protect profits when you're away. Instead of just waiting for a fixed Take Profit level, it monitors price behaviour and closes the trade if it
CMIDI : The class to play music using the MIDI device Music program Music program is recorded in the string array. In one array element is written a list of actions. Actions are written by a comma. At first a command, an equal sign and a command value are written. The following commands are
New article Creating a "Snake" Game in MQL5 is published: This article describes an example of "Snake" game programming. In MQL5, the game programming became possible primarily due to event handling features. The object-oriented programming greatly simplifies this process. In this article, you will
Check out the new article: Risk Management (Part 5): Integrating the Risk Management System into an Expert Advisor . In this article, we will implement the risk management system developed in previous publications and add the Order Blocks indicator described in other articles. In addition, we will
Check out the new article: Automating Market Memory Zones Indicator: Where Price is Likely to Return . This article turns Market Memory Zones from a chart-only concept into a complete MQL5 Expert Advisor. It automates Displacement, Structure Transition (CHoCH), and Liquidity Sweep zones using ATR-
Check out the new article: Introduction to MQL5 (Part 40): Beginner Guide to File Handling in MQL5 (II) . Create a CSV trading journal in MQL5 by reading account history over a defined period and writing structured records to file. The article explains deal counting, ticket retrieval, symbol and
Check out the new article: Mastering JSON: Create Your Own JSON Reader from Scratch in MQL5 . Experience a step-by-step guide on creating a custom JSON parser in MQL5, complete with object and array handling, error checking, and serialization. Gain practical insights into bridging your trading logic
MQL4/5-JsonLib : A JSON library that supports MQL4/MQL5 Author: hini
If you are integrating Large Language Models (LLMs), the standard JAson.mqh The library is a bottleneck. Its recursive architecture and excessive memory allocations (creating thousands of objects for a single payload) are unacceptable for production systems. We rebuilt the JSON parser from
Check out the new article: MQL5 Trading Tools (Part 18): Rounded Speech Bubbles/Balloons with Orientation Control . This article shows how to build rounded speech bubbles in MQL5 by combining a rounded rectangle with a pointer triangle and controlling orientation (up, down, left, right). It details
Check out the new article: Price Action Analysis Toolkit Development (Part 61): Structural Slanted Trendline Breakouts with 3-Swing Validation . We present a slanted trendline breakout tool that relies on three‑swing validation to generate objective, price‑action signals. The system automates swing
New article Synchronizing several same-symbol charts on different timeframes has been published: When making trading decisions, we often have to analyze charts on several timeframes. At the same time, these charts often contain graphical objects. Applying the same objects to all charts is
If you have questions about MQL4, MT4, MetaTrader 4, please post in this thread. Especially when your questions are related to trading functions
Some indicators which can be a filter to avoid big losses. If you have a great idea so you need a filter. To avoid any trading in none-trading zone. Please post your filters here. And please find the filter ... let's say ... 4 in one: FATL, SATL, RSTL, RFTL. In one indicator
Hello, I can log into my profile using the MetaTrader4 app. But when I open the Desktop MT4 terminal and use the same login details, it tells me the login details are wrong. I restarted the computer and closed everything and then reopened it. What can I do? Thank you very much
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
Hi everybody, I used DeepSeek (DS) yesterday to request a simple script.mq4 codes, DS provided me nearly 100 versions of scripts but all versions are NOT working at all, it took me about 5 hours. I kept on asking modifications and corrections, but the DS finally turned up to be "server busy" to
Am trying to create a tma tma oscillator by using the difference between two tma but my tma will use custom price rather than mql4 main price such as close open etc. But i don't know if.this.will cause heavy repainting or.if it will just recalculate at centerFactor =0 double iCtmaCustom( double
Here is a step by step guide for buying, installing, testing and using a Metatrader 4 Expert Advisor (Robot, Bot are whatever): 1. First make sure that you have the necessary funds required for your purchase in your MQL5 account, its always easier to pay with your MQL5 balance, than using a credit
Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
(19650 1 2 3 4 5 ... 1964 1965)
In this thread I want to begin to help those who really want to understand and learn programming in the new MQL4 and want to easily switch to MQL5 - the languages are very similar. This blog will be a good place to discuss tasks, algorithms of their solution and any other questions concerning MT
I drew a long transparent horizontal band with canvas from the left to the right end of chart. Then I created a horizontal line object. When the line is outside the canvas band, I can get line handle with either CHRARTEVENT_OBJECT_CLICK or CHARTEVENT_CLICK and move around by mouse. However, once the
At the bottom of the MT4 terminal when the Trade Tab is selected MT4 shows the following parameters: ---> Balance: Equity: Margin: Free Margin: Margin level: <--- My question is "What is the equation used to calculate Margin?"
Good EveningI use EA_Ilan-TrioKS v1.47 and it allways worked fine and with profit but since three days ago it started operating strange, whenever the system is restarted it closes all BUY orders even causing loss.It makes a stop loss with the value of actual price and closes the trade. Has anyone...
Hi friends, I have been using this EA for long. It has made me some money. It trades multi-pairs and trades multiple times per day. This EA works on Gap(Trend). If the gap is too long this EA is dangerous...it can blow out...this is because its Stoploss is not coded properly. Although it has a SL...
Please excuse my ignorance, 24hrs ago I downloaded the metatrader prog and it would not work. I started looking for why and found that it did not come with an experts file and meta editor is different (look at attached files) . Thought that was strange so I proceeded to update my older version of MT
Hello Supply and Demand Traders, I have a custom expert advisor which trades off supply and demand zones. The zones it trades off are from this source - https://www.mql5.com/en/code/14545 (indicator attached below). Here are the rules of the EA: - When price reaches the proximal level of an...
Hello everyone, Please I need somebody's help concerning this, I have tried everything i know but to no avail. After completing my EA and compiling, it displayed "Event handling function not found!" on line 1 and column 1, I checked everything about line 1 and column 1 but there is nothing to...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.