MQL5 Algo Trading community — forex forum for traders and developers

Since its launch, MQL5 Cloud Network has completed more than 16 billion tasks. This figure shows how many times users have tested their trading strategies. Every day, the network enables algorithmic traders to run calculations on tens of thousands of computers worldwide with just a few clicks
Embracing the liberating ethos of freelance writing, I reveled in the autonomy and flexibility it afforded me. Yet, as Bitcoin surged in popularity, I recognized a golden opportunity to fortify my financial future. With a calculated risk, I plunged $120,000 into the digital currency early on
I purchased VPS Subscription and migrated my EA. I do not see any trades for the whole day. How do I know the Bot is actively working on the VPS? How do I make sure? Can I see trades from the MQL5 Platform from my Home PC? Please advise
Hi forum, I'm looking for an EA with SL and minimum 1:1 RR with high probability on consecutive wins and low consecutive losses. Who can help me? Happy to hear from you
Hello, I am writing to report a bug in the latest update of MetaTrader 5, specifically within the MetaEditor. When setting a breakpoint, I used to be able to right-click and add watch to see the values of variables that received input from the user. However, now it shows "unknown identifier". This
I would like to have mt4 with more of a selection of timeframes to use in real time trading right now im switching windows which causes lag to getting in to the trade with precision if anyone could please point me in the right direction on how to create or add more timeframe options that will be
We have updated the 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
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
Cannot install my purchase product???? Is there a problem if I click on terminal install on responds
Hello, guys. Today I turned on my PC and went to check my agents. I found out the first two agents are not working. I don't know how this could happen as they were working fine. I try to turn them on but it won't work. I also found that if I stop the other agents, I'm able to activate the first two
Nowadays it takes about 10 - 15 minutes for the application to load after double clicking on it on the desktop, this doesn't seem to be the case with MT4. Is there something wrong on the latest build? I removed all strategy tester logs, but it's still the same
Hello, My EA seems to change the amount of orders executed depending on the SL or TP (holding all other variables constant) which doesn't make sense to me. It seems that the larger the SL and TP, the less trades that are being taken. Would anyone know the reason for this? I have attached the
MetaQuotes has launched new information channels on Facebook, (Twitter), and Telegram. These channels provide daily publications of relevant technical materials from the Articles and CodeBase sections. They are designed to promptly update developers on algorithmic
I have a simple code to take a screenshot, but the problem is that the screenshot is incomplete. It doesn't matter the time I use in Sleep() after the redraw. Here's the code: //+------------------------------------------------------------------+ //| Global constants
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...
Maybe someone can help me
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
In this thread we will build our own Bollinger Band strategy by combining our heads together. Let's discuss: DISCUSS: - what do you think is the best way to recognize RANGED and BREAKOUT? - what other indicators complement the Bollinger Band? - what is in your experience the best timeframe for...
Hi, Has anyone tried the black arrow v2 indicstor strstegy? it says it doesnt repaint but on my mt4 sometimes the arrow disappears if the candle goes in wrong direction to the arrow. Is it a useless indicator or is there any other confirmation indicator/MA that sdd to my charts to make it perform
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...
I just started this thread as a continuation of the talking made on this topic (we can read it). Or 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
Good morning Without being the holy grail, I think it is still a step or two in its direction. Here is my opinion It is practically impossible to fit into a time frame even with a lot of information. Often it's trying to make a decision on 1 bar How to choose a bar among many others? I think the
  Does a safe Martingale exist ?  (198   1 2 3 4 5 ... 19 20)
Hi, With this topic I would like to contribute in a very serious way to the world of the martingale "believers". For those who don't know me or doubt my intentions google on "fxigor". So I hope with this topic that I can make a new wind blowing in martingaling. Let me first answer the question to...
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...
hi I would like to know if there is a good strategy when forecasting highs and lows (ohlc), any links that can help
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
  Brainwashing System / Asctrend System  (260   1 2 3 4 5 ... 25 26)
