MQL5 Algo Trading community — forex forum for traders and developers
Hello, How do I put the graph visual in logarithmic or is it based on logarithm on MT5 ? Thanks
The major update has brought two important changes significantly enhancing the MetaTrader 5 experience. The new section of advanced trading statistics can help improve results, while the built-in payment service can simplify account top-up. In addition, we have laid the foundation for additional
Hello I have had some good experience using freelance developers for simple , but when it comes to more complex EA i find it impossible to attempt to process this job via frreelance due to more verbose specification that would almost be a nightmare to nail down in chat only system. If there is a way
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'm having trouble backtesting and running genetic optimization on this code on every tick as it runs very slowly. My current setup is AMD 7950x with 64gb of DDR5 ram. The computer crashes when i try to run optimizations. I have tried to disable the number of agents to half but now it runs painfully
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
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
After backtesting with optimisation (genetic algo using custom max) is completed, in the optimisation result tab, i cant see all inputs which i selected initially for optimising. I only see around 16 1. Is that there a limit of 16 parameter in the result tab or were the rest of the parameter not
Hi all, I tried to create a signal, but the 'Subscription price' cannot be set lower than 30 USD. What can I do if I only want to show the performance without offering a paid subscription
I'm trying to import data for M1 bars but having an issue importing more than 2048 lines from a csv file. The csv file contains 300k+ rows but the import window only shows up to 2048. If I hit OK and try to import those 2048 the progress bar indicates that it is importing 300k+ bars but nothing
Friends, I started using the VPS and tested it for making trades when the computer is off and it worked ok. Problem is I want send myself some notifications using a piece of code like this: if ( _Symbol == "JP225" && hora( TimeCurrent ())== 13 && minuto( TimeCurrent ())== 15 ) if (!TemPosicao(
I would like to trade with a strategy that works on the 1-minute chart, buying and selling 50,000 USD worth of palladium . However, I don't want to cause any significant price fluctuations. Therefore, I wanted to ask if anyone is more experienced in this and whether it is actually feasible in real
I have been using a netcup vps for years, for some time I can no longer log in to my accounts on MetaTrader, in the journal I get the message MQL5.community: authorization failed and if I try to install a new MT5 I get a window for proxy options. netcup support says it doesn't depend on them. what
Comments that do not relate to the " Ask for help ", have been moved into this topic
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
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...
Excuse for my english, i hope to be able explain my idea for trading system Ok I'd like to present a very simple and profitable way to trade eur usd only one important indicator: sma 14,,,,,,,, when price cross sma 14 we take position 5 minutes setting short when price was over sma 1 lot long...
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
Market Condition Evaluation based on standard indicators in Metatrader 5
(2400 1 2 3 4 5 ... 239 240)
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...
Hello, Could you please provide a list of Forex calendar news events that typically result in significant price movements (more than 500 pips) in the Forex market? For example: USD Non-Farm Payrolls (NFP): Average price movement is 500–1000 pips. USD Consumer Price Index (CPI): Price movement ranges
MQL5 now supports matrix and vector operations which are used in various computational tasks, including machine learning. We have created this thread to select and share some materials that may be useful to you. Machine learning technology is based on neural networks. Neural networks are
M artingale, H edging and G rid <<< MHG >>> M y H oly G rail Over 50% of freelance jobs can be classified as one form or another of MHG. I wonder why ? Martingale : A gambling system of continually doubling the stakes in the hope of an eventual win that must yield a net profit. Hedging : Taking
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
I wanted to lean on someone's knowledge who has significant experience and knowledge in trading. Is there a relation between intraday pivot point calculations and daily trading signals with regards to buying after the daily low towards the high, and selling after the daily high towards the low
Hello guys, I am not sure how to assess if a spread is large or small. I tried to compare it with the average daily range and I also compared the spread to the value of the currency itself. What makes most sense for you? It is not only the points because 3 points are not the same on EURCHF or GBPJPY
I used to be a manual trader for a long time: https://www.mql5.com/en/forum/179446 However, I no longer enjoy the relentless screen time and general stress that goes hand in hand with manual trading. My solution was to become very good at translating my manual trading knowledge to the creation of
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
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
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
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
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
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
I know this is possible on demo accounts, but on real accounts? Anyone who operates with this strategy on a real account
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...
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
Hello everyone, I'm experiencing an issue with the activator in my EA. The EA is supposed to validate a license key by contacting a verification page using the WebRequest function. Although the EA appears to connect to the page, I never receive any response. In the Experts log, I see the following
Hi, Sorry for probably an easy question but I just started learning how to mql5. Let's say I have two simple pending orders, a long and a short, waiting to get triggered trade.BuyStop(0.1,longpriceentry,_Symbol,LTP,LSL, ORDER_TIME_GTC );
hi , i have an EA . This EA should open a trade for example at 17.00 and close next day 9.oo but in tests i get 2 errors , first is unsupported filling mode and the second is Ordersend 4756 Error its on every Pair, Gold, DE40 and so on here is the code
Im fairly new to all of this and I got started by watching a video of a guy who explained a simple EA called "simple MACD expert". Its a free bot from the market place. The guy in the video I was watching is using the same bot and even the same version and his was displaying a magic number in the
Hi, I've noticed this ever since I switched to MT5 and multi-agent testing around 2 years ago. When testing with all local agents (I have not yet used cloud testing) the task scheduler does not distribute tasks optimally - particularly when getting "near" the end of testing. For genetic optimisation
Last week I started testing my robot, I use MT5, Metaquotes broker demo, average ping about 7ms. However, today during the day I noticed two such trade entries. I wonder how he was able to trade in places where there are no charts. I use VPS exclusively for trading, so there were no work
Hi guys I am looking for a MT5 utility that enables me to open the same trade an x amount of times instantly. FOR example if I buy 100 lots of EUR/USD i want it to automatically open 4 other buy positions of the same volume at the same price. Then when i close the main trade or modify it with a SL...
//+------------------------------------------------------------------+ //| Naz Sell EAs (1).mq5 | //| Copyright 2023, MetaQuotes Software Corp. | //| https://www.mql5.com |
Hello wondering if there is a profitable EA on the MQL market or have they all got a alternative motive. I mean lets face it, if someone had a EA that was profitable, why would they sell it. Very basic discussion but funny enough it may raise some concerns. I have had many EA's from over a period of
[Deleted]
Downloaded the history, still checks for the history, timed out and error message no history data !!! ... this is really frustrating :( Hi Friends I have run the strategy tester about 30 minutes ago and it worked fine. after changing some corrections in my code and when I try to run, I got "no
Is it not possible to have direct control of the entry price when automating buy or sell trades?
(2)
I wanted to see if it was possible to make the EA enter a buy position only when the ask price is less than or equal to the moving average price. NormalizeDouble (currentAsk, _Digits ) <= NormalizeDouble (ma[ 0 ], _Digits ) Full snippet: if (allow_buy && trade_type == market_orders &&
Hi to alla guys , Wile i was trying to set my EA code for a strategy in AUXUSD I get a strange value for SYMBOL_TRADE_TICK_VALUE, spcifically this is my code snippet : int OnInit() { string szSymbol = "XAUUSD"; bool selected = SymbolSelect(szSymbol, true ); // select in market Watch bool found =
Artificial intelligence (AI) is changing the way we buy and sell in the stock market. This discussion is about understanding how computers use AI to make quick trading decisions. We will look into how AI can spot patterns in the market, make predictions, and decide when it’s a good time to trade
Where can I learn neural network in mql5? Or which book can I use to learn neural network in mql5 or mql4
It seems like SymbolInfoSessionTrade() has changed recently. In my EA I check for the end of the session time, calling from OnTimer() and send a message at the end of the session. This has been working fine for more than a year. Recently, I'm receiving those messages on the weekend, when the server
[Deleted]
Hi all, I've been wanting to have the ability to plot indicators from different timeframes on my chart, but MT doesn't have this capability built in. (Does anyone know of any charting programs that do this natively?) As an example, if you're following the IWCR system, it'd be nice to be able to plot
Hi, I'm developing a custom indicator in MQL5 that uses CopyTime() to get timestamps of previous candles in the daily timeframe (D1). The problem is that after restarting MetaTrader, it seems that previous data is not loaded, and CopyTime() returns -1 . I have tried the following solutions, but none
Hi could someone help me converting this indicator
The supertrend indicator is supposed to plot lines certain points/pips above and below the supertrend signal. Working Supertrend indicator and Daily Open (I ndicator that plots lines certain points/pips above and below the daily open. ) indicator files attached. I was hoping to apply the line
Hi all, I need an indicator for calculate avarage price for all open order, incluse Buy and Sell. I have an Indi for MT4. But MT5 I haven't. Can Someoe help me, Please! Simply calculate W: lot size P: entry For Buy is + For Sell is - Ex: Buy 1lot at 1900 Buy 1lot at 1910 Sell 5 lot at 1890 >>>
If I have data that ins't compare with price, ticks count for example. Can I draw my indicator on the common chart but with the second Y axis? How to releace it with another methods if second axis isn't possible
Hi As requested a Force Index Candles plus i have added in a Force Index MTF, The MTF is designed to work on Higher or equal timeframes to the timeframe currently selected, If the timeframe is set to 0 then it works the same as a NON MTF indicator. force_index_candles.ex4 force_index_mtf.ex4
I want to write a script to export the values of the current indicators on the chart, but I cannot give them nice label names because there is no function to get the buffer name
Hello guys. Im trying to validate a indicator in mql5 market, but: test on EURUSD,H1 (netting) expert file MQL5\include\candlestickpatterns.ex5 open error [ 2 ] expert file MQL5\Indicators\include\candlestickpatterns.ex5 open error [ 3 ] program file include\candlestickpatterns.ex5 read error
Hey guys, I will never understand how the loop of an indicator works. It's easy when I calculate the whole indicator with every tick but it should be a bit more efficient. Only the new bars should be calculated. I read many articles about prev_calculated , rates_total and so on. But obviously I am
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
Hello everyone as the subject says am trying to code or customise a moving average and display it in the subwindow ive tried several ways to tuckle the challenge without success as i show in the image below the yellow ma i placed manually and is the desirable output the red ma is however what my
I have an EA that uses an indicator. I would like to see the indicator when running the EA. However, each time I change a parameter in the EA, the indicator is doubled in the chart. In the example below the Ibands has 3 lines, when I load the EA for the first time...but if I change any parameter in
How to Disable/Enable Auto/Algo-Trading in both MT5 and MT4. : Just simple codes to Disable/Enable Auto/Algo-Trading in both MT5 and MT4. Of course, DLLs must be allowed, This cannot be done without DLLs Author: Kailash Bai Mina
VWAP - Volume Weighted Average Price:
VWAP is an intra-day calculation used primarily by algorithms and institutional traders to assess where a stock is trading relative to its volume weighted average for the day.
Author: Felipe Almeida
MT4Orders:
Parallel use of the MetaTrader 4 and MetaTrader 5 order systems.
Author: fxsaber
Discussion of article "The Use of the MQL5 Standard Trade Class libraries in writing an Expert Advisor"
(11 1 2)
New article The Use of the MQL5 Standard Trade Class libraries in writing an Expert Advisor is published:
This article explains how to use the major functionalities of the MQL5 Standard Library Trade Classes in writing Expert Advisors which implements position closing and modifying, pending order...
New article Measuring Indicator Information has been published: Machine learning has become a popular method for strategy development. Whilst there has been more emphasis on maximizing profitability and prediction accuracy , the importance of processing the data used to build predictive models has
Check out the new article: Reimagining Classic Strategies (Part VIII): Currency Markets And Precious Metals on the USDCAD . In this series of articles, we revisit well-known trading strategies to see if we can improve them using AI. In today's discussion, join us as we test whether there is a
Check out the new article: Developing a Replay System (Part 62): Playing the service (III) . In this article, we will begin to address the issue of tick excess that can impact application performance when using real data. This excess often interferes with the correct timing required to construct a
Check out the new article: Bacterial Chemotaxis Optimization (BCO) . The article presents the original version of the Bacterial Chemotaxis Optimization (BCO) algorithm and its modified version. We will take a closer look at all the differences, with a special focus on the new version of BCOm, which
Check out the new article: Robustness Testing on Expert Advisors . In strategy development, there are many intricate details to consider, many of which are not highlighted for beginner traders. As a result, many traders, myself included, have had to learn these lessons the hard way. This article is
Trend Zigzag (on ma cross) : A static zigzag which connects the intersections of a moving average crossover Author: Conor Mcnamara
Discussing the article: "From Novice to Expert: Support and Resistance Strength Indicator (SRSI)"
(4)
Check out the new article: From Novice to Expert: Support and Resistance Strength Indicator (SRSI) . In this article, we will share insights on how to leverage MQL5 programming to pinpoint market levels—differentiating between weaker and strongest price levels. We will fully develop a working
Check out the new article: Creating an MQL5-Telegram Integrated Expert Advisor (Part 5): Sending Commands from Telegram to MQL5 and Receiving Real-Time Responses . In this article, we create several classes to facilitate real-time communication between MQL5 and Telegram. We focus on retrieving
Discussing the article: "Price Action Analysis Toolkit Development (Part 17): TrendLoom EA Tool"
(3)
Check out the new article: Price Action Analysis Toolkit Development (Part 17): TrendLoom EA Tool . As a price action observer and trader, I've noticed that when a trend is confirmed by multiple timeframes, it usually continues in that direction. What may vary is how long the trend lasts, and this
Currency Strength Meter: Currency Strength Meter indicator gets RSI (Relative Strength Index) values from four different instruments of your choice and displays them in indicator window. Features Ability to set custom colors and styles for each instrument, Displays colored labels for instrument...
freeman: Strategies based on iMA (Moving Average, MA) and iRSI (Relative Strength Index, RSI) Author: Vladimir Karputov
I'm just learning to code. I'm just trying to write a script right now. I want to draw a blue vertical line whenever the MACD line crosses up over the signal line and draw a red vertical line when it crosses down. It seemed to work except that it skips some of the crossovers. Plus there are some
Hello, Has anyone had any experience with drawing a box from the open to the close of the 8 am candle, each day; and then extend it to 5 pm in mt4? Thanks
why i can't set or get to see any push notification for my open orders, closed orders, trades etc on my MT5 mobile app ? How to set that
Why did you post your MT 4 question in the MT 5 General section (a miscellaneous catch-all category) 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
The EA will not open the second order when the first loss level is reached. I have attached the full code and highlighted the relevant section in white. Any hint or pointing in the right direction will be much appreciated. Thank You
Which should i use Point Value or Tick Size Value? what the difference and which one is more accurate? What is difference between MarketInfo(Symbol(), MODE_POINT) and MarketInfo(Symbol(), MODE_TICKSIZE)
Hello, I am frequently getting two error invalid takeprofit for OrderSend function and invalid stoploss for OrderSend function. Question 1 : I am getting these error in Expert tab not in Journal tab. If order-send is failed, then it should show in Journal tab right? Question 2 : I am checking error
I am facing problem in intallation. I have Windows 7 and setup is download from Meta Traders Platform. Kindly Help me
Hello, I am getting these error from my EA : 2025.03 .24 19 : 23 : 23.626 Not enough memory for 6841107 bars for indicator Stochastic Oscillator (USDJPY,M1) 2025.03 .24 19 : 22 : 43.306 Not enough memory for 6864630 bars for indicator Relative Strength Index (EURUSD,M1) 2025.03 .24 19 : 17
Hi,i did some changes (more number of bars in tolos options, and downloaded more database from the history center) and when I try to do a test for an EA, it takes so long and the "bar" doesn't move, and those "error" (orange triangles appear in the journal), that I have to stop the test. What should...
Hey guys hoping everyone is okay. Can anyone please help me edit this beautiful indicator to have the boxes as background and also not filled. I will truly appreciate it. //+------------------------------------------------------------------+ //|
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
Hello everyone, I am new to MQL4 programming . I have copied an indicator about Stochatis Smooth - LSMA (using iMAonArray), and the chart displays the calculated information correctly. However, when I convert it to an EA, there are no errors during compilation, but the EA does not run. I hope you
Let's say I want to subscribe the signal I found on website. I clicked on "Copy" on website, it is supposed to open MT4. But what if I have multiple MT4? It doesn't ask which MT4 to open and just opens whichever he wanted which is really bad design. Okay, let's consider it's fine, because I have
My EA is working fine with MT4. What this error mean?. My EA is not stopping Strategy Tester and it not News-Based

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.