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
Hey guys I currently login to this site using google. when I try to update my phone number under security, it needs my password. My google email password obviously won't work. And if I go to "contact us", I get to a chatbot which isn't really helpful. I can't get to human moderators. Please assist
Hello team. Just started using the Meta Trader 5 app from appstore, on my macbook. Really enjoying it but i wonder if there is any possibility to make the chart "free", i cant scroll to the right only backwards on the chart. Do anyone have any clue if that is possible
The MetaTrader 5 platform update will be released on Friday, December the 6th, 2024. The MQL5 update introduces support for more OpenBLAS library functions, as well as the TransposeConjugate and CompareEqual functions. They will provide wider opportunities for working with matrices and vectors. In
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
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
The title says it all really.. I've had a couple of notifications on MT5 iphone app today telling me someone in different locations is accessing my account, it also says they're accessing it on an iPhone 12 which I don't have. Is there some sort of two factor authorisation on here where you need a
MT5 recently does not start - it generates no log entries, and nothing in the "Crashes" folder. Windows 11 task manager shows terminal64.exe for a few seconds, then it disappears. Windows event viewer shows an application error - code 0xc0000005, which means access violation.Strangely, the
Hi, What is the Contact Support email, instead of contact using bot? I need to contact using email and explain my verification. I need to do my verification to withdraw the fund from my MQL5 market Thanks
how to contact customer service? thank You
Hi, I'm new to mql5 and EA. I'm using MT5 with [redacted] and I found that historical data has huge spreads , like eur/usd 120pips, so can't use an EA for backtesting . Anyone can clarify this and give me a solution, please
This thread will discuss undocumented methods of working with the mql5 language , examples of solving certain problems. It would be desirable, that this branch on the maintenance was closer to FAQ, than to discussion. I suggest that all experienced programmers share their solutions and programming
As of December 6, 2017, the standard MetaTrader 5 delivery set includes the so-called Generic classes , which implement efficient algorithms for data storage and extraction. This branch was created to describe these classes, examples of working with them, as well as for suggestions on how to improve
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
The updated version of the MetaTrader 5 platform will be released on Thursday, September 21, 2023. It features a number of platform fixes and improvements. MetaTrader 5 Client Terminal build 3980 Terminal: New trading report improvements. Fixed the display of the total swaps value and the profit
  How to interpret volume  (19   1 2)
At the bottom of the market, if the price is rising, you should see volume increasing. So every time you see a spike, volume should increase at that spike. This is accumulation and distribution stage. As the price goes down, volume should increase, and as the price goes up, volume should go down
Classic martin management when the price goes in the wrong direction is to hedge and reduce the initial trade propotionally. Do anyone have a management strategy without hedging and a hard stop? For example reducing the initial trade when acceptable DD is reached
This thread won't be about a question or problem, but rather about the anouncement of the presentation and documentation of an exciting trading concept. I plan to do a series of postings here in order to keep you guys updated. Anybody who has an opinion on the topic, please don't hesitate to comment...
  All About Price Action  (16   1 2)
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...
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
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
Simple Ichimoku System - rules for the systems. Introduction. This indicator was created by Tokyo newspaper writer before World War II who had the pseudonym called Ichimoku Sanjin which we can translate as “a glance of a mountain man”. Ichimoku means “one look”; a chart of this style is referred to...
  Usefull links/threads/tools  (57   1 2 3 4 5 6)
The thread about threads: what's going around the forum everywhere ============ MT5, mql5, mql5.com suggestions for improvement thread ============ Requests & Ideas The beginning Requests & Ideas, the beginning - the thread Suggestions for Trading System thread After Requests & Ideas (MQL5
  PriceChannel Parabolic system  (327   1 2 3 4 5 ... 32 33)
Some people asked me on the other forums about re-enter. But I am not using any indicator for re-enter. So I decided to create some simple trading system with re-enter based on indicator's arrow on the chart. Let's name it as PriceChannel Parabolic system. M1 timeframe. This is image for EURUSD for
  The Coin Toss Method  (29   1 2 3)
