MQL5 Algo Trading community — forex forum for traders and developers
I'm hearing a continuous Boing! sound like every 4 seconds. It started when I loaded up a 24kmarkets.com demo account in MetaTrader 5. Does anyone know what that is? I closed every window, but it's still making a sound
My MT5 accounts disappeared, out of the blue. No warning, no nothing. The email / mailbox files are still in place. How can I have access to the contents of the emails? I see they are .DAT files, but opening them in a text editor doesn't show the content in plain text. What kind of software should I
I'm no getting the code to verify my telephone. I'm also trying to change number but I cannot find how. Can anyone help, please
While developing code in MetaEditor, I accidentally activated MQL5 Storage. After that, the files under the Navigator became invisible. I tried to deactivate it by logging into my account, but I couldn't find the option. How can I disable it or access the related settings page
Hi coders, Can I ask, is all codes written inside OnTimer can be executed if the price got freezed (OnTick is not running cause no tick data coming) ? Thanks
Hi, I have register one account as buyer for buy some EAs, Now i want to sell my EA on MQL5, can i register another account as seller ? I want to separate the seller and buyer accounts. I don't want to violate the relevant policies. What are the requirements for account registration? For example
Hello fellow traders, I cant really find any way to set a certain time for the expiry of an order, ex. A buy stop. Does anyone know how to do this in mql5? Thanks in advance
Help me to connect to MQL5 from within the Meta Trader 5 app. I believe my VPS IP have been spam filtered by MQL5. The trace route commands given by Chatbot show this result. C:\Users\Administrator>tracert www.mql5.com Tracing route to ca.na.web.mql5.com [ 142.215 .208 .239 ] over a maximum of 30
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
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
Hello, Originally, my account had a leverage of 1:1000. I have since changed the leverage to 1:400 via my broker (who confirmed the update is applied). I have also restarted my MetaTrader terminal and logged into my trading account again. However, on the signal page, it still shows the old leverage
How can I get my code to implement the symbol map from input while getting signals from telegram. I want the broker's suffixes to not be an issue. This snippets tries to get the map ready from input during initialization. void init_filters() { string pair[]; StringSplitTrim(tradables, ","
If i publish a utility where the file is compiled as Indicator, would be possible to submit it compiled as EA in future updates, for example if i decide to add trading functionalities? So users can use other EAs while the utility does not provide trading functionalities yet. I was figuring if the
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 everyone, I'm working on optimizing a trading strategy using the Strategy Tester in MetaTrader, and I'm facing some challenges implementing a custom multi-objective optimization algorithm (NSGA-II) due to complex constraints. Specifically, my model has several constraints that make it
hi , anybody tried lag-llama for xauusd trading ? how good it is for trading
Market Condition Evaluation based on standard indicators in Metatrader 5
(2402 1 2 3 4 5 ... 240 241)
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...
Hi I saw a very interesting Strategy from a Professional Trader...and I was looking for a way to receive alerts when this trade setup happens in any cryptocurrency or forex pair, etc.... "The price action compresses and the MACD goes relatively FLAT for a period of 3-15 minutes Second, we observe a
Hello all I have tested many strategies and many other stuff but i did not found them more accurant then basic analysis of the market. i mean,the Price Patterns. 1. harmony indicators : here and here. 2. candelsticks reversal patterns is here. 3. Price Patterns : - Price Patterns
Hi, i am just a newbie in this forex worlds and if you are a newbie too i know what you feel about this forex's game. I'll share two system that you can use to start your trading: ---------------------- 1. KG Trapping System ---------------------- OK. This is how you can use it: a. Download file...
Hi guys, I just start a trading discussion about what the best method to identify trend. We know there are three type of trend: 1. Up Trend 2. Down Trend 3. Sideway. How we identify Trend? Thanks in Advanced
Hello, I am sharing my strategy, which I am using for manual trading, and I am planning to build an EA based on this strategy soon. This strategy works for all currency pairs and timeframes, but the recommended timeframes are M1, M5, M15, and M30. This strategy is currently giving me an 80% win
Hi Guys Realy Great Stuff you are presenting here. I wanted to share this indicator with you. The Indicator is to show the candel sticks reversal patterns. I know that there is 2 or 3 indicators are doing the same as this one. But what I added in this indicator is to recognize the full pattern not
Hi everyone, I'm in the process of designing an EA for AUD/USD, NZD/USD, GBP/USD, and EUR/USD. My strategy enters trades on the 5-minute timeframe (M5), based on EMA50 crossing over EMA200, with confirmation from the 1-hour trend direction (H1 EMA50). I'm setting slippage to 1 pip. Before I go
building trading system - a unified smart solution for simultaneous trading with different strategies
(12 1 2)
The whole point is that you don't have to run separate EAs that trade specific strategies. A centralized solution has many advantages such a system is better risk management between strategies. We can block signals if we detect multiple similar signals. We can dynamically calculate the lot size
Hello, Article : https://www.mql5.com/en/docs/series/iclose iClose, iHigh, iLow, iOpen these values provide the current/Live/real-time candle information or previously closed candle information?. How can iClose value is possible for Current candle because ones the candle is closed, it became
Question: Would you be willing to trade any system or strategy you want on your $10000 account and turn every trade you take into a win trade (of $200 or $20) or a breakeven trade and have only a small theoretical chance of losing let's say $600 in worst case scenario? Some traders would probably...
I'm curious about the effectiveness of a weekly adaptive optimization approach compared to sticking with a single, static rule for EA (Expert Advisor) strategies. Consider an EA that has already been built with one year of optimization. What if we update it every week with slight adjustments based
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
I used to use metatrader4 when I was messing with Forex, but I have funds that I'd like to use out of my stock porfolio to trade one particuarl stock which goes up and down $1-2/day pretty much all the time. I'd like to set metatrader up to say, sell at a certain price, then buy at $2.00 lower, then
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
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
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
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
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
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
SP500 and NASDAQ Indexes are not up to date and have been disabled for some time now. Is anyone else experiencing this
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
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
I can't find a clear documentation about the values returned by the SYMBOL_TRADE_CALC_MODE. Print ( SymbolInfoInteger ( _Symbol , SYMBOL_TRADE_CALC_MODE )); would result in 0 for forex (I guess), 2 for CFDs.. do you guys have faced a similar situation
please create the metatrader 5 python module for linux users. A linux user cant connect to the MT5 terminal since the API is only compatible with windows, make a version that supports linux to so that it can be installed via pip in linux operating systems too, consider everyone please
Please, how I can check if market is open or closed in MT5, I cant find answer. something similar to MT4 - MarketInfo(Symbol(),MODE_TRADEALLOWED) this command doesn't exist in MT5 anymore. Thank you
I'm trying to use the following function to "see" if the last trade resulted in porfit or loss. The problem is: the function is returning "true" whether the profit is positive or not, that is, always returns true. I don't know if i'm using the wrong "get" functions or misunderstood how they work....
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
For me personally I build strategies based off indicators so I follow something like the darwinex multisymbol template posted on github. I have a bunch of enums for deciding lot size, sl and tp based on ATR, new filter enum, and a bunch of functions I copy and paste over for placing trades that have
I've tried multiple methods to detect the stop-out event while running an Expert Advisor in the Strategy Tester, but none have worked so far. The OnTradeTransaction function doesn’t seem to catch it, even though there's an ENUM_DEAL_REASON type DEAL_REASON_SO that should indicate a stop-out. I
I have successfully installed and used the MetaTrader5 package on Ubuntu without any difference on Windows. Here are the instructions. 1. Install Wine with the following command (skip if you already installed) sudo apt install wine 2. Install the MetaTrader 5 platform for Linux according to the
Hello all, on trading view its possible to create currency baskets like the yen basket (JPYBASKET) but on mt5 I'm not sure how to go about this. I have zero experience in create custom symbols other than downloading tick data from dukascopy so I'd thought I would ask if anyone knew how to do this
These are the results of my strategy, both use data based on real ticks of the same currency pair and the same strategy with the same inputs and conditions, the only difference is that the real tick data from one is from Pepperstone broker and the other is from Dukascopy. Would anyone know why they
Hello, I'm sorry if the question sounds a bit dumb. I sought ways to improve my strategy and decided to add Parabolic SAR signals. So I wrote this small class to handle that: class ParabolicSARSignal { private : int handle; // Indicator handle double
How can I set the default value of an integer input parameter based on chart timeframe? For example if loaded in 1min, the default value becomes 123 and for 5min chart it becomes 456
EA works with the Strategy Tester. It also works on real accounts. However, I get an error in the automatic market validation. The error is "strategy tester report not found". What should I do to resolve this issue? The EA is for sale, so the code is private
Hello everyone, I am currently trying to develop a panel that requires aligning text with the right edge of a graphical background layer. I have been using the TextGetSize() function to calculate the width of the text and attempting to position the text by subtracting this width from the right
Hello. When I want to load an EA in mql market, during verification it gives me some errors that give me a headache. The first time it gave me Risk lot calculation, then I modified the code and another error appears with trade opened 0.2 lot. // === Risk lot calculator === double CalculateRiskLot(
Is the some indicator that would display how many points i can tank before i'll get a margin call? (With the current balance i have). Could be good to see it as a stop loss line. Otherwise i'll be happy to know if there is smth similar
In MQL5 what command is used instead SetLevelValue(..)
Hi, Was wondering where I could get my hands on the ADX indicator with color changing when above a certain level
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
In mql5, starting from an indicator, I wanted to make 2 instances of the same indicator, so that the 2 graphs could be presented in the chart. I started by duplicating the inputs, as well as the arrays, properties and buffers. After numerous tests, I only managed to present the first instance of
Dear all, I am trying to write an MQL5 indicator, but the buffers are empty. Additionally, the arrows are logically not shown. Can someone please help me? Here's the code: #property description "Fractals" #property indicator_chart_window #property indicator_buffers 4 #property indicator_plots 4
i'm trying to make an indicator that works on M1, it checks if the minute candle closed above previous hour high or below previous hour low and marks it, it seems i have a problem with getting previous hour high and low, the below code works but not consistent, sometimes it marks candles that did
Something I have been working some time ago. Multi pair MACD Multi pair CoeffOfLine
i used to have multiple moving averages on my chart and it worked flawlessly until earlier today i only have one ma and wanted to add more, but no matter what settings i put into the ma, when i click save nothing new was added, and only the first moving average remains. is this some kind of a bug or
Hi all, I am looking for an Indicator with show Divergence on the macd version i attach below , with a sound alert signal. Can any one programer help out please. Thank you
a nice indicator i think green GBP /red USD se the pic
Can someone convert this ADR or recreate it for MT5 (MT4 Source Code Included)
Can anyone out there advise if there's an MT5 version of this indicator? Even a recreated version with the features highlighted in green (from the MT4 version, for which I don't have the source code) doesn't help—I've been unable to find an MT5 ADR indicator that matches the settings and delivers
Check out the new article: Automating Trading Strategies in MQL5 (Part 16): Midnight Range Breakout with Break of Structure (BoS) Price Action . In this article, we automate the Midnight Range Breakout with Break of Structure strategy in MQL5, detailing code for breakout detection and trade
Check out the new article: Automating Trading Strategies in MQL5 (Part 15): Price Action Harmonic Cypher Pattern with Visualization . In this article, we explore the automation of the Cypher harmonic pattern in MQL5, detailing its detection and visualization on MetaTrader 5 charts. We implement an
PSAR Zigzag (Non lagging) : A zigzag based on the trend change of the parabolic sar Author: Conor Mcnamara
New article Automata-Based Programming as a New Approach to Creating Automated Trading Systems is published:
This article takes us to a whole new direction in developing EAs, indicators and scripts in MQL4 and MQL5. In the future, this programming paradigm will gradually become the base standard...
Ping: A real-time indicator showing the lag of quotes inside the terminal. Author: fxsaber
Know Sure Thing : Know Sure Thing (KST) oscillator indicator based on the rate of price change (ROC) Author: Artyom Trishkin
RiskManager with InfoPanel and Support : My first code on the site, which requires improvement. The idea to create an ideal tool for traders, in the work on the main component of any trading system-Risk Manager Author: Anatoliy Migachyov
BSI Trend and Channel : This indicator shows trend line and channels using the BSI Indicator. Original work of https://www.mql5.com/en/code/13615 Author: Livio Alves
Trend Rider Alert : Trend Rider is a combination of several indicators eg super trend, rsi, and macd to assist in spotting and riding trends by showing direction inform of color candles and also showing trailing stop levels, It can be used independently or with additional filters. Author: Andrew
Constant Range Channel : A simple indicator plotting a channel with a constant range Author: Fernando Carreiro
HLC Trend confirmation indicator : Confirmation (trend) indicator used for lower timeframes Author: Serhad Yildirim
Check out the new article: Websockets for MetaTrader 5: Asynchronous client connections with the Windows API . This article details the development of a custom dynamically linked library designed to facilitate asynchronous websocket client connections for MetaTrader programs. The article
Check out the new article: Developing a Replay System (Part 66): Playing the service (VII) . In this article, we will implement the first solution that will allow us to determine when a new bar may appear on the chart. This solution is applicable in a wide variety of situations. Understanding its
Stoch Cross EA – Buy Below 20, Sell Above 80 (H1) : A simple and effective Expert Advisor based on Stochastic Oscillator reversal signals on the H1 timeframe. Buy signals are triggered when %K crosses above %D below the 20 level. Sell signals are triggered when %K crosses below %D above the 80
BMA or Band Moving Average MT5 : BMA MetaTrader indicator or Band Moving Average — was created by using the original moving average indicator and the idea from one of the site's visitors. The indicator displays itself in the form of three lines: the central one is the standard MT4/MT5 moving average
MarketInfo(Symbol(),MODE_STOPLEVEL) to get the minimum Stoploss or Takeprofit level still error 130
(9)
From the topic u will get fast my problem I'm a beginner EA programmer, this is my first EA pls see my Code I really dont get why its still not working, I mean why do I get still "invalid error" //+------------------------------------------------------------------+ //|
Here it is guys. Check out the ReadMe file thoroughly. I've been using the H1 chart. Updates will be posted here so they are not dispersed throughout the thread. If a zip file has a low number of views, it's due to a recent update, if only in the readme file. Enjoy, Tom
Hello, I'm having an issue getting the correct signal from my indicator. Previously the line of code stated ( if x > 1) and it signalled correctly now i want it to signal if x is between 1 and 2, but the back test seem erratic, I'm using the code below if (x > 1 && x < 2) it seems as though it'll
Hello, I am trying to avoid 6 hours before market close and 6 hours after market close in my EA. i am using SymbolInfoSessionTrade to get opening and closed time of assets. What mistake i am making? extern int MinuteToAvoid = 360 ; void MarketHoursMonitor() { datetime serverTime = TimeCurrent ();
Hi, The attached stochastic is an mtf version that is great. However it does not show interim values on higher time frames when used - it only updates the values on close of the higher time frame values. Could you change it to show higher time frame values in the interim before bar close, during...
Hi, I've tried using several EA's on MT4 and keep getting the attached error message. Any help would be much appreciated. Thaks Steve
Hi all.
I have recently used ChartSetInteger function to programmatically change sub window height (MT4 latest build 830). Once this code is applied to the chart, then I can't change sub window size manually afterwards.
It seems the code fixes the sub window height and even if I drag my mouse...
Guys, Ive been trying to withdraw funds from my MQL5 account and MQL5 frustrating my effort. I created a webmoney account to receive funds and their response was "Our payment provider does not support your region" Please let me know how an international payment system such as webmoney is not
Hi, I am having trouble with the 'market' tab on MT4 after I login to community, I am unable to see all my purchases on my account to download my products I have purchased, and this started occurring after I reinstalled metatrader, but also checked a different installation I have on MT4 on a
The MetaTrader 4 platform update will be released on Thursday , October 14, 2021. This version provides error fixes and platform stability improvements. The update will be available through the Live Update system
Hello, I am trying to achieve two operation, On friday before market close, close all the open trade before X hour and On monday after market open, Start taking new trade after X hour. I am trying like this int MinuteToAvoid = 60 ; void MarketHoursMonitor() { datetime serverTime = TimeCurrent ();
In my indicators, I use OBJ_BUTTON for creating buttons and I have not implemented any custom sounds for button clicks. However, one of my users mentioned that they hear a sound every time they click a button and asked, "Would you please allow users to turn off the sound of the click button?" I
Hi All I would really appreciate some assistance. Fairly new to MT4. I have recently managed to code my strategy into an EA, which is mainly used on indices (DE40, NAS, US30). I ran a backtest on my NAS trading strategy using MetaTrader's Strategy Tester, set to the "Every Tick" model for maximum
Hi, can I use screenshot() to snap the screenshot of an order I just opened in theExpert advisor? If it works, does it work in StrategyTester also, or only live? Also, can I use screenshot() within a custom indicator?
How can I get MT4? Whenever I download the MT4 window setup and run it, it ends up installing MT5. This is confusing as I actually need MT4 to write EAs for my clients

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.