MQL5 Algo Trading community — forex forum for traders and developers

Hi everyone, I want to change information about myself on my profil (name basically) but the field is in grey. How is it possible to modify it ? Thanks, :) GT
For the love of God, can someone help me? xD i've being cracking my head out and can't figure it out. I have an EA, runing in 6 pairs (each running an instace of the EA), and i need a different rand value for each pair runing, each time functions run. code is simple as MathSrand ( TimeLocal ()); int
The Market Watch window provides an overview of price data of financial instruments such as, quotes, price statistics and tick chart. It also provides details of contract specifications and One Click Trading options. At the market watch you can list or hide interested financial instruments and
Is there any way to provide a means of reading the results of the optimized period? For example, I would like that when in 'forward testing', which is the execution of the results from the optimized period in the non-optimized period, it would read the optimized results and only execute those that
Who ever thought this was a good idea? Like seriously? In the old Metatrader platform, if you had selected "buy limit", it will either allow you to click to enter if the market price is above your entry price, or won't allow you to click and the button is greyed out. Basically, you know for sure if
Hello Support, I'm writing to report an issue I've been experiencing since May 18th with optimizing an Expert Advisor using network agents (local network OR MQL5 cloud agents). Since the release of the newest builds (4300+), I haven't been able to optimize using Local Network or MQL5 Cloud agents
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
Hello Traders, I tried to execute the a sell order from the one click trading button, when it failed, I checked the journal and found this error: 2021.09.22 22:39:49.234 Trades ‘X47XX9X0': failed instant sell 7.5 EURUSD at 1.17325 [Request rejected due to absence of network connection] Since the
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
Hi, I did rent an ea from the market and for testing purpose i used to install it on my laptop. now i want to run it on my vps on a demo account but unable to install the ea on demo account on VPS on pressing install it does nothing what is to be done ? Thanks ckm
I am trying to install MT5 in my computer (Windows 7) but it ask me for proxy, but i am not using proxy, how do i solve it
How long can MT5 be used if it is not upgraded? I now hang the EA strategy. I remember that MT4 can not be used without upgrading in half a year, so how long does MT5 not upgrade will affect EA
Hello, I want to get my phone number verified with the MQL5 website.Phone Verification code is not receiving to my mobile number and to telegram web.Please help. I am from Pakistan. Thank You
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
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
What is the difference Average down forex strategy vs buying coin crypto
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
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
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
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 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
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
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
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
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! //+------------------------------------------------------------------+
i have a take profit of " 150 " points but , I'd like to partially close a position if it get 50 points profits then modify the remaining position with a take profit ( 100 points) , here's my code the problem is that the position closes fully at 50 points , i understand why but can't figure out how
Hello, Sorry for the very noob question but I was trying to code with the wizard a VERY easy strategy => if price opens below and closes above EMA200 then take a Long. I'm able to set up the paramters with the wizard, but the only thing I don't see is where to actually tell the wizard/code that the
What is MQL5 Wizard : The MetaTrader 5 Trading Platform includes the MQL5 Wizard , which allows to quickly generate code of an Expert Advisor (Expert Advisor builder). With MQL5 Wizard, knowledge of programming languages is no longer a prerequisite for creating trading robots . In the past, it
Dear traders, Since last week the FTP connection between MT5 and my Edgewonk keeps failing. Although my logins all seem correct, although I don't have an active firewall and/or VPN. Edgewonk helpdesk tells me they don't see/register any login activity from my MT5 server whatsoever. Although I work
I will publish Expert Adviser on the market. During validation, an ‘ordersend error 131’ is returned. There is no problem during live trading or backtesting, but how should I fix this error
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
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
Trap News MT5 : Script For Trap News High Impact Author: reza rahmad
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
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
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
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
CHistoryPositionInfo Class: A class for easy access to the closed position properties. Author: amrali
Check trading day end is reached : This script will detect an end-of-trading day and notify Author: Biswarup Banerjee
Volatility adjusted WPR: Volatility adjusted WPR (Williams Percent Range) Author: Mladen Rakic
Check out the new article: MQL5 Wizard Techniques you should know (Part 19): Bayesian Inference . Bayesian inference is the adoption of Bayes Theorem to update probability hypothesis as new information is made available. This intuitively leans to adaptation in time series analysis, and so we have a
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'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 is about to be switched to the data archive mode. Only Book and Documentation sections will remain on by November. Besides, the entire 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
I am hoping you can help fix my code. I am trying to code a MT4 indicator to indicate a powerful downward bar. No matter what I do, I still get :1 errors, 1 warnings OnCalculate function declared with wrong type or/and parameters line 42 column 6 OnCalculate function not found in custom indicator