Good day dear forum members. After reading the forum a bit, I came across several threads on arbitrage and pair trading . Judging by the threads, some are interested and some are trying it. I used to dabble in this topic a long time ago, but my knowledge was not enough. Now I am a complete mess in
  Dealing with high MFE  (13   1 2)
I'm having some large discrepancies between strategy tester and live trading (shocker). I recall looking through the backtest and forward test results after optimizations and my MFE was always very good, i left little on the table I was content. However after running my latest test it would seem I'm
Trading and training video (from youtube for example) about forex and financial market in general.  thread for April 2013 - look at this thread,  thread for May 2013 - look at here,for June 2013 is here.July thread 2013 is hereAugust thread 2013 is this oneSeptember thread 2013 is hereOctober thread...
Well you open two positions at the same time and price. So you close the loss/negative one as soon as you realized the trend. I can only think of swap if it took too long to find the trend
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...
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
  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 have a custom symbol for heating oil futures. At times, historical prices have dropped below zero. It seems that MT5 will not accept negative numbers for prices (see image). Is there any way to load negative values or is this not supported
Last Friday, the new MetaTrader 5 trading platform build 1375 with the Time & Sales option was officially released. The Time & Sales feature in the Market Depth window enables users to view the real-time list of all exchange transactions. The Time & Sales list provides...
Hello, Can any one please suggest me the best indicator for binary options trading? Thanks...
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
  Options Trading  (5)
Hi, Is there any way to access Options Trading in MT5 Platform
  us stocks  (2)
