MQL5 Algo Trading community — forex forum for traders and developers

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
Hey everyone I am a noobie here with 0% knowledge in forex, but i have some basic general when it comes to forex as i have been learning as of recent, I was thinking of doing EA bots, and from what i can learn and the process i am thinking of approaching is this, get a MT4/5 Demo account. Get a bot
MQLS website not showing properly in browser and unable to login to my mql5 account in mt4 desktop application
Hi everybody. I just learned to code about EA on MT5. Is there any advice for me? And can you provide structured study tips
Does anyone know how to re-embed the market watch and navigator views into the left side of the mt5 main window? I mistakenly double clicked the title bar of the market watch and navigator windows that were previously embedded in left side of mt5 and this caused those two sections to pop out of the
Is there any correct method to set up expert advisors for prop trading companies
Can anyone advise me please... I cannot download a free indicator from Market. Everytime I try to download, it opens up a previous account on the MT5 platform (also deleted from Win10 apps) instead of the platform I have open. How do I stop the old platform opening please? Thanks
I do not know reason why trades on this signal MATRIX GOLD VIP are not being copied into my account that I used to subscribed to it. I have checked the journal and I could not identify the problem. These trades in the attached picture were not copied into my account. Can someone help me out
Hi ... I'm trading a symbol in TradingView, but not available in MT5, To utilize MT5 machine learning ecosystem, is it possible to create a new symbol in MT5 and import live data from TradnigView for this symbol
Dear Community, I am currently seeking a robust solution to suspend trading activities for risk management purposes across multiple accounts. After thorough research, I have compiled a list of potential options, which I would appreciate your expertise in verifying and refining: 1. Putting the
  Day seams wrong!  (2)
its Tuesday not Monday. this is what looks like in freelancer section. not big deal but i think better to be corrected
When optimizing ea in MT5 strategy tester for the best results for inputs into ea - MA, RSI, TP, SL, Trailing, etc. for the previous 3 weeks (as an example) on Slow Complete algorithm, do optimizations results skewed towards the end of the 3rd(last) week of the optimizations period or results
  "Popular" EAs  (1)
Hello, I wanted to ask, how are EAs in the market sorted, what properties make them "popular", there is sometimes even EA without any reviews on page 1, so what staistics do contribute towards higher score that will push published products to a better position in the popular tab ? Thanks
Hi all!, I've coded an mql5 EA, it works all good in my PC, still when uploading it a test is run and says no trades taken, invalid volume(=0) so wierd, any advice??? thanks
Hi guys how can convert in mql5 this part of code ? ObjectCreate ( 0 , "ViPrimario" , OBJ_EDIT , 0 , 2 , 120 ); ObjectSetText( 0 , "ViPrimario" , "P1" , 10 , "Arial" , clrBlack ); ObjectSetInteger ( 0 , "ViPrimario" , OBJPROP_CORNER , CORNER_LEFT_UPPER ); ObjectSetInteger ( 0
What is the difference Average down forex strategy vs buying coin crypto
Hi! I'm considering to build a portfolio of diversified forex pairs to be traded with an EA, my account currency being USD ( IC markets and Eightcap as brokers) E.g. I'm thinking of EURUSD, GBPUSD as main pairs and AUDCAD, NZDCHF for diversification purposes as an example. Though, wouldn't this
Hi guys, I'm coding a range breakout strategy, and as the title says, I'm having difficulty with the that particular problem
Hi, is there a way to copy a pending order? Without having to open a new order and input the details again. I know it doesn't take very long, but if there was a hotkey or etc to do it fast it would save a lot of time when you do 100's of orders a day
Is there a proper order in which Include files should be loaded? Some special order to prevent conflicts? Why do I ask? I thought something I was reading mentioned it momentarily. I cannot re-locate the reference, but it left a concern in my mind. Any problem with this
Hello I uses below function for calculate lot size in MQL5 for use simple OrderSend (symbol EURUSD_i and Alpari broker). double dblLotsRisk( double dbStopLoss, double dbRiskRatio ) { double dbLotsMinimum = SymbolInfoDouble ( _Symbol , SYMBOL_VOLUME_MIN ), dbLotsMaximum =
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
Hi everyone, i tried to build a mql5 function that close an order by a magic number input. Below I insert the code of the function. void Close_Position_MN( ulong magicNumber) { int total = PositionsTotal (); for ( int i
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
int Consecutive( int Count) { //--- int BB = 0 ; for ( int i = 1 ; i <= Count; i++) { if ( iClose ( _Symbol , PERIOD_H1 , i) - iOpen ( _Symbol , PERIOD_H1 , i) > 0 ) { BB++; } else { BB--; } } //--- return (BB); } Besides using
Hello everyone, I am running a python code to trade on mt5 IC markets and Fusion Markets. I want to know what should I do, where to run the code to have the least latency, currently running the code in equinix NY, where they both have a server but still its slow. It shows 0.5ms in the bottom right
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...
  Volatility Expansion system!  (160   1 2 3 4 5 ... 15 16)
There are so many systems out here based on indicators and it takes so much time to go through all of them to see which one deserves merit,I simply did not feel like adding one more. However most are indicator based and lagging indicators make it difficult to really simplify trading decisions and
Hello, i need create backtest with MA, MACD and Stochastic indicators on daily historical data BTC/USD. I created custom symbol based from EUR/USD and than I changed them to BTC/USD. AFter that I imported the daily historical data to the current symbol. But if I try to make simple backtest than I
Hi everyone, I need support because I'm noticing a problem with my custom indicator. The indicator provides me with a KPI that updates for each new bar. I based an expert on it who, based on the value of the previous bar compared to the current one, must do or not do operations. I had the doubt that
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
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
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
  Forecast and levels for CAC 40  (31   1 2 3 4)
CAC 40 January-March 2017 Forecast: bullish with key resistance at 4924.69 W1 price is located above Ichimoku cloud in the bullish area of the chart. The price broke 4860.85 resistance level to above on close weekly bar with 4924.69 as a nearest bullish target to re-enter. Thus, the weekly price is...
  HFT Stock Manipulation In Action  (125   1 2 3 4 5 ... 12 13)
Trading has a few simple rules - do the opposite of Goldman's Thomas Stolper; don't fight the Fed; and buy low, sell high. However, as this series of charts from Nanex shows, it is the latter rule that is the easiest to comprehend and yet - thanks to massive and obvious HFT manipulation - is an...
I would like to build futures trading mql robot (mostly focus on oil but other commodities interesting also). Unfortunately it's problem to gain hist. futures data, what's necessary for backtesting. So, I wish to ask: perhaps somebody knows where to receive ticks expired futures
Hi, I have recently started learning MQL5 language and all the tutorials are only focused on Forex market. I have been trading Futures contracts(manually) with <Deleted>. So, my question is If i keep learning Mql5 language, will I be able to develop EA for Futures market(with <Deleted>)? Thank you
  Welcome to the new section!  (15   1 2)
Inspired by comments and reviews received from MQL5.community members, we have added a new forum section called "Trading stocks, futures, options and other exchange instruments". Share your ideas and trading experience with the website visitors. Reach out to MetaTrader 5 developers if you have...
  Forecast and levels for Nikkei  (44   1 2 3 4 5)
Forum on trading, automated trading systems and testing trading strategies Press review Sergey Golubev, 2016.12.24 17:18 Nikkei Q1 2017 Fundamental Forecast: Bullish (based on the article) Fundamental Analysis  "The Bank of Japan has been buying stocks for over two years now. And in September, the...
I want to demo Options board on MT5 but cant find ANY one who offers it? Where can i try the MT5 options board? Who is currently demo/ real trading with MT5 options platform? its ridiculous i cant find ANY information on how to actually do it/ who offers it. Its almost as if it doesnt exist/ noone
DJIA January-March 2017 Forecast: long-term bullish; resistance level at 19,987 is the key W1 price is located above Ichimoku cloud in the bullish area of the chart: the price is on testing 19,987 resistance lkevel to above for the primary bullish market condition to be continuing. The price is
Hey guys, So, I have made a very simple EA, which does exceptionally well in backtesting (on some forex pairs. Not all, ofcourse - makes sense). In backtest, it makes approximately 1 trade per day - give or take. Although more forwardtesting needs to be done, it seems to do equally well when trading
Hello, Summary: I have an EA that loads several indicators as resources, and I've been using this EA since last year. My EA has been working correctly in the Strategy Tester until a recent MT5 release (I don't remember exactly which one), when I began receiving resource loading errors in iCustom. I
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
Can you tell me if this is a realistic tester figure? And is this a good or bad result for a year with a deposit of $3,000
Hello, what happened to http://ec.forexprostools.com/ 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
Hi everyone. During coding of my 1st EA, I always found a solution for every issue that appeared and everything surprisingly works well, so far.... till yesterday. I intend to code another of the functions - specifically: Re-entering a trade, if that trade ends on BE or in loss, but only if the
Hi, I'm trying to migrate an expert from mql4 to mql5, but I can't get the ticket of the new position that just opened. In mql4, OrderSend() will return the ticket automiticly, but in mql5, trade.mqh m_trade.Buy only return true or false. Please help me about how to get the ticket of position that
  Suggest
Dear MetaTrader Support Team, Iam Maurice Khalil .. highly value the innovation and efficiency that the MetaTrader platform offers to traders and investors around the globe. My extensive use of your platform has allowed me to deeply appreciate its powerful features, including the backtesting tools
hello, I can't access m_close (an array of close prices defined ) in ExpertSignalMACD.mqh that inherits from ExpertSignal.mqh even though CiMACD which is used in the ExpertSignalMACD needs it , because of applied price of MACD indicator . why in used_series of SignalMACD m_close does not initialize
i understand what the usage of ZeroMemory is. but then i see it was included on TradeRequest SL/TP modification . so, is it necessary to use it on pending order modification? because for each request-result action, the previous one will be overwritten right (cmiiw). all variables in my code will
I have been using AI to create custom expert advisor for my needs, I have provided code below for the custom EA that should send alerts to my telegram channel. There is no error in compilation. This ea sends initial message that "Alert system initiated" to my telegram which means that the API and
Hello! trying to make a VWAP indicator that will update the data based on a anchor point that is movable. Like a vertical Line will appear on the chart and from that line towards candle 0, prices are updated and calculated corectly. The problem that I have is with printing that VWAP line on the
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
Good morning, I have an account that I use to backtest strategies. I have a limit regarding the tester: It only tests 10K combination at a time and it doesn't apply the spread I want to use. I would like to change these settings but I don't know how to do it If someone know the way to changes thoses
Hi there, i'm not a coder and new to this, i am now trying to build an EA but keep getting errors in the below code but i have no idea what's wrong. is it a rare problem or anyone knows how to fix it? Appreciated for the help! //+------------------------------------------------------------------+
Wish all happy beginning of the week. I have following structure and want to use its information in the Indicator Buffer(s). To my understanding indicator buffers are allowed only of 'double' type. Is there any work around to what I want to achieve? struct SFxSession { CENUM_FxSESSION_ID
Hey guys, I have the following problem and it seem I am not the only one. I cannot change the colors of indicators. I can change text in a text field , but if I double click the color fields, nothing changes. No menu appears. It is with all indicators. What is the solution? Thanks
Hi Does anyone know of an order flow volume indicator for MT4 that shows the buyers and sellers within each bar like this one for Ninjatrader?
Hi all, For some strange reason, the buffer wd[i] returns INF indefinitely. Ive normalized the digits but its still giving an INF value. Can someone pinpoint the error in the code? Will be greatly appreciated. Thank you. int i = ( int ) MathMax (prev_calculated- 1 , 1 ); for (; i<rates_total; i++){
This was introduced in a recent update, didn't used to work like this. When I'm debugging, I'm focused on the problem at hand. Filling the screen with variables that are irrelevant to the problem just amounts to noise. I delete all the ones I don't want, but the very next F10 puts them all right
  Tick Indicator and EAs  (244   1 2 3 4 5 ... 24 25)
hi, a cool indicator Tick_on_Chart i all TimeFrames :cool: only Live Tick !!!
I would like to use the classes derived from CIndicator (CiMA, CiStochastic etc) but have had no success. The code below always shows DBL_MAX #include <Indicators/trend.mqh>CiMA extMA;int OnInit()&nbsp;&nbsp;{ extMA.Create(Symbol(),Period(),10,0,MODE_SMA,PRICE_CLOSE);...
Good Morning Please I would like to know what code to type for putting a MA on Stochastic indicator . I want a MA that will be in the second indicator windows with the stochastic indicator. And when the MA will crossover and close below the sell zone or the buy zone of the stochastic indicator it
I'm just genuinely interested in your opinion. What is it which makes an indicator a freebie, and what is it which makes an indicator have a cost attached to it
I'm talking about oscillator based indicators, and by normalization I mean that the plot is in a stable range and the 0.00 level remains directly in the center of the window. My knowledge is limited on this, but I figured out that if you have a plot ranging from a negative value to a positive value
The follow indicator was modified to works in MTF But it makes the graphic slow and freeze Any body have a ideia how to avoid it ? #property copyright "Copyright © 2015" //---- indicator version number #property version "1.00" //---- drawing the indicator in the main window #property
I've seen one for mt4 which I use and it's really nice and simple and even free. Just surprised I can't find the same for mt5. Anyone know of one
For an indicator that was not how it was described I have politely asked the seller ... no response
I have made an indicator that will show me valid highs and lows following a certain logic. But when after a while (maybe some hours) when i have it on the chart it will start to do weird things, draw lines that shouldn't be drawn, or delete certain line without any logic behind it. I have used the
  Everything about RSI  (1460   1 2 3 4 5 ... 145 146)
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
  Indicators: iForexSessions  (58   1 2 3 4 5 6)
iForexSessions : Highlights the Forex Market Sessions (Sydney, Tokyo, London, New York). Author: amrali
Check out the new article: Learn how to trade the Fair Value Gap (FVG)/Imbalances step-by-step: A Smart Money concept approach . A step-by-step guide to creating and implementing an automated trading algorithm in MQL5 based on the Fair Value Gap (FVG) trading strategy. A detailed tutorial on
Trap News MT5 : Script For Trap News High Impact Author: reza rahmad
Check out the new article: Python, ONNX and MetaTrader 5: Creating a RandomForest model with RobustScaler and PolynomialFeatures data preprocessing . In this article, we will create a random forest model in Python, train the model, and save it as an ONNX pipeline with data preprocessing. After that
Check out the new article: Triangular arbitrage with predictions . This article simplifies triangular arbitrage, showing you how to use predictions and specialized software to trade currencies smarter, even if you're new to the market. Ready to trade with expertise? Arbitrage is very curious, it's
Check out the new article: Neural networks made easy (Part 69): Density-based support constraint for the behavioral policy (SPOT) . In offline learning, we use a fixed dataset, which limits the coverage of environmental diversity. During the learning process, our Agent can generate actions beyond
Grid EA Pro : A professional Grid advisor works according to RSI ( Relative Strength Index ) indicators. And has the function of Reducing the Drawdown on the account by overlapping unprofitable orders. The chart displays information about the profit. It can be a very useful tool, For manual trading
New article MQL5 Cookbook: Handling BookEvent has been published: This article considers BookEvent - a Depth of Market event, and the principle of its processing. An MQL program, handling states of Depth of Market, serves as an example. It is written using the object-oriented approach. Results of...
Fast In Fast Out for Fast Money: FIFO strategyWhen all the market movement makes you have lost, This ea makes a good profit with a little profit with many orders in a short time Just on a Candle. Author: Faeze Bakhshayesh
Check out the new article: Developing an MQL5 RL agent with RestAPI integration (Part 3): Creating automatic moves and test scripts in MQL5 . This article discusses the implementation of automatic moves in the tic-tac-toe game in Python, integrated with MQL5 functions and unit tests. The goal is to
Check out the new article: Population optimization algorithms: Binary Genetic Algorithm (BGA). Part I . In this article, we will explore various methods used in binary genetic and other population algorithms. We will look at the main components of the algorithm, such as selection, crossover and
Check out the new article: Building A Candlestick Trend Constraint Model(Part 2): Merging Native Indicators . This article focuses on taking advantage of in-built meta trader 5 indicators to screen out off-trend signals. Advancing from the previous article we will explore how to do it using MQL5
JibrutStochasticV2 Send Stochastic Crossing To Telegram Multipair : Expert Advisor Format Stochastic Crossing and send/notification to Telegram Channel/Group. Save the telegram.mqh file in the include directory. Author: Asep Hendra Gunawan
expert pro : ayoub talha Author: talhayoub
Harmonic AI Pattern : HarmonicEA is an Expert Advisor (EA) developed for MetaTrader 4 (MT4) that utilizes harmonic pattern recognition and RSI-based signals to identify potential trading opportunities in the forex market. The EA is designed to detect various bullish and bearish harmonic patterns
Hello, I recently realized that my code for detecting moving average crossovers was not perfect. Instead, it is the classic code that is generally used by EAs. Here is an example for US30 (backtested in visual mode in order to see the values ​​of the moving averages at each bar opening): - At point
Hello friends, I am trying to run function at the time I need, but function ignoring the given time. bool IsBelowMA() { double Time_S = Hour() + Minute() / 100.0 ; // Ensure the function executes only after Time_Start if (Time_S >= Time_Start) { for ( int i = 0 ; i <
Hello, I am interested to rent the MetaTrader VPS mainly to get Push Notifications from an indicator I developed. I tested it and I get push notifications on my mobile from the MT4 I run on my computer. I would like to now if the push notifications system works over the MetaTrader VPS before renting
Hello, I want to know can MT4 send WebRequest to a server or website directly like MT5 or I need to build a .dll file to do that
I’ve opened and closed traders that I have seen drawdown 5% or so. Why is this not showing when I download the detailed statement of the account
Hi guys im doing this EA but using date, time and timezone confuses me. Can you help me make a function that will return true if its New York Session or return true if its the first 3hours of New York Session? Thank you so much :)
Hello, I'm tryng to show png image on the chart when i do run the EA, below the related script: int init() { ShowImage( "image.png" , 0 , 0 ); return INIT_SUCCEEDED ; } void OnDeinit ( const int reason) { ObjectDelete ( "ChartImage" ); } void ShowImage( string imageName, int xOffset
As mentioned in subject: I've already created two Demo Accounts using Forex.com's "Create a MetaTrader 4 Account". Each time, I receive an email with the following info: ***************************** Username: xxxxxxxx Password: XXxxxxxxxx ***************************** and the following info
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...
I have about four MT4s opened on a dedicated PC with Win 10 OS (no any other programs opened/running on the PC). For some inexplicable reason, the MT4s keep closing after a while without my intervention (I also do not have any EA that is coded to close the MT4 running on the MT4s), and I have to
hi am using a code to draw a horizontal trend line from t1, p1 to t2,p1 (which will draw it horizontally and to the right) . some time i tried to draw the trend line for example : over 90 bars but because of the holidays the trend line will not cover 90 bars.. how to solve this
Hi, since today my mt4 version doesn't work anymore with a EA i purchased from this site. Friday all was working normally, now I'm getting the message : 2023.03.19 22:34:38.360 CAP Strategy Builder EA XAUUSD,M1: array out of range in 'Calendar.mqh' (617,11) It doesn't matter, if I try it on my local
When I select orders with OrderSelect(), the manual says, "Sorting of the resulting list of orders cannot be guaranteed." OK. But can I at least rely on their opening times or ticket numbers? Is it guaranteed that newer ones will always have larger OrderOpenTime() and OrderTicket() values
Hi coders, hope you can help a non-programmer myself ... I have 2 strategies written in 2 EAs. Currently, I load the 2 EAs into 2 different charts but with different coded conditions (same magic), in other words, at any point of time, only one EA is trading and the other EA is in dormant state (both
Hi, I'm trying to build my own EA using EMA. When the program starts it will buy/sell according to the relative position of slow and fast EMA. Then the program should close the trade at the next EMA crossover. My first obstacle was to find a way to calculate EMA at the closing of candlestick, so I