MQL5 Algo Trading community — forex forum for traders and developers
does your broker provide this data ? okay sector and industry are for stocks , but isins apply to indices too. int total_selected= SymbolsTotal ( false ); for ( int i= 0 ;i<total_selected;i++){ string name= SymbolName (i, false ); Print ( "Symbol[" +name+ "]ISIN[" + SymbolInfoString (name
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
I have an indicator that uses multiple other indicators on multiple timeframes. I have used SeriesInfoInteger(NULL, timeframe, SERIES_SYNCHRONIZED) to make sure all is synchronized, BarsCalculated() to make sure indicators are loaded, ChartRedraw() thinking maybe that is the same as refreshing the
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
Hi there, I am logged in to an OANDA demo account on meta trader 5. When I run mt.copy_rates_from_pos( "EURUSD.sml" , mt.TIMEFRAME_M1, 0 , 1 ) So first OHLC from present in the minute timeframe. I get array([(1742876640, 1.08056, 1.08056, 1.08051, 1.08052, 13, 10, 0)], 1742876640 is a timestamp 3
Hello! I am from India, I have down loaded Exness MT5 app and tried to login through the app but it shows the subject error. Can someone help in this matter, responding to the message. Regards
Hi During certain pass while performing backtest using genetic algo and custom max criterion i got error: genetic pass (0, 110) tested with error "critical runtime error 502 in OnTester function ( array out of range , module Experts\XXXX.ex5, file XXXX .mq5, line 4013, col 72)" in 0:00:02.762 1. How
dear team please any advice for the below issue that im not able to open more than 8 mt5 on my machine windows server 2016 i have enough processor and ram no issue on that but i dunno how to fix that problem thanks
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
I have a product which works if use with the proper strategy. but the strategy is in pdf format. I've already uploaded it in my Google Drive. can I put the Google Drive Link in my product description so people can download the strategy there? As I know the MQL has updated polices for the product
I have many accounts and I get spammed daily with Daily Confirmation reports how to stop it
We are pleased to announce the launch of our pages on Twitter and Facebook. You can now follow all the latest events in MQL5.community via these popular Social Networks.
All the latest news and data on algo trading are conveniently published on a single page on social networking websites. And it's...
I was trying to rent a new vps for my VantageInternational-Live account, but in Metatrader 5 terminal, the vps button was greyed out. All my other brokers' vps are working fine. I wonder why
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
Hello, MT5 is only using 5% of my cpu to test an ea i want it to pout more strain on the cpu so it will test the ea quicker how do i do that
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
Hi guys how calcolate a stop loss with ATR ? anyone have some example ? i find but not have a good example i tryed double atrSL = 2.0 ; SL = NormalizeDouble (OpenPrice - (ATR_Value * atrSL), Digits ()); but not return me a price correct
Hello, I am new to this? Is there an solution? I don't want to open a new chart for every pair, when I also want to trade manually together with expert advisor, so I want to open also manual trades from there, but without getting interrupted by the EA. The expert advisor has a setting with hidden tp
The product rule -: " Embedding any limitations by time, account type or number, financial instrument, etc. into your Program is prohibited. All such actions will be considered as unfriendly to the Buyer and are prohibited. " I want to code an EA to work only on special instrument also in specific
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
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 , 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
I rent out my CPU power to others here, which has been fine for a long time. Over the last week or so, I have had 2 machines locking up, caused by MetaTester64.exe. Today, I managed to prevent a full lockup and get some sort of meaningful error - "buffer overflow", classic method of code injection
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'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, 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
Hey guys, hope everyone is having a good week and closing the week strong. I need help in editing notifications and alerts interval for MT5 shved supply and demand indicator. I copied the lines from the mql4 version on the code, but commented them out. Details in Line 39 and 273. I need it to at
Hello, I installed an indicator file, but it did not open, I imagine because it is in the EX4 extension, and I saw that the ones in the EA folder, the ones that open, are in the MQL4 SOURCE FILE extension, SO I wanted to know how to change it, I'm waiting, thank you
[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
New article Developing a trading Expert Advisor from scratch (Part 7): Adding Volume at Price (I) has been published: This is one of the most powerful indicators currently existing. Anyone who trades trying to have a certain degree of confidence must have this indicator on their chart. Most often
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...
Check out the new article: Build Self Optimizing Expert Advisors in MQL5 (Part 6): Self Adapting Trading Rules (II) . This article explores optimizing RSI levels and periods for better trading signals. We introduce methods to estimate optimal RSI values and automate period selection using grid
Breakout Finder by LonesomeTheBlue : This is the exact conversion from pine script code by LonesomeTheBlue. Author: Yashar Seyyedin
Check out the new article: Automating Trading Strategies in MQL5 (Part 12): Implementing the Mitigation Order Blocks (MOB) Strategy . In this article, we build an MQL5 trading system that automates order block detection for Smart Money trading. We outline the strategy’s rules, implement the logic in
Check out the new article: Neural Networks in Trading: Hierarchical Vector Transformer (HiVT) . We invite you to get acquainted with the Hierarchical Vector Transformer (HiVT) method, which was developed for fast and accurate forecasting of multimodal time series. The challenges in autonomous
Trend Zigzag (on ma cross) : A static zigzag which connects the intersections of a moving average crossover Author: Conor Mcnamara
Check out the new article: Self Optimizing Expert Advisor with MQL5 And Python (Part III): Cracking The Boom 1000 Algorithm . In this series of articles, we discuss how we can build Expert Advisors capable of autonomously adjusting themselves to dynamic market conditions. In today's article, we will
Fractal Adaptive Moving Average (FrAMA):
Fractal Adaptive Moving Average technical Indicator (FRAMA) was developed by John Ehlers.
This indicator is constructed based on the algorithm of the Exponential Moving Average, in which the smoothing factor is calculated based on the current fractal...
MeanReversionTrendEA : The EA automatically trades based on trend and mean reversion signals with validated parameters. Author: Mustafa Seyyid Sahin
Check out the new article: From Basic to Intermediate: WHILE and DO WHILE Statements . In this article, we will take a practical and very visual look at the first loop statement. Although many beginners feel intimidated when faced with the task of creating loops, knowing how to do it correctly and
Check out the new article: Feature Engineering With Python And MQL5 (Part I): Forecasting Moving Averages For Long-Range AI Models . The moving averages are by far the best indicators for our AI models to predict. However, we can improve our accuracy even further by carefully transforming our data
Check out the new article: Feature Engineering With Python And MQL5 (Part III): Angle Of Price (2) Polar Coordinates . In this article, we take our second attempt to convert the changes in price levels on any market, into a corresponding change in angle. This time around, we selected a more
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
Using a Mac First post and I am sorry if this is in the wrong place. My Navigator window and Market Watch have become undocked.....sure it was my fault. Now, I can't get either back docked?? Does anyone know how to fit this? It is a really silly problem to have without any way to get it back
Hi, some good indis found in the internet (4shared) in this topic! First, a smoothed non-repaint version of macd indicator coded by igorad and mladen. Cheer´s
Hi! I really wanted to use Metatrader 4 with my MQL5.com Market EA but I lost control of it, I can't find most buttons, I would need to reset it. Is there a way to erase it and start a new one from scratch? Can someone help? Thank you
You may have already noticed that the most interesting things now happen mainly on the MQL5.community . MQL4.com is about to be switched to the data archive mode. Only Book and Documentation sections will remain on MQL4.com by November. Besides, the entire MQL4.com Forum content is to be transferred
Hi, I am getting the following message repeatedly - every seconds - in the "Expert" folder of the MT4 trading platform. GBPUSD,H4: Check if automated trading is allowed in the terminal settings! How to stop this ? Will it helps if I restart the VPS ? If so, how to do that ? Please help ! Thanks
I am checking iRSI indicator with timeframe M1 to D1. for this i am using string gRandomSymbol = "EURUSD" extern ENUM_APPLIED_PRICE RSI_AppliedPrice = PRICE_CLOSE ; extern int RSI_Period = 14 ; extern int RSI_shift = 0 ; extern int RSI_UpLevel = 80 ; extern int RSI_BelowLevel = 20 ; extern bool
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

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.