Hi I can't open spx and spy ,AMD on the chart no data What is the issue and how i can fix it
Hello guys, I just opened a MetaQuotes demo account because they offer real time stock data from the NASDAQ but I saw that the quality of the EOD data is not the best (daily open and close is very often different from other data sources like nasdaq.com). I don't want to trade stocks with the MT5 but
There are plenty of resources on the internet with analytics. But I am interested in the opinion of real traders, not analysts. Please share your expectations and forecasts. Do not copy analysts' posts and insert links to them. I am interested in traders' opinions and news + links to the news, which
Hi all, I am new here and I have started coding my own strategy on stocks, already backtested ***. For the case of NVIDIA which had a 10:1 split back in June, how could I have increased my lot size automatically without stopping my strategy? (Assuming I have money etc...) This is important because
HI all, how can I recall CFD expiration date indicated in properties window? I tried with SYMBOL_EXPIRATION_TIME but I seem it's not correct. Thank you
how to know which of the trade/stock has the highest volume/most gain
Hi All, I have run into this weird problem from 24th October, the pending orders when placed show a magic number associated with them but when the orders get filled the open position does not show a magic number. The position is showing itself as "placed manually" when I hover the cursor over the
Hello using this code everything appears fine but the order comment from the string TradeComment is not shown at all any idea what could be wrong ?? // variables string DayStart = "00:00" ; // Day Start Time double LastClosed_Profit; // Last Closed trade profit string TradeSymbol, TradeType
I wonder how you manage  the Tick value in your code. For some Symbols it is in the deposit currency but for some Symbols it is in another currency. In my opinion it depends on the value of MARGINCALCMODE. If it is 0 (Forex) the Tick value is in the deposit currency. If the MARGINCALCMODE is 1 (CFD)...
Hey guys, I have an interesting problem. I'm using Interserver VPS for multiple accounts. Same bot, same code, same setup. But on one of the servers I always get this line in the Experts tab: 2022.01.04 11:40:28.542 Experts automated trading is enabled 2022.01.04 21:00:00.076 Algo Solutions
Hello everyone! I'm using MT5 and facing an issue where, when a position with a set Stop Loss is closed, the magic number gets removed. I've used the following code to print the magic number in the history. for ( int i= 0 ;i< HistoryDealsTotal ()- 1 ;i++){ ulong dealticket=
I'm trying to make a expert advisor via mql5 but I'm taking these errors anyone can help ? trade.Buy(lotSize, Symbol(), ask, ask - StopLoss * Point, ask + TakeProfit * Point); ')' - open parenthesis expected SMC_Swing_Trader.mq5 trade.Sell(lotSize, Symbol(), bid, bid - StopLoss * Point, bid +
As you can see in my code i tried to use isPosOpen to make my ea stop opening more than 1 trade when the conditions are met, but i failed when i tried it to use it to stop my bot to open more than 1 trade when the prev trade is set to be. My plan is to keep opening trade when conditions are met if
I’m looking to build an online analytics platform similar to [redacted] , where traders can connect their accounts simply with login, investor password and server name. Looking into this further, I can see services such as [redacted] which offer an API which meets this need, however when looking
Hi, community! I have developed two custom indicators in MQL5: a currency strength indicator and an RSI indicator. I would like to integrate them with a Python tool so that, whenever I start my Python application, it directly receives real-time data from the indicators without saving it locally
Hi all, I tried to find an answer to my problem but couldn't find any. Here is the issue: I launched a free indicator ("GT Indicator"). Now, I would like to launch a Utility which accesses the Indicator. I tried to add the Indicator as a resource: #resource "\\Indicators\\Market\\GT Indicator.ex5"
Hi, I'm facing a strange issue here. I have an Expert Advisor, "Main EA", which loads a custom indicator , "MW MSSS Rev Hammer.ex5" with iCustom. The whole code is stable for weeks and for weeks I have been doing backtestings without changing the indicator's source file, only the Main EA and even so
Hello! I have a problem when backtesting a custom symbol "GER40". When I do a backtest, the first trade opens but printing some errors (log attached below). This error makes the visual test freeze for some seconds and if it's not done visually it still appears in the log of course. The error says
ENGLISH: I have a problem when trying to optimize . Before everything worked fine, but for a few weeks now, when I try to optimize an EA (my own) my PC freezes , the optimization does not continue (or takes a long time to advance because the CPU stops being used) and it is unusable (I am not
Validation when publishing Expert Adviser I received a "Not enough money" error, how can I fix it? No issues were encountered in backtesting or live trading
  Read TXT or CSV  (6)
Hi, I don't know why, but can't manage to read CSV or TXT I have tried all the possible combinations for reading path, and always get the same results (error 5004 or 5002) what do I have to change to read the txt? 2024.12 .22 20 : 25 : 37.034 Core 01 2000.01 .01 00 : 00 : 00 File does NOT exist
Hi to all, simple question: is it possible to create a custom MQL5-indicator with multiple (sub-)windows , with plot lines e.g. in the main chart and in two subwindows (so 3 in all)? I'm not talking about drawing objects, I'm talking about INDICATOR_DATA. Thaks
  Profit Labels  (7)
Hello, can somebody explain how to add this "Profit Lables" to show on a chart? how to code it into an EA or as a indicator? thx
  EMA with alert?  (41   1 2 3 4 5)
Does anyone know of an indicator that alerts when price is within a specified range of 34 EMA? I have searched but can only find cross alerts.
  Everything about RSI  (1463   1 2 3 4 5 ... 146 147)
RSI indicator We are continuing discussion about the indicators. We have the following thread: Parabolic SAR indicator Momentum indicator Stochastic Oscillator Divergence Indicator Now we are talking about RSI. "Technical Analysis from A to Z": Overview The Relative Strength Index ("RSI") is a
Hi guys, I used iRSI function in following format int iRSI( string symbol, // symbol name ENUM_TIMEFRAMES period, // period int ma_period, // averaging period ENUM_APPLIED_PRICE applied_price // type of price or...
Hi everybody, I'm trying to get the value from the "average angle" indicator. But the value of the indicator displayed on the chart is different from the value of the indicator taken from iCustom. I am very confused with this problem Please help me fix my code. Thanks in advance
this is the code that i combined PVI and iMA but it doesn't show them correctly like the attached image. how to correct the code? //+------------------------------------------------------------------+ //| Demo_iMA.mq5 | //|
hello friends, is it possible that i made a andicator that work on two accounts on two broker? thank you and sorry for my bad english
If I have only one chart open in the terminal (build 4755) and add any indicator to the chart that should be displayed in the terminal window, it will be displayed correctly: If I open another chart and try to add an indicator, the indicator will open in a separate window above the price chart: In
  fibonacci spiral  (1)
Good afternoon, if anyone has an indicator like in the screenshot "fibonacci spiral" on mt 4 or mt 5, please drop it)))))
Hi , i am new to coding with mql5 and i struggle to find a way of returning the monday high and low . I don't even know where to start from to be honest. Thank you
Equidistant ChannelStandard Deviations ChannelLinear Regression ChannelAndrew's Pitchfork (let it be too)Another channel. Will write about it in the commentsNoneI do not have an opinion on the topicI just want to see the answer
If I need to have synchronized data in the indicator, I perform a synchronization check. Unfortunately, if there is no next tick coming (e.g. on weekends), there is no further call to OnCalculate and the indicator is not calculated. I helped myself by calling the ChartSetSymbolPeriod function. In
In MT4 - multiple offline charts can be created with only 1 RangeBar indicator which is attached to M1 regular chart For example - created 10 pip RangeBars chart as M21 offline timeframe and 50 pip RangeBars chart as M31 offline timeframe Then attached Multi Time Frame (MTF) indicator on both
  iVWMA()  (2)