This is the thread about Brainwashing system. We will start with original version of this system and will improve it later. ========== Just something about the history. There are 3 famous signals system (manual trading systems based on signal indicators): Asctrend, BrainTrend and Brainwashing. First
I study correlation pairs and hedge strategy. 2 pairs hedges are difficult to get profit. Does 3 pairs hedge system really work or not? example USDCHF EURUSD EURCHF BUY BUY SELL / SELL SELL BUY Please suggest me some useful hedge system.I want to code it as EA
  PriceChannel Parabolic system  (313   1 2 3 4 5 ... 31 32)
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
Hello all, This topic is extended to those who utilise algos or trade manually. I am looking to gain an insight from traders who have maybe migrated from CFDs to trading futures, or perhaps those who trade futures alongside CFDs. I would like to know your "why" - is it due to portfolio
Fellow hobbyists, please advise where to find an exit to the NYSE via mt5
hi all every broker has a limited global stock of major or popular companies do you have any idea if i can find any broker uses mt4/5 demo/real account which provide more range of us and europe stocks. and etfs and it will be perfect if its charts have a premarket or night prices as i just want to
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  (2)
Hi, Is there any way to access Options Trading in MT5 Platform
Hello all, I have a few questions for anyone with knowledge and/or experience trading futures. Any input would be greatly appreciated. From experience scalping in live market conditions, how does slippage and spread compare to trading CFD in markets such as FX? Is there a notable difference, and
Forum on trading, automated trading systems and testing trading strategies Press review Sergey Golubev, 2016.12.25 06:50 Hang Seng Index Q1 2017 Forecast (based on the article) "Underlying sentiment surrounding Hong Kong stocks has remained negative with underlying concerns surrounding...
How to display extended hour prices on the chart and for the EA? There are large price variations between the end of regular hours and the start of regular hours for a stock. We don't see these variations so my EA and almost all EAs designed for stock trading can't track movements and trends well
I'm trying to figure out if I can have a list of all my trades for the same utensils separate rather than one bulk position in the tool box/terminal box. Is this even possible? Thanks
Bitcoin vs USD January-March 2017 Forecast: key resistance level at 850.15 to be broken for the bullish trend to be continuing Weekly (W1) price is located above Ichimoku cloud in the bullish area of the chart. The price is on ranging within the following support/resistance levels: 850.15...
  Forecast and levels for S&P 500  (474   1 2 3 4 5 ... 47 48)
S&P 500 January-March 2017 Forecast: long-term bullish ranging within the narrow s/r levels for direction W1 price is located far above Ichimoku cloud in the bullish area of the chart. The price is on ranging within the following narrow support/resistance levels for the bullish trend to be resumed...
On which MT5 platform can I find the S&P 500, Nasdaq, and Dow Jones index? It's not the type of CFD, it's the real S&P 500, Nasdaq, and Dow Jones indices on the exchange
how to know which of the trade/stock has the highest volume/most gain
  Forecast and levels for Dax Index  (76   1 2 3 4 5 ... 7 8)
Dax Index January-March 2017 Forecast: flat within bullish with key resistance at 11,649 W1 price is located above Ichimoku cloud in the bullish area of the chart. The price broke 11,485 level to above on close weekly bar with 11,649 as a nearest bullish target to re-enter. Thus, the weekly price is...
The indices market is extremely slow these days and I'm not seeing many trading opportunities... The VIX is at 12.25 right now, what do you do when VIX is this low? Do you switch to other markets or do you just take a break? Also curious about Forex traders, are you seeing a similar problem
In my EA, I use the following line of code to register its Magic Number: m_trade.SetExpertMagicNumber(Magic); The function has no return value, so is there a generic method to check whether a Magic Number is already in use? I'm looking to block an EA from loading if the Magic Number already exists
Hello, Can I use the zero value of a magic number in a EA to control the manual trades I opened? thanks GL
i have an EA that continuously loose money what should i do to inverse it effect
Hello All, I'm sure the answer is buried deep within this forum and I have attempted to look just didn't find anything I might be able to use. Well any ways. Here is what I am trying to do. Basically once an order is closed I want the take profit booleans to be set back to false that way the current
Hello, what happened to this link is not commercial neither advert I dont see why moderator should delete it. I am trying to access the rss news feed on the link above but I am getting " You don't have permission to access / on this server. " what is the new alternarive
Hello fellow traders, I'm running optimizations on an EA I'm currently developing and when I backtest on a 4 years period from 2020.01.01 to 2024.01.01, this is the results I get: And when I backtested it on a 3 years period from 2021.01.01 to 2024.01.01 here are the results I get: I don't
Hello All My modify TP/SL code below won't modify sell positions instead I get modify errors. With Buy positions everything modifies as normal, please assist me as to why sell positions will not modify. #include <Trade\Trade.mqh> #include <Trade\SymbolInfo.mqh> #include <Trade\PositionInfo.mqh>
Hi, I'm traying to add ONNX models without using resource (because I want to add them to the parameters input). Is there any way around to make this possible
Hello, i have problem with my ea. I have more order limit at level price. But EA creat many order with duplication price. I want count order price at level. And I will filter order duplication. How to fix? int OpenSellOrders( double Level) { int sellorders= 0 ; int selllimit= 0 ;
Hello, i have a very simple strategy based on 3 indicators that i would like to turn into an EA for better Backtesting and trading if it turns out to be profitable. My problem is that i cant code at all so im looking for someone who maybe would code this for me. I think it would not take too long to
Good evening, I am trying to create my own expert advisor for the U.S. indices, I have implemented various controls and they seem to work well, such as whether a symbol is valid, whether the market is closed or open, the program shows me the moving averages and RSI correctly but when it tries to
I am trying to get a total count of buy (open buy + buylimit + buystop) and sell (open sell + selllimit + sellstop) orders at a particular price level. The following function code seems to get the count correctly in some instances but shows a zero count in other cases. I am not able to figure out...
Hi friends Please I have an indicator which have 3 buffers. The 3rd buffer should return EMPTY_VALUE for buy condition OR same value as second Buffer in sell condition. But in strategy tester, the indicator constantly returns thesame value for first and second buffers. Please help me take a look
Why is it i failed the validation for OrderSend due to invalid trade volume but i am able to send orders in the strategy tester
A must ! Before using it or asking any question : please read the Online Help (Also accessible by F1 on your MT5 platform) Strategy Tester For Traders General overview of the possibilities. Overview of results : Visualize a Strategy in the MetaTrader 5 Tester The general information about
I'm trying to create a recency-weighted performance indicator that averages the annualized performance of various lookback periods. For each lookback period, it uses a 5-day moving average to avoid the problem of idiosyncratic results depending on the daily results of the specific lookback day. I'm
Greetings, Below I have a function intended to determine the intersection of 2 ('Object Trend') lines drawn on a chart. The issue is that the 'intersection time' being reported does not seem to equal what I am seeing visually on the chart. In the function the 'time' of the intersection is set as
Hello everyone, can anybody please explain to me, why there is a limitation of the width and size of objects within MQL5, where MQL4 didnt have these limitations? In MQL4 you can size objects like you want to, but within MQL5 there´s a limitation to width 5 for example. I can´t see the reason behind
for ( int i=start; i<rates_total && ! IsStopped (); i++) { ExtSignalBuffer[i]=( low[i]-open[i])* 1000000 ; if (open[i]-close[i] > 0 ) // in case bear indicator_type2 [i] = clrAqua ; //change color ExtSignalBuffer[i]=(low[i]-close[i])* 1000000 ; }
This indicator is similar to the RSI. The idea is to calculate net_profit / [sum(positive returns) + abs(sum(negative returns))] in a rolling window. But after I changed the code in the main loop, the terminal says: 'for' expressions are not allowed on a global scope //--- the main loop of
Hi, I'd like to use my Mt5 custom indicators also on Mt4. They compiled with 0 Errors on Metaeditor 4, however, when applied to a Mt4 chart I get the unspecific error message: "indicator on custom buffer is not supported yet" What does that mean? Thanks, Tim
  RSI MAKER  (3)
I want my indicator to mark all bearish candles that have RSI below 30 and all bullish candles that have RSI above 70. I'm not sure where the issue is. //+------------------------------------------------------------------+ //| RSI_Marker.mq5 | //|
  Moving Average  (1547   1 2 3 4 5 ... 154 155)
Post all MA indicators here
hi guys . I'm new in indicator and English language too.I've tried to convert an indicator from MT4 to MT5 . i downloaded an include file ("<mql4_2_mql5.mqh>") to make my work easier . this is my code that give me "array out of range in Line ( 171:18 )" error will you help me to solve my problem
hi this code is mql5 script and print the ma value of D1 period and work as it expected: void OnStart () { int mahandle; mahandle= iMA ( NULL , PERIOD_D1 , 1 , 0 , MODE_SMA , PRICE_MEDIAN ); double mavalue[ 1 ]; CopyBuffer (mahandle, 0 , 0 , 1 ,mavalue); Print (mavalue[ 0 ]); } but same
Dear Fellow Members The documentation says: ERR_INDICATOR_WRONG_HANDLE 4807 Wrong indicator handle I have included following check, but still in live chart I get error 4807 though none of handles return no error: if (mHandleFast == INVALID_HANDLE || mHandleMid == INVALID_HANDLE ||
can anyone help with this datetime time6= D'2024.07.10 07:15' ; string symbol= "EURUSD" ; ENUM_TIMEFRAMES tf= PERIOD_M5 ; bool exact= false ; //--- If there is no bar at the specified time, iBarShift will return the index of the nearest bar int bar_index=iBarShift(symbol,tf,time6,exact);
Trying to convert an mql4 to mql5 breakeven indicator but nothing is drawn on the chart. My mql5 conversion What is wrong ? //+------------------------------------------------------------------+ //| Average Price v3.0.mq4 | //|
I have two custom indicators for MQL4 that both fluctuate with a median value of 0. When I put both these indicators into the same SUBCHART, their respective 0 lines do not overlap. Is there any way to overlap the 0 lines? The pic shows two 0 lines are not overlap. Thank you for your help in
New article Library for easy and quick development of MetaTrader programs (part XXXIV): Pending trading requests - removing and modifying orders and positions under certain conditions has been published: In this article, we will complete the description of the pending request trading concept and
Arbitrage Triangle EURGBP-EURUSD-GBPUSD by Peter Mueller : The EA identifies discrepancies between theoretical and actual currency exchange rates to execute risk-minimized trading opportunities. Author: Peter Mueller
Check out the new article: MQL5 Trading Toolkit (Part 2): Expanding and Implementing the Positions Management EX5 Library . Learn how to import and use EX5 libraries in your MQL5 code or projects. In this continuation article, we will expand the EX5 library by adding more position management
Check out the new article: Overcoming ONNX Integration Challenges . ONNX is a great tool for integrating complex AI code between different platforms, it is a great tool that comes with some challenges that one must address to get the most out of it, In this article we discuss the common issues you
Check out the new article: Neural networks made easy (Part 80): Graph Transformer Generative Adversarial Model (GTGAN) . In this article, I will get acquainted with the GTGAN algorithm, which was introduced in January 2024 to solve complex problems of generation architectural layouts with graph
Buy Sell Close Manual trading EA for trading newbies : [@Buy_Sell_Close] Manual trading EA for trading newbies, EA can be used in backtesting visual mode, EA can also be used in live trading. You can practice your own trading system in backtesting. Author: Hui Qiu
Check Last Closed Trade (Profit / Type / Symbol etc.) : Select the last closed deal (trade) to further work. Author: Hapu Arachchilage Tharindu Lakmal
Detect Fraiday of The First Week of The Month - To Detect NFP Day : This code can detect if its a friday of the first week of the month. It is usually to detect days with NFP. Sone trader dont want to trade at that day. Maybe this code can help some one who need it Author: Agus Wahyu Pratomo
Find Swing Highs Swing Lows : The Swing High/Low Identifier for MetaTrader 5 marks significant swing highs and swing lows directly on your chart with color-coded arrows. This tool helps traders quickly identify key price levels, which can serve as resistance and support, and is ideal for trend
Check out the new article: How to Integrate Smart Money Concepts (BOS) Coupled with the RSI Indicator into an EA . Smart Money Concept (Break Of Structure) coupled with the RSI Indicator to make in informed automated trading decisions based on the market structure. n the fast-paced world of foreign
Check out the new article: Combine Fundamental And Technical Analysis Strategies in MQL5 For Beginners . In this article, we will discuss how to integrate trend following and fundamental principles seamlessly into one Expert Advisors to build a strategy that is more robust. This article will
Decision Colored Candles - MT5 : higher confidence to get into trade Author: Mohamed Hassan Mohamed Hassan Alsherbiny
Check out the new article: MQL5 Wizard Techniques you should know (Part 16): Principal Component Analysis with Eigen Vectors . Principal Component Analysis, a dimensionality reducing technique in data analysis, is looked at in this article, with how it could be implemented with Eigen values and
Check out the new article: MQL5 Wizard Techniques you should know (Part 27): Moving Averages and the Angle of Attack . The Angle of Attack is an often-quoted metric whose steepness is understood to strongly correlate with the strength of a prevailing trend. We look at how it is commonly used and
Check out the new article: Reimagining Classic Strategies (Part II): Bollinger Bands Breakouts . This article explores a trading strategy that integrates Linear Discriminant Analysis (LDA) with Bollinger Bands, leveraging categorical zone predictions for strategic market entry signals. The term
  indicators issue on mt4  (17   1 2)
Hi Guys. I bought some indicators few years ago. Everything was working perfect until about 3 months ago. When my mt4 in not running for few days and when I want to open it, it freeze. I already noticed that when I delete the indicators that I bought from MQL4 then mt4 is opening with no problem. So
Please Guide Me To Programming in MQL4: I Want to Define Selected TimeFrame and Loop for this How to Programming this? is this false? enum ENUM_TIMEFRAMES timeframe [5]= {PERIOD_H4,PERIOD_H1,PERIOD_M30,PERIOD_M15,PERIOD_M5}; for(timeframe = 0; timeframe < 5; timeframe ++ ) { . . . }
Intro. So I have a setup whereby a chart button is displayed on the chart only from which the order was executed from. Within the button, there is text which displays the ticket number, as well as the running profit. The button comes in two parts, the Static Attributes and the Fluid Attributes: the
By the way, you have to keep an eye on him because the minimum stop changes from 2 to 20 and he keeps on placing bets but does not put them in the free flight, they need help him at this point to close the bets in profit! The best time to trade is in a dynamic corridor! this way you gain......! 1
I am using #resource directive for importing a technical indicator . The code on compilation always shows the error "Unknown Resource Type". It would be great if anyone could help me. Thanks in advance
  Elite indicators :)  (15191   1 2 3 4 5 ... 1519 1520)
Hello, Does anyone know where I can find an indicator that takes in price values, which when reached or surpassed will cause the indicator to send a sound alert
Right, I just do not get the logic behind why MQL4 is outright refusing to display the correct order position information on the correct chart, as in the chart with which the order was placed upon. I just do not get why - despite the fact that I have specifically told it to loop through ALL of the
Hey programmers I don't get any further with my simple webrequest to a google drive file, to just pull out a simple word, how the sentiment of nas100 is. ( I always get an 404 Error when trying to access the file over
how to add crypto symbols to meta 5
  HFT bot  (1)
I can’t install my HFT bot on MT4 terminal
I ordered EA multiplied ATR trailing and There is some problem to make it work for me.All seems to be good to go but nothing happening.I believe EA works fine.Looking for someone Who would be able to give me some helpful hand and explain what am i missing or doing wrong about goal i am trying to
I am unable to download any indicators from the market for MT4. When I select download, it will ask if I have MT4 installed then I select the "Yes I have MetaTrader 4 installed" button but then nothing happens afterwards. Please advise on how to resolve this
Hello there, I'm working on the converting the MT5 version of my EA to MT4 version, and it's not reacting the same on MT4. Basically it's an EA to do manual backtest on the strategy tester. As you know the OnChartEvent() function doesn't work on tester, so instead I'm using the OnTick() function to
Hi, I have been trading for a few years, and finally decided to take the plunge and learn more about building Expert Advisors. Playing around in - Bots Builder - has helped a lot. I used it to construct a very basic EA. The next step is adding a License Check Function - where the EA expires after 30
I have contacted the service desk about this issue. This is what I sent them.... Hello, Please either remove the option to download MT4 from your website or fix it so that it does actually download MT4 and not MT5. We are getting sick and tired of answering the same question over and over again