MQL5 Algo Trading community — forex forum for traders and developers

i bought an ea and used it on a demo account now there is an activation but i want to refund
Hello everyone, I'm trying to use the CopyTicksRange function and it does not copy any ticks. I'm connected to the FTMO server and I'm able to download the ticks through the symbols menu and also, I'm able to get rates using CopyRates. Here is an example: void OnInit () { MqlTick ticks[]; int
My profile on this site (www.mql5.com) has Favorites page. Is the purpose of this page to keep the site's topics, products, pages that I consider my favorites? If so, how to add anything to Favorites? I couldn't find anything in menus.
  MetaEditor, Open AI and ChatGPT  (64   1 2 3 4 5 6 7)
Forum on trading, automated trading systems and testing trading strategies Test version of MQL5 Copilot in beta 3647 Renat Fatkhullin , 2023.03.23 23:11 In today's beta version 3647, we've included the first version of Copilot, a feature to enhance the editor's ability to write code. The settings
Is it possible within MQL5 to generate a random number between a set starting point and ending point? Let's say I want a random number between 1000 and 2000. How would I do that?
Hello MetaQuotes team, I’d like to formally request a long-overdue feature improvement in MetaTrader 5: Please allow full manual control over vertical (price) scaling on charts — even when Auto Scale is enabled. Currently, MT5 forces one of two rigid modes: 1. Auto Scale ON: The chart always resizes
“Vast sea of EAs, zillion good-looking robots, each promising riches, but leaving traders and investors stranded on the shores of uncertainty.” © My contribution toward: – MetaQuotes analytical tools and metrics for evaluating strategy performance – more transparent and informed trading
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, there is an issue regarding the connection to the server. I am using my demo account with my broker all the time and no issues. then i connected my live account from the same broker and it worked. I received an email from my broker that my EA is making the server unstable. After i fixed this
Hello all, I am newcomer and first programming, please kindly help me to review and correct this code, it is error report after being compiled. Thank you for your helps, #property version "1.00" #include <Trade/Trade.mqh> CTrade trade; int OnInit () { return ( INIT_SUCCEEDED ); } void
  Where Do I start from?  (149   1 2 3 4 5 ... 14 15)
Hi fam! Am a total newbie in the forex niche... Just signed up here on this platform... Please where do i start from? I need help... Anyone willing to put me through?
On Friday, December 13, 2024, the MetaTrader 5 platform update will be released. This update fixes an error in the calculation of triple swaps in the strategy tester, which occurred under certain combinations of testing conditions. Additionally, a number of minor enhancements and fixes have been
We are pleased to announce the launch of our pages on Twitter and Facebook. You can now follow all the latest events in MQL5.community via these popular Social Networks. All the latest news and data on algo trading are conveniently published on a single page on social networking websites. And it's...
I want to register as a seller but I cant remeber the password I used to open the account with. To register as EA seller, I have to complete this account's registration which requires the original password. I have tried 'forgot password' prompt on the login page but thats as far as I can get. Any
does mq allow split projects now
Guys, I have been trading since 2011, I have tried nearly 2000 strategies, I have build almost 2000 Eas and indicators, on this olatform and on other platform, but I have not really found what works, what actually works? and does such a thing exists
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
  Info copytrading  (6)
Hello, I would like to conduct a study on the signals available in MT4 and MT5. For this, I would like to have the data displayed on the website in a .csv or similar format. Is it possible to extract them from the web? Thank you very much
Signals provider broker uses 'XAUUSD.' (with a period) Subscribers broker uses 'XAUUSD' (without a period) According to https://www.mql5.com/en/forum/10773#q13, automatic mapping should make a match on the first 6 characters. However the subscribers MT5 terminal (build 4755) logs "no symbol found"
  Candel Sticks Indicator and Filters  (60   1 2 3 4 5 6)
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
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
  All About Price Action  (38   1 2 3 4)
Dear friends/Brothers/Sisters, I want to start this post regarding Price Action. I want people to help about what I know. Please Respond this post, Share the way you know and learn the way I know. I am not a master but a trader like others and also like to know how others doing. Reply and Keep in...
Hello all, I have been trading the Forex market for 4 years and I need automated trading strategies due to a change in my employment status (and I'm not a very profitable trader and need a change in direction.) I am looking to find out if anyone has past/present experience or considering automated
How can be the best professional developer
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
Hi. I am improving myself in forex. If what I ask is possible, I will ask a coder in freelance section. (If what I say is possible.) I have such a system in my mind: I want to decrease the effect of margin call I want by having 10 different accounts (illustrative purposes only - account number can
  Validation  (3)
Is it possible that in my back test I don't have any errors but when I go to validate a product in the Market it gives me errors that I can't find
  My Own Technic  (7)
I started my journey in trading five months ago. Since then, I’ve studied all kinds of strategies— ICT, SMC, price action, and more— but none of them really worked for me, mostly because of the wide stop losses. Eventually, I switched to a demo account to develop and refine my own strategy. I
  Trading System by Xard777  (3899   1 2 3 4 5 ... 389 390)
Here is a suggestion for a possible trading system... System one is MT4-Xard777.rar and System two is XARD-BOX.rar Enjoy... All the best Xard777
  ASCTrend system  (1331   1 2 3 4 5 ... 133 134)
Some people say that it is the best signal system in the world. It is very famous system and it was developed in the interesting way: Russians recognized this system for MetaTrader some years ago and this western trading system was not very profitable (I am talking about MetaTrader only) but had as
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
  Who are the resistance?  (14   1 2)
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
[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...
  DOM Ladder  (17   1 2)
Hi. How much would it cost to make this DOM?
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
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
  Simple trade automation?  (11   1 2)
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
  Trading Futures  (6)
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
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
  Indexes disabled  (2)
SP500 and NASDAQ Indexes are not up to date and have been disabled for some time now. Is anyone else experiencing this
Hello all, I'm a software engineer with a C++ background and have been using metatrader for a long time. I've been importing chart data into custom symbols successfully however, I lately have been needing to import historic prices; and in this area, MT5 is limited. The issue --seems to-- lie in the
Dear all, I am trying to import historical data (M1) to MT5 from my Tradestation account. I have export the data in csv format and below there are some rows as example: "Date","Time","Open","High","Low","Close","TotalVolume" 1/2/2008,03:01:00,3841.00,3842.25,3840.25,3841.75,184
  Futures Rollover  (1)
does the future contracts on mt5 automatically rollover? Like ES, YM, NQ
Hi I have been trading UNLEVERAGED ETFs on non metatrader broker of Indices (NASDAQ100,S&P500) and Metals(Gold, Silver) . I was always buying .Long The reason for this choice was because no Swap is being charged and I can hold a position for months without much stress. I will now seek MT5 brokers
Hi everyone, I've read some topics on this function, but I'm really stuck with this situation. I wrote two functions to get the takeprofit price and the stoploss price for a position that is already opened manually. Takeprofit and Stoploss prices are calculated knowing the details of the opened
Hi everyone, I have always programmed in mql4, now I am using mql5. I have a problem: I am doing tests for an expert advisor that trades two pair at the same time (spread trading). To use qualitative data, I create custom symbols. However, for example, when I have to test the AUDCAD - AUDCHF pair, I
Hi, within the EA it is simple to get the name of my EA using following code: MQL5InfoString(MQL5_PROGRAM_NAME) But I couldn't figure out to get the version number of the version #property field. Is there a similar way to get the version number? My workaround at the moment is a #define after the...
Hi, I have a problem with margin calculation and would be very happy if someone can help. MT5 build 4885. MetaQuotes Demo Account Netting. Leverage is 1:500. Deposit currency is EUR. If I buy 1 Lot EURUSD all is like I expect: Margin is 200 like I expect. Buying another lot results in margin 400
Right now I'm studying how to use AI to convert my ideas into an EA in MQL5 language. Has anyone had experience doing this? I'd like to share ideas. Currently, I'm interested in using Cursor, QODO, MT5 coder. Has anyone used any of these before
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 guys , i try to return a value of Close[0] in a indicator i am in xauusd and hi have quoatation near 3292.70 but when i print close[0] return 1320.31 0_o why ? my code anyone know why happen this ? //+------------------------------------------------------------------+ //| Simple EMA with Alert
I'm running an "All Market Watch symbols" optimization in MetaTrader 5 using a .ini file via the command line. The .ini specifies a single symbol (e.g., symbol=EURUSD ) and runs without error. However, the XML report that should be generated after the optimization is completely empty — it contains
  EA scams  (68   1 2 3 4 5 6 7)
Does no one check sellers code for scams. For example this guy shows his EAs winning but they only win up until the last upload date and then they lose. He obviously has the data loaded in the EA For example, his program was last updated on 28th february 2023 and you can see the great results before
Hi everybody, How can i draw trend line on the strategy tester chart when my running in strategy tester Thanks
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
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
After some in depth debugging, I realized I've been using CiCustom wrong. The documentation is unclear but by implementation it is now apparent that CiCustom was intended to derive subclasses. Making custom indicator classes is very easy of you use the following pattern. Inherit CiCustom Make a
Hey everyone, Has anyone here struggled with margin calculation issues in MT5? I’ve been facing a weird one for a few weeks now, and it’s driving me a bit crazy. What I'm trying to do: I'm designing a grid system where the initial lot size is scaled such that, in the worst-case scenario (price never
Hi folks, the documentation for copy_ticks_range in the Python API says: "When creating the 'datetime' object, Python uses the local time zone , while MetaTrader 5 stores tick and bar open time in UTC time zone (without the shift). Therefore, 'datetime' should be created in UTC time for executing
Hey erveryone hope you guys are doing well. I got an mlq5 code am trying to fix the deletion logic for invalidated logic but it is failing no matter waht i edit. Tried also chatgpt and deepseek but nothing fixes the issure. i have added candle lookbar, invalidation closes ,alert trigger deletes all
  forecast on Forex  (10)
I'm pretty new to this and reading all the articles and blogs never gives you a straight answer. Always uses words like maybe , on the other hand, if. Its never clear. Does anyone have a good source for news and forecast? Regards Trevor
Hello, I'm trying to send a message to my Telegram bot using WebRequest() in MetaTrader 5, but it consistently fails with error code 4006 . Here's what I've already done: Allowed WebRequest in MT5 under Tools > Options > Expert Advisors Added the URL: https://api.telegram.org/ Restarted MT5 after
See attached for pictures
  need help on mt5 indicator  (13   1 2)
can someone give their indicators source code, cuz i am facing some problems and chatgpt can't solve it, i need an indicator that gives signal so my indicator gives buy and buy stop signal, sometime it's giving wrong buy stop signals, also indicator shows old arrows on the loaded chart but stops
Is there an indicator or plot property to send the fill in the background ? thanks
hello every one, i wrote an indicator which colored some candles red or green based on a special condition. i want to convert it to mql4 , but it seems candle draw function is not in mql4. would you please help me. thank you so much --------
  Fibo & Gann variations  (355   1 2 3 4 5 ... 35 36)
Fibo Levels indicator. Fully forecasting.
void ShowBS( string CodeName, int BarIndex) { datetime targetTime = iTime ( NULL , Period (), BarIndex); ObjectCreate ( 0 , CodeName, OBJ_TEXT , 1 , targetTime, 9 ); ObjectSetInteger ( 0 , CodeName, OBJPROP_COLOR , clrYellow ); ObjectSetInteger ( 0 , CodeName, OBJPROP_FONTSIZE , 8
Hello every one I have 3 problems with offline Charts in MT5 that provide timeframes less than M1, e.g. 5s, 10s, ... . my problems are: 1. When I open these offline charts candles create correctly but there is no bid/ask line in the chart even it's enable in the setting (I have the same indicator in
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
Hi all, I'm programmatically loading a custom indicator using IndicatorCreate() and passing values for the indicator's input parameters via the params[] array. My custom indicator uses input group declarations like " " and "--- Tick Density" to visually organize input settings in the parameters
Plotting arrows a long indicators' buffers on subwindow, which has more than one indicators , seems to be impossible to do it correctly since each indicator has its own scaling/zoom factor, and there is no way to retrieve that scale/zoom factor. Simple code to try it out
  Smoothed Demark  (7)
Anyone have a smoothed demark indicator ? Not the TD, just the standard but smoothed. Could have some use. Many many thanks
  Lines  (1)
Hi. I din't get, or have the horizontal line on the left of my chart. Where can I get it? Adriaan
ZeroLag Stochs true: The Indicator ZeroLag Stochs_true is an George C. Lane’s indicator Stochastic Oscillator (Stoch) with zero delay. Author: Collector
New article Payments and payment methods is published: MQL5.community built-in services offer great opportunities both to MQL5 developers and ordinary traders with no programming skills. But all these features can't be implemented without in-house secure payment system, that provides a convenient
Chaikin Money Flow : Chaykin Money Flow (CMF)" indicator Author: Artyom Trishkin
New article How to Order a Trading Robot in MQL5 and MQL4 is published: With the launch of the "Jobs" service, the MQL5.community became an ideal place for placing orders and providing programming services. Thousands of traders and developers visit this resource on a daily basis, and can easily...
Market Status Info : A script that displays the useful information about the broker, the account and the full specifications of the instrument. Author: Svetoslav Boyadzhiev
Check out the new article: Creating a Trading Administrator Panel in MQL5 (Part IV): Login Security Layer . Imagine a malicious actor infiltrating the Trading Administrator room, gaining access to the computers and the Admin Panel used to communicate valuable insights to millions of traders
Check out the new article: Creating a Trading Administrator Panel in MQL5 (Part III): Enhancing the GUI with Visual Styling (I) . In this article, we will focus on visually styling the graphical user interface (GUI) of our Trading Administrator Panel using MQL5. We’ll explore various techniques and
Check out the new article: Creating an MQL5 Expert Advisor Based on the PIRANHA Strategy by Utilizing Bollinger Bands . In this article, we create an Expert Advisor (EA) in MQL5 based on the PIRANHA strategy, utilizing Bollinger Bands to enhance trading effectiveness. We discuss the key principles
Check out the new article: From Novice to Expert: Auto-Geometric Analysis System . Geometric patterns offer traders a concise way to interpret price action. Many analysts draw trend lines, rectangles, and other shapes by hand, and then base trading decisions on the formations they see. In this
Check out the new article: From Basic to Intermediate: Array (I) . This article is a transition between what has been discussed so far and a new stage of research. To understand this article, you need to read the previous ones. The content presented here is intended solely for educational purposes
Check out the new article: Introduction to MQL5 (Part 16): Building Expert Advisors Using Technical Chart Patterns . This article introduces beginners to building an MQL5 Expert Advisor that identifies and trades a classic technical chart pattern — the Head and Shoulders. It covers how to detect the
Function for checking whether the market is open for trading at the moment by the current symbol : The function can be useful to not overload the server with trade requests at times when the market is closed for trading Author: Anton Iaroshenko
EA Stochastic Bollinger Bands Multi - Timeframe : This MQL4 code implements an Expert Advisor (EA) that trades based on the Stochastic Oscillator and Bollinger Bands indicators across multiple timeframes (M1, M5, and M15). Author: Trap Music
Check out the new article: Price Action Analysis Toolkit Development (Part 24): Price Action Quantification Analysis Tool . Candlestick patterns offer valuable insights into potential market moves. Some single candles signal continuation of the current trend, while others foreshadow reversals
Check out the new article: MQL5 Wizard Techniques you should know (Part 26): Moving Averages and the Hurst Exponent . The Hurst Exponent is a measure of how much a time series auto-correlates over the long term. It is understood to be capturing the long-term properties of a time series and therefore
I cant get the clusters in this EA to update on every tick, sometimes they do. The clusters display sell or buy ticks at each level 3 pips apart (tick volume/10 for space constraints and readability) If the volume in the cluster is below 11, when divided by 10 it is always 1 (eg. 9/10 = 1) (low
Hello guys, I have a very simple indicator drawn in a subwindow, the code of which is below: #property indicator_separate_window #property indicator_buffers 2 #property indicator_minimum 0 #property indicator_color1 Lime #property indicator_color2 Red double val1[]; double val2[]; double dXecn = 1 ;
All lessons of Codersguru: https://www.mql5.com/en/forum/175653 Mql - Metatrader Development Course | www.metatrader.info https://www.mql5.com/en/forum/172885 All Codersguru lessons + questions/replies and so on are on this section Metatrader 4 mql 4 - Development course - Forex-TSD Book: https...
Good morning everyone ... I would like to ask the experts in general if they have news on some utility for mt4 that changes time frames by entering intervals different from those pre-ordained thanks
I am not able to run new optimization test on MT4 backtesting further, as every time I try to run it I get zero results and on the journal it says something like this "There were <n> passes done during optimization". I have searched the interenet and have performed the following without any
Hi, lately i trade a bit the dax. My Broker offers a 5 digit stream and so also on the dax i have 7123.x stream My range of supporting scripts uses 4/5 digit adjustment but fails of course on the dax, because even if the stream is 5digits i am allowed only to set the stops at full pip values. 7000...
Hello, Afther updating MT4 to Build 1440 I have the following problems with the platform and have to stop live Trading. it is not possible to shrink/widen the "Market View" windowsas well as the "Navigator" All buttons in the top bar are Disabled. (You cannot use them) While, when they are working
Hi Everybody. It's probably not the best section of the forum for asking this, but can anybody tell me (or send me a link to a page where it's explained) how the activation process works if I buy an EA from MQL5 to an MT4 platform? Reason why I'm asking is that I would like to buy an EA with a...
Hello, I have a custom EA that works fine in the live market, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell
I have been trying to login to my mql5 account on mt4 terminal (pc) and I’m getting this error. All day.. it’s beginning to piss me off.. I need help please how do I go about this Note: I have changed passwords It’s not my login details
The MetaTrader 4 update will be released on Friday, February 21, 2025. This version provides important security improvements, error fixes, and platform stability enhancements. The update will be available through the Live Update system
Morning, The indicator does not show/render in the live environment. The indicator work perfectly in the Strategy tester. I am using MT4 Version 4.00 build 1441 Windows 10 -------------- Screenshot shows the indicator with total tick volume and the delta for the day. GBPUSD M5 chart. Any assistance
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 to install mql indicators if multiple mt4s on 1 computer, i have pepperstone mt4 platform and fusion markets mt4 platform on my 1 computer, if i have install purchase indicator through mql website and have install those paids indicators on my pepperstone mt4 platform how do i install the same
Hi - for some reason, my MT4 is not compiling. I'd be super grateful if someone could help compile this into an ex4. Any help very gratefully received, thank you. Love and Light //+------------------------------------------------------------------+ //| EMA + Stochastic Trend EA with Customisable
This website uses cookies. Learn more about our Cookies Policy.