I miss MQL5 indicator iVWMA(). It is useful, but reference to programmed one is not comfortable
MarketPredictor for MetaTrader 5 : MarketPredictor for MetaTrader 5 The MarketPredictor is an innovative Expert Advisor (EA) for MetaTrader 5 that leverages mathematical models such as sine functions, Fast Fourier Transform (FFT), sigmoid functions, and Monte Carlo simulations to analyze and predict
CCI of Moving Average with Dynamic Signal Lines : CCI of Moving Average with Dynamic Signal Lines Author: maximo
Check out the new article: How to develop any type of Trailing Stop and connect it to an EA . In this article, we will look at classes for convenient creation of various trailings, as well as learn how to connect a trailing stop to any EA. Continuing the topic about trailing stop started in the
Surfing - 2 EMA strategy : This is a pretty simple startegy that follows trend. Recommended time frams is D1. when close price brakes up the EMA build based on high prices given that RSI is above 55 and RSI is above its Moving average - we buy. when close price brakes down the EMA build based on low
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: Portfolio Risk Model using Kelly Criterion and Monte Carlo Simulation . For decades, traders have been using the Kelly Criterion formula to determine the optimal proportion of capital to allocate to an investment or bet to maximize long-term growth while minimizing the
New article How to Order a Trading Robot in MQL5 and MQL4 is published: With the launch of the "Jobs" service, the MQL5.community became an ideal place for placing orders and providing programming services. Thousands of traders and developers visit this resource on a daily basis, and can easily...
Dashboard Panel for displaying information on the chart : This code shows how you can create a dashboard to display all the relevant information on the chart Author: Omega J Msigwa
New article Magic of time trading intervals with Frames Analyzer tool has been published: What is Frames Analyzer? This is a plug-in module for any Expert Advisor for analyzing optimization frames during parameter optimization in the strategy tester, as well as outside the tester, by reading an MQD
MACD_Flat_Trend: MACD Flat Trend indicator Author: Scriptor
New article Custom Graphical Controls. Part 2. Control Library is published: The second article of the "Custom Graphical Controls" series introduces a control library for handling the main problems arising in interaction between a program (Expert Advisor, script, indicator) and a user. The library...
New article R-squared as an estimation of quality of the strategy balance curve has been published: This article describes the construction of the custom optimization criterion R-squared. This criterion can be used to estimate the quality of a strategy's balance curve and to select the most smoothly...
New article Universal Expert Advisor: Trading Modes of Strategies (Part 1) has been published: Any Expert Advisor developer, regardless of programming skills, is daily confronted with the same trading tasks and algorithmic problems, which should be solved to organize a reliable trading process. The...
Simple Yet Effective Breakout Strategy : A simple yet effective donchian channel breakout strategy. This strategy is timeless! Author: Anh Quan Duong
High-Performance Time Functions (TimeUtils) : High-performmance functions for dealing with time. Author: amrali
How to Draw a circle ? ObjectCreat() not good since it always draw ELLIPSE, I want to draw a circle witha line linke two points. but in MT, it draw ELLIPSE since different X/Y scale(Y is price, X is time, they are never same scale, but I want draw circle wheneveraxes change). I want use one 2...
  MT4 download  (18   1 2)
I want an MT4 download link, I do not want to use MT5... Most people want MT4 so why push users towards MT5? Why should I go through a broker? Stop annoying a lot of people and provide an option!!!
hello all getting crazy with a function not working. I have a report showing open PnL and closed positions. I'd like to show a column with maxDD registered and save it into a file for checking when reload the indicator. so when OpenPNL < last recorderd DDMAX, then "update DDMAX". the code below
[Deleted]
Hello, plz help me,How I use Heiken ashi indicator for android mobile I m using android 2.3 gingerbred os mobile and for trading MT4 App....
Heloo I Can't publish my product ex4 , (Strategy tester report not found) even when try upload previous product (that already pass in past) please fix it
[Deleted]
  Sleep function in backtest  (11   1 2)
hello mql community, i'm lucky to be a part of this community. mql is the first programming language that makes sense. :-) but i've a problem: it seems so that the sleep function doesn't work in backtest. is that right? is there a solution for that? best regards, derox
The error message is that The request body contains invalid JSON.", "code":50109. I don't know how to correct the problem. Can anyone help me? Thanks! bool SendDiscordMessage( string webhookUrl, string message) { string headers = "Content-Type: application/json\r\n" ; string jsonPayload =
Hi, After updating to Windows 11 24H2, mt4 terminals shut down on their own, whether idling or running task such as back-testing. Has anyone experienced the same issue? Kindly raise a flag if so. Thank you
Windows Server 2019 Windows Server 2016 What is better ws 2016 or ws 2019 for run mt4? Thank you
Is it possible to calculate the maximum drawdown reached in an account? How? How can the development of equity be built
Hi, MT4 build 1421 compiler build 2408 the expression: if (state != EMPTY) { Print ( "false != EMPTY" ); } triggers this message in the compiler: expression is always true But it is not valid. In the MT4 Tester everything works as it should. For example I have something like: void func( bool
[Deleted]
Hi everyone, I'm starting to learn more about GUI panels using the appdialog box to add a panel to an indicator I'm writing. I have a basic understanding of how to create a panel and various buttons and labels. I just had one question about saving the location of the panel. If I move the panel on
Hello everyone, I recently experienced an issue with my broker regarding an abnormal spread spike on the EURUSD pair, and I need advice or insights from the community. Here are the details of the situation: 1 . My broker 's typical spread for EURUSD is around **2.7 pips**. 2 . On the MT4 platform
[Deleted]
  Range not behaving as expected  (22   1 2 3)
Goodmorning all.  I'm trying to create a "dynamic" range using ArrayMax/Min - aseach new bar comes in (and assuming some other criteria are met) the range extends in length - to achieve this I have elected to create a variable, the value of which changes upon each new candle (and some other...
Hello guys. Is it possible to change the values ​​of an array after it is defined at the beginning of the program? for example I have declared an array with default values ​​as follows: string NewsSymbol[ 7 ] = { "USDJPY" , "EURUSD" , "USDCHF" , "NZDUSD" , "AUDUSD" , "USDCAD" , "USDJPY" }; I tried
This website uses cookies. Learn more about our Cookies Policy.