MQL5 Algo Trading community — forex forum for traders and developers

Hello, Here's what happened: 1. I got a job in the freelance section. 2. The job went through arbitration. 3. The customer clicked on the "Cancel job" button, and I did the same. The job no longer appears in my track record and doesn't exist in your system anymore. However, the customer was still
  MQL5 VPS  (5)
Hello. Can I eliminate/minimize slippage during high impact news with the use of this VPS
I'm new to the language and I'm facing difficulty using the signal class methods available by default in metatrader5 itself. My intention is to use the standard signals that exist. In the code below the returned value always returns "50". Links
Hy guys! I hope someone can help me with the following problem: How can I reach the same or very close results by testing my EA on tick and 1min OHLC. My EA takes a trade after a specific level has been reached, calculates SL,TP right after and enters the trade on the lasttick.ask or lasttick.bid
  I need to know  (7)
Do the brokers modify your EA's if they have a high win rate on both L&S entries? I had few pulled off the chart cause of this
Hello programmer fellows. To preserve the objects on the chart when the settings of my EA or the timeframe is changed, my EA saves the objects on external files on OnDeinit(), and load the objects from the external files on OnInit(). It works just fine when I change the user inputs or recompile for
Hi everyone. Just wondering on rental extensions. Let's say I've rented an EA for 3 months but a month in I want to extend it after that for another 6 months (before the price goes up further). If I buy the 6 month rental does it just add it on to the 3 so I get 9 months in total or just it start a
Almost everyone who is engaged in social or algorithmic trading sooner or later recognizes the need to rent hosting for their robots or subscriptions. Maintaining stable and uninterrupted hardware operation at home while ensuring minimal delays to the broker's servers can be quite a challenging
Was wondering why Metaquotes never bothers to create a position size calculator for their order tab like the one you find on Ctrader, which is adjustable like the Ctrader one, yes we have EAs but i feel the EAs that have been developed are still inferior compared to Ctrader one, hope Metaquotes will
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
Hi, in below code, struct LL { double price; } LL x; int OnInit () { x.price = 1 ; abc(1); } void abc( int a) { LL tmpLL; if (a == 1 ) tmpLL = x; tmpLL.price = 2 ; } Q1. In above code after calling abc(1) , inside the function abc, is a new object being created
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
Question I - dangling pointer, memory leak in MQL4, is it same as C/C++, in terms of definition and their actual behaviors? Question II - citing William's words [ https://www.mql5.com/en/forum/347811 ], does avoid using `new()` will get rid of most if not all memory leaks? From my perspective n his
Hi Guys, i want to know how to filter a good EA from so many options at this market? Thx
  How to Start with Metatrader 5  (1418   1 2 3 4 5 ... 141 142)
I decided to create this thread to help to myself and to the others to start with Metatrader 5. I am experienced in MT4 and in forex in general (i hope : ) but we traders really need to collect all the information about it in one place. I will make some posts about 'how I am starting with MT5'. :)
Good morning Without being the holy grail, I think it is still a step or two in its direction. Here is my opinion It is practically impossible to fit into a time frame even with a lot of information. Often it's trying to make a decision on 1 bar How to choose a bar among many others? I think the
  Does a safe Martingale exist ?  (198   1 2 3 4 5 ... 19 20)
Hi, With this topic I would like to contribute in a very serious way to the world of the martingale "believers". For those who don't know me or doubt my intentions google on "fxigor". So I hope with this topic that I can make a new wind blowing in martingaling. Let me first answer the question to...
As from the title, I mean which method has the best ratio safety/profitability for you (support resistance based, atr based, range based, time based etc etc.) Share your opinion...
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...
Maybe someone can help me
hi I would like to know if there is a good strategy when forecasting highs and lows (ohlc), any links that can help
Good day dear forum members. After reading the forum a bit, I came across several threads on arbitrage and pair trading . Judging by the threads, some are interested and some are trying it. I used to dabble in this topic a long time ago, but my knowledge was not enough. Now I am a complete mess in
  Brainwashing System / Asctrend System  (260   1 2 3 4 5 ... 25 26)
This is the thread about Brainwashing system. We will start with original version of this system and will improve it later. ========== Just something about the history. There are 3 famous signals system (manual trading systems based on signal indicators): Asctrend, BrainTrend and Brainwashing. First
I study correlation pairs and hedge strategy. 2 pairs hedges are difficult to get profit. Does 3 pairs hedge system really work or not? example USDCHF EURUSD EURCHF BUY BUY SELL / SELL SELL BUY Please suggest me some useful hedge system.I want to code it as EA
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
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
  PriceChannel Parabolic system  (313   1 2 3 4 5 ... 31 32)
Some people asked me on the other forums about re-enter. But I am not using any indicator for re-enter. So I decided to create some simple trading system with re-enter based on indicator's arrow on the chart. Let's name it as PriceChannel Parabolic system. M1 timeframe. This is image for EURUSD for
  Elliot Wave Indicators  (222   1 2 3 4 5 ... 22 23)
request Wave Indicator or Elliott Wave --
Good morning I'm handing over my post, obviously there have been some problems The question was quite simple How many phases have you defined for your trading? I have 5 Range Start of trend Full trend Weakening Counter trend
  Suggestions for Trading System  (139   1 2 3 4 5 ... 13 14)
Same idea as with other: if you have a good idea for a Trading System? Post here and we will develop it (all ideas will be evaluated first).
hi all every broker has a limited global stock of major or popular companies do you have any idea if i can find any broker uses mt4/5 demo/real account which provide more range of us and europe stocks. and etfs and it will be perfect if its charts have a premarket or night prices as i just want to
Hello all, This topic is extended to those who utilise algos or trade manually. I am looking to gain an insight from traders who have maybe migrated from CFDs to trading futures, or perhaps those who trade futures alongside CFDs. I would like to know your "why" - is it due to portfolio
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
Fellow hobbyists, please advise where to find an exit to the NYSE via mt5
  Options Trading  (2)
Hi, Is there any way to access Options Trading in MT5 Platform
Hello all, I have a few questions for anyone with knowledge and/or experience trading futures. Any input would be greatly appreciated. From experience scalping in live market conditions, how does slippage and spread compare to trading CFD in markets such as FX? Is there a notable difference, and
Forum on trading, automated trading systems and testing trading strategies Press review Sergey Golubev, 2016.12.25 06:50 Hang Seng Index Q1 2017 Forecast (based on the article) "Underlying sentiment surrounding Hong Kong stocks has remained negative with underlying concerns surrounding...
How to display extended hour prices on the chart and for the EA? There are large price variations between the end of regular hours and the start of regular hours for a stock. We don't see these variations so my EA and almost all EAs designed for stock trading can't track movements and trends well
I'm trying to figure out if I can have a list of all my trades for the same utensils separate rather than one bulk position in the tool box/terminal box. Is this even possible? Thanks
Bitcoin vs USD January-March 2017 Forecast: key resistance level at 850.15 to be broken for the bullish trend to be continuing Weekly (W1) price is located above Ichimoku cloud in the bullish area of the chart. The price is on ranging within the following support/resistance levels: 850.15...
  Forecast and levels for S&P 500  (474   1 2 3 4 5 ... 47 48)
S&P 500 January-March 2017 Forecast: long-term bullish ranging within the narrow s/r levels for direction W1 price is located far above Ichimoku cloud in the bullish area of the chart. The price is on ranging within the following narrow support/resistance levels for the bullish trend to be resumed...
On which MT5 platform can I find the S&P 500, Nasdaq, and Dow Jones index? It's not the type of CFD, it's the real S&P 500, Nasdaq, and Dow Jones indices on the exchange
how to know which of the trade/stock has the highest volume/most gain
  Forecast and levels for Dax Index  (76   1 2 3 4 5 ... 7 8)
Dax Index January-March 2017 Forecast: flat within bullish with key resistance at 11,649 W1 price is located above Ichimoku cloud in the bullish area of the chart. The price broke 11,485 level to above on close weekly bar with 11,649 as a nearest bullish target to re-enter. Thus, the weekly price is...
The indices market is extremely slow these days and I'm not seeing many trading opportunities... The VIX is at 12.25 right now, what do you do when VIX is this low? Do you switch to other markets or do you just take a break? Also curious about Forex traders, are you seeing a similar problem
  MQL VPS Service  (7)
Hi, I'd like to have few infos about how that service work. I found it very convenient as you can set it up on the fly with no login on a server etc. But ... The terminal I used to sync it on : Once migration done, is it still connected on my side ? If it's still connected do I have to...
Hello I have this problem, can someone helps me to fix it? Thanks
Hi I am a newbie who doesn't know how to write the code properly and found this kind of error using ai, please help fixing this I am hopeless TT Error logs & MQL5 Respectively Description File Name Line Column 'SELECT_BY_POS' - undeclared identifier Lastone.mq5 168 29 ' OrderSelect
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
Hi, is there a way to let a bot trade looks like a manual trade in mql4 and/or mql5? Somebody told that there is a "self" or "shelf" attribute when you place a trade with an EA but I didn’t find anything a out that. Thanks for any hint
Hi Everyone, I am having issues with the method PositionSelectByTicket (ticket_id); After I open a new position (ctrade.Buy) and a few lines later call bool res = PositionSelectByTicket (ticket_id); it returns a false. But the position is sitll there and it is visible in the table. Any ideas how I
  Canvas is cool!  (948   1 2 3 4 5 ... 94 95)
I set myself a task: to demonstrate the capabilities of custom graphics via CCanvas class in a short code. Here's what came out of it. This script works in both MQL5 and MQL4. But it is much faster on MT5. Each frame is unique and does not repeat, i.e. the script is not cyclic. #include
hi. I have error in my expert. you can find my codes and errors in below. please advice me. thanks. //+------------------------------------------------------------------+//| crossma.mq5 |//| Copyright 2020, MetaQuotes
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
A must ! Before using it or asking any question : please read the Online Help (Also accessible by F1 on your MT5 platform) Strategy Tester For Traders General overview of the possibilities. Overview of results : Visualize a Strategy in the MetaTrader 5 Tester The general information about
this is the MQL5 code I use: //+------------------------------------------------------------------+ //| Socket.mq5 | //| Copyright 2024, Javier Santiago Gaston de Iriarte Cabrera. | //|
I've had some code that has been working fine on a demo account ever since I wrote it 9 months ago. Using MT5. I recently moved to a funded account (live) and have run into issues. Here a snippet of my original code where I located the issue is occurring, that was working fine on demo okay. I'll
Hello All, I'm sure the answer is buried deep within this forum and I have attempted to look just didn't find anything I might be able to use. Well any ways. Here is what I am trying to do. Basically once an order is closed I want the take profit booleans to be set back to false that way the current
Hello. I have a program that opens a position with a higher lot size if there's a position open and it aims to multiply based on the lowest lot size but I'm having trouble getting the lowest lotsize. Please help double getLowestLots(){ double lowestLots = 0 ; for ( int i = 0 ; i < PositionsTotal
Is there any function to return the day of the week of today? Like: Sunday, Monday, Tuesday
Hi, I'd like to use my Mt5 custom indicators also on Mt4. They compiled with 0 Errors on Metaeditor 4, however, when applied to a Mt4 chart I get the unspecific error message: "indicator on custom buffer is not supported yet" What does that mean? Thanks, Tim
  RSI MAKER  (3)
I want my indicator to mark all bearish candles that have RSI below 30 and all bullish candles that have RSI above 70. I'm not sure where the issue is. //+------------------------------------------------------------------+ //| RSI_Marker.mq5 | //|
  Moving Average  (1547   1 2 3 4 5 ... 154 155)
Post all MA indicators here
hi guys . I'm new in indicator and English language too.I've tried to convert an indicator from MT4 to MT5 . i downloaded an include file ("<mql4_2_mql5.mqh>") to make my work easier . this is my code that give me "array out of range in Line ( 171:18 )" error will you help me to solve my problem
hi this code is mql5 script and print the ma value of D1 period and work as it expected: void OnStart () { int mahandle; mahandle= iMA ( NULL , PERIOD_D1 , 1 , 0 , MODE_SMA , PRICE_MEDIAN ); double mavalue[ 1 ]; CopyBuffer (mahandle, 0 , 0 , 1 ,mavalue); Print (mavalue[ 0 ]); } but same
Dear Fellow Members The documentation says: ERR_INDICATOR_WRONG_HANDLE 4807 Wrong indicator handle I have included following check, but still in live chart I get error 4807 though none of handles return no error: if (mHandleFast == INVALID_HANDLE || mHandleMid == INVALID_HANDLE ||
can anyone help with this datetime time6= D'2024.07.10 07:15' ; string symbol= "EURUSD" ; ENUM_TIMEFRAMES tf= PERIOD_M5 ; bool exact= false ; //--- If there is no bar at the specified time, iBarShift will return the index of the nearest bar int bar_index=iBarShift(symbol,tf,time6,exact);
Trying to convert an mql4 to mql5 breakeven indicator but nothing is drawn on the chart. My mql5 conversion What is wrong ? //+------------------------------------------------------------------+ //| Average Price v3.0.mq4 | //|
for ( int i=start; i<rates_total && ! IsStopped (); i++) { ExtSignalBuffer[i]=( low[i]-open[i])* 1000000 ; if (open[i]-close[i] > 0 ) // in case bear indicator_type2 [i] = clrAqua ; //change color ExtSignalBuffer[i]=(low[i]-close[i])* 1000000 ; }
I have two custom indicators for MQL4 that both fluctuate with a median value of 0. When I put both these indicators into the same SUBCHART, their respective 0 lines do not overlap. Is there any way to overlap the 0 lines? The pic shows two 0 lines are not overlap. Thank you for your help in
Equidistant ChannelStandard Deviations ChannelLinear Regression ChannelAndrew's Pitchfork (let it be too)Another channel. Will write about it in the commentsNoneI do not have an opinion on the topicI just want to see the answer
Here's what I see when I start the MT5 terminal, also when its running but my internet connection is interrupted. The indicator plot shows briefly (subsecond) and then disappears: All I need to do is switch the timeframe of the chart to anything and then back and the window shows up like it should
Hi Not sure if this question is in the correct topic area. If not apologize for it I have a small script (NOT EA) and would like to apply chart templates when a change occurs. In the end I even tried FUL path yet I keep getting error 5002 (sometimes 5019) string templateFolder =
Hi. I've created a new indicator with MQL5 by using the wizard. I need three buffers for my logic, but only the first one is created. This is my code: #include <MovingAverages.mqh> //--- input parameters input uint ShortInterval= 10 ; input uint LongInterval= 30 ; //--- indicator buffers
Check out the new article: SP500 Trading Strategy in MQL5 For Beginners . Discover how to leverage MQL5 to forecast the S&P 500 with precision, blending in classical technical analysis for added stability and combining algorithms with time-tested principles for robust market insights. A list of the
Check out the new article: Developing an Expert Advisor (EA) based on the Consolidation Range Breakout strategy in MQL5 . This article outlines the steps to create an Expert Advisor (EA) that capitalizes on price breakouts after consolidation periods. By identifying consolidation ranges and setting
Breakout Martin Gale Expert Advisor for MT5 : This is an mql5 Expert Advisor trading the breakouts and using Martin Gale risk management. Author: Peter Mueller
Raymond Cloudy Day For EA : Raymond Cloudy Day For EA, a revolutionary trading tool created by Raymond and expertly developed for the MT5 platform. This innovative indicator integrates a cutting-edge calculation method with advanced algorithms, surpassing traditional Pivot Points to enhance trading
Check out the new article: Understanding Programming Paradigms (Part 2): An Object-Oriented Approach to Developing a Price Action Expert Advisor . Learn about the object-oriented programming paradigm and its application in MQL5 code. This second article goes deeper into the specifics of
Hacking objects in an EX5 : A demonstration on how to modify objects in an indicator without having the source code Author: Conor Mcnamara
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
Check out the new article: The Disagreement Problem: Diving Deeper into The Complexity Explainability in AI . Dive into the heart of Artificial Intelligence's enigma as we navigate the tumultuous waters of explainability. In a realm where models conceal their inner workings, our exploration unveils
News Detector for both Mt4 and Mt5 : One code that works for both Mt4 and Mt5 combined. Salient features of the code: -Filter News by High, Low or Medium Volatility -Filter By currencies -Filter by News Keyword -Auto GMT offset check -Dashboard to show upcoming News (Can be enabled or disabled)
Check out the new article: Sentiment Analysis and Deep Learning for Trading with EA and Backtesting with Python . In this article, we will introduce Sentiment Analysis and ONNX Models with Python to be used in an EA. One script runs a trained ONNX model from TensorFlow for deep learning predictions
Reporting Memory Leaks in Strategy Tester : Monitoring of memory leaks in the strategy tester Author: Dr Matthias Hammelsbeck
DPO - MA modified : change of MA curve to horizontal line and DPO curve shall represent the distance from close price to zero level (or MA curve) Author: Mohamed Hassan Mohamed Hassan Alsherbiny
Check out the new article: Reimagining Classic Strategies in Python: MA Crossovers . In this article, we revisit the classic moving average crossover strategy to assess its current effectiveness. Given the amount of time time since its inception, we explore the potential enhancements that AI can
Check out the new article: Portfolio Optimization in Python and MQL5 . This article explores advanced portfolio optimization techniques using Python and MQL5 with MetaTrader 5. It demonstrates how to develop algorithms for data analysis, asset allocation, and trading signal generation, emphasizing
New article Websockets for MetaTrader 5 has been published: Before the introduction of the network functionality provided with the updated MQL5 API, MetaTrader programs have been limited in their ability to connect and interface with websocket based services. But of course this has all changed, in
It has been a week now since I Cannot login to MT4 mql5 community. But if I login to www.mql5.com website, there's no problem here are my screenshots
Hi, I've been studying and coding EAs and scripts for a few weeks so I'm fairly new to MQL language. I felt a necessity to code an EA that creates a close button for every open position directly on the chart and at the right most corner of the screen, near the price level of each particular position...
[Deleted]
Hi Guys Please assist if you can. I'm new and can't get my head around this one. I have small account that I'm playing with just to get the idea of whats for what but I'm in a small dilemma at this stage. The account balance are 156 odd $ and my equity are still at 126 odd $. Free margin shows -86...
  Elite indicators :)  (15190   1 2 3 4 5 ... 1518 1519)
Hello, Does anyone know where I can find an indicator that takes in price values, which when reached or surpassed will cause the indicator to send a sound alert
I have been trying to login to my MQL5 community on MT4 to download an expert advisor from the Market, but it gets stuck when I click on Login. I'm using Dipgate VPS with Chrome as the default browser on Windows 10
//+------------------------------------------------------------------+ //| 5MinTrader.mq4 | //| Copyright 2024, MetaTrader 4 | //| https://www.mql4.com |
  indicators issue on mt4  (11   1 2)
Hi Guys. I bought some indicators few years ago. Everything was working perfect until about 3 months ago. When my mt4 in not running for few days and when I want to open it, it freeze. I already noticed that when I delete the indicators that I bought from MQL4 then mt4 is opening with no problem. So
Hello Friends, I want to be run MT4 Script on every 10 seconds repeat. Here is the code. Please help me, many thanks. //+------------------------------------------------------------------+ //| Shadow SL n TP.mq4| //|
  Traders joking, the beginning  (7313   1 2 3 4 5 ... 731 732)
They say that an average trader can work for about twothree years. Then he has enough money to buy Ferrari and spend the rest of the money on psychoanalyst and antidepressants. Well, drive your Ferrari and save the rest of the money by reading our next column. Making money is one of the funniest...
Hello, suddenly, I cannot install MT4 on my PC anymore. I am using Windows Server 2012. When I try to install I get the message "Sorry, something went wrong: Please try again later". I tried he setup.exe from 3 different brokers. All the same error. MT5 terminal installs without any problems. Does
Here is a step by step guide for buying, installing, testing and using a Metatrader 4 Expert Advisor (Robot, Bot are whatever): 1. First make sure that you have the necessary funds required for your purchase in your MQL5 account, its always easier to pay with your MQL5 balance, than using a credit
I want to add different color to text that is in same line, in a single ObjectSetString , For Example If the string is like this: This is Total Profit / Loss: $250 / -$20 Then I need to show like This is Total Profit / Loss: $250 / -$20 $250 => in Green color and -$20 => in Red color Is this
  News Trader EA  (1270   1 2 3 4 5 ... 126 127)
This is News Trader EA created by Igorad. Besides, we may use this EA to draw the lines with text on the chart when the news coming. Explanation of the settings and how to use this EA you may find in the next posts. ---------------------------------------------- Version 2. - Please find attached the
Hello, I am new here and new to MT4. I had several active charts with active EAs attached to them and their information windows were all visible. All of a sudden most of them disappeared but the EA name and the smiley face are still there, I can't for the life of me get them back. I even went as far
  Slow terminal  (3)
My mt4 terminal is so slow that it crashes, Sometimes i can close it with the task manager only. I uninstalled the program and reinstalled it, but it comes back as I deleted it. How can I speed up this very slow terminal? Or I can delete it completely, to reinstall it of course. Thanks for help