MQL5 Algo Trading community — forex forum for traders and developers

Good afternoon, everyone, I know that there are machine learning and statistics enthusiasts on the forum. I propose to discuss in this topic (without holivars), share and enrich our own knowledge bank in this interesting field. For beginners and not only there is a good theoretical resource in
[Deleted]
Dear all... Searching for a way to get different market data from the same Metatrader installation simultaneously, I have found this (https://www.metaquotes.net/en/company/news/5224). There is a Market Data Subscription service. I have tried to find more about it, without any success. Metaquotes
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
I have learned a lot about MQL5 storage. I like it very much. I used to use revision of my repository in the code when I use local SVN. I'd like to switch to MQL5 storage. I don't know how to get revision with MQL5
Hello Guys iam a new Trader and i learned the Supply and Demand strategy it worked fine 2 Times but still it takes too long, i trade it on 3m 5m 10m Timeframe but still it takes too long am i doing something wrong? Today i drawed an Demand line at 13:00 ( 1 PM ) and till now as iam writing this post
I have and EA being built and the freelancer can't resolve a problem. It works well in hedging accounts for CFDs, but on netting-furures contracts it presents the following mistakes: In MYMU21-most active contract, live demo: 1 - Although N value (ATR*tick) is correct and lot size shows correct
  How to delete account  (15   1 2)
I want to delete my account and I have no idea how to do that. The tech support on this platform may as well not exist, so can anyone tell me how to delete my account? The reason that I wish to delete my account is so that I can set up a real trading account. Currently when I attempt to do so, I get
I've subscribed mt4 signal for next 3 months and  when 30/4/2017 signal will be 2 month left. So If I dont want to use this signal anymore, Can I refund for 2 month that i paid before? Thanks,
This thread will discuss undocumented methods of working with the mql5 language , examples of solving certain problems. It would be desirable, that this branch on the maintenance was closer to FAQ, than to discussion. I suggest that all experienced programmers share their solutions and programming
Hello, I have a problem with MT4 and I can no longer log in. I have already reinstalled, restarted VPS, deleted community folder, etc. without success. Please help ! It works with METATRADER 5 but I only have MT4
When I go to create a new signal I get this message Your application has been rejected Sorry, your application has not passed automated checks and has been rejected. You have correctly filled the required data, but the Verified User status could not be granted to you for security and service
Hello. Does the percentage shown include deposits made throughout the signal
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
This function should return the highest price between the last two closed trades, i.e. from the open of the second last trade to the close of the very last trade. I don't know where I am going wrong. Help me out. //Returns highest price between the last two closed trades double Highest_Price(){
hi guys i ve got problem today . my pending order isnot active today. i couldnt set any pending order!!!! any body have an idea how to active this feature
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
  Mr.Nims, Renko Ashi Scalping System.  (3550   1 2 3 4 5 ... 354 355)
Renko Ashi Trading System 2 Please read the pdf manual for this system. Good luck everyone. PS: Reuploaded the fixed ma in applied price indicator. Special thanks to FXchaser PS: Reuploaded the fixed macd alert indicator. Special thanks to Puzzlebird PS: Reuploaded a Special Settings Template for...
hi I would like to know if there is a good strategy when forecasting highs and lows (ohlc), any links that can help
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...
Hello, I want to copy the signal but whiles I find it on the MQL5 website, it is not on my list of signals of the MT4 Terminal. There are copiers of that signal so it should be available somehow. Does anybody know how to copy that signal ? May be one of the subscribers ? Regards, Stephan
I have a question. As it possible to make backtesting strategy for the past I am wondering if its possible viceversa. So that you put trades in and take out the strategy? Thanks for ansvers
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
Hello, i'm trying to build an EA. When I run it works as coded, the problem verify once the condition for Long or Short position are met. Let me explain deeper, when the price met all the conditions to open a Long/Short position the EA open the position, when the price hit the StopLoss or TakeProfit
Trading and training video (from youtube for example) about forex and financial market in general.  thread for April 2013 - look at this thread,  thread for May 2013 - look at here,for June 2013 is here.July thread 2013 is hereAugust thread 2013 is this oneSeptember thread 2013 is hereOctober thread...
SMC (The Smart Money Concept) is different way of market analyzing. I have a SMC strategy which is similar to the bellow example. All I want to know is can I code this thing into an EA or something else to trade automatically? I'm curious to know what is that technology / coding method. Honestly
Whenever I backtest, I look for the result with the higher (Profit / max drawdown) ratio. But in the optimization results tab there is no such a criterion, so after every backtest, I export the result as a spreadsheet and do the calculations there. I'm backtesting on a free EA, so I don't have
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
Hello! I need a program that opens a position when the candle closes below or above the line placed on the chart. For example: if you close below or above the neckline of a double top or double bottom, you open a position. Simply put, a pending order to close the candle. Main points: - Work on
Basically I am a beginner at coding but I am working at EMA price crossover EA whereas 1. if price of current symbol crosses above ema ,an alert is triggered as well a buy stop pending order 2. if price of current symbol crosses below ema ,an alert is triggered as well a sell stop pending order. 3
Hi, I'm coding an EA that need to read the past trades, I'm using the function HistorySelect() to read them. But as I could see from other users on the forum, the HistorySelect() feature slows down the backtest and execution of the EA a lot. I would like to select a historical period from
  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
how to know which of the trade/stock has the highest volume/most gain
  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
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
  Welcome to the new section!  (15   1 2)
Inspired by comments and reviews received from MQL5.community members, we have added a new forum section called "Trading stocks, futures, options and other exchange instruments". Share your ideas and trading experience with the website visitors. Reach out to MetaTrader 5 developers if you have...
  Forecast and levels for Nikkei  (44   1 2 3 4 5)
Forum on trading, automated trading systems and testing trading strategies Press review Sergey Golubev, 2016.12.24 17:18 Nikkei Q1 2017 Fundamental Forecast: Bullish (based on the article) Fundamental Analysis  "The Bank of Japan has been buying stocks for over two years now. And in September, the...
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
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
  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...
I have recently started using MT5 and am a US resident but I am having difficulty finding a broker that supports MT5. Is there a way around this? I have heard some people using Tradingview and pine connector but looking for the best way to setup MT5 with a US broker. If anyone can help it would be
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
I currently running an optimization and in task manager I saw that not all my cpu cores run at maximum is there a way to make it run at full speed
Hello, i am getting the below when publishing my EA, it fails validation, i tried with many lot sizes. can you help please test on EURUSD,H1 (netting) 2019.04.18 11:00:00 failed instant sell 0.1 EURUSD at 1.12706 sl: 1.15714 tp: 1.12514 [Invalid volume] 2019.04.18 11:00:00 failed instant sell 0.1
昨天说过,黄金已经可以开始尝试右侧空头进场,而确实昨日黄金也出现下跌,在前期强支撑2324获得反弹,但是反弹力度并不大,今天还是以做空为主。 放弃一切反弹利润,争取一切回调利润,上方压制关注以下三个点位 2343 2353-2358 2363 这里不建议做2324的破位空,因为下方2319/2320为一支撑,2317为日线中轨,均可能存在反弹。
Hi, So i'm trying to build a scalping system that watch the market in 5 minutes timeframe and execute trades based on simple algorithm, until here its all okay (I hope so), but when it comes to lot size its a bit tricky. The formula i calculate lot size is: willingToSpend = accountValue * .01 //
Hello everyone, I am encountering a problem with the backtests of several Expert Advisors (EA) on MetaTrader 5 using the Libertex broker. I have found that neither the EAs I have developed nor the ones I have downloaded (even those highly rated on the MQL5 market) execute backtest trades, while the
I coded an expert advisor. it's works on indices, not in currency pairs. but in the verification process, it only be tested on EURUSD pair. which 100% have issues when the EA operation. is there any method to process this EA for a indices
Hi Everyone, It's my first post here. I am not a developer and I tried to ask CHatgpt and different tools for help in creating the code (hopefully I will learn the MQL5 and write on my own some day) . Could you pls help me with checking why I get some syntax errors? I gave up.... initial scope: I
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 someone help me, I would like to sell my EA on the marketplace but it is not passing the rigorous inspection. Is there anyone who is experienced with helping others pass inspection
  Roffild's Library  (49   1 2 3 4 5)
https://github.com/Roffild/RoffildLibrary Please do not delete or move this topic.
I need to create a custom Demo version for my EA., so I used the OnTesterInt(); function and update a flag if the EA was loaded to strategy tester. but the code doesn't works as expected. What I did wrong here?. bool OnTeseter = false ; int OnInit () { if ( TimeCurrent () < ExpireTime) // If
static matrixf x_norm2m(SAMPLE_SIZE1, 4 ); // matrix for prices normalize //--- request last bars if (!x_norm2m. CopyRates ( _Symbol , _Period , COPY_RATES_OHLC , 1 ,SAMPLE_SIZE1)) { Print ( "CopyRates error" ); ExtPredictedClass=- 1 ; return ; } // Ahora puedes
Hi, is there an easy way to get the ticket number of a Deal IN knowing a Deal OUT ticket? Given a Deal OUT ticket, how can I get a Deal IN ticket? Thanks
This is a thread for Metaquotes. It's quite weird that the forward test results are not saved anywhere or at least is not displayed to the user under some probably unknown circumstances. If for some reason I need to go back to old tests to get the forward results, I need to run the optimization all
  Need help indentifying indicator  (2703   1 2 3 4 5 ... 270 271)
sisi: Hi,Mr. Guru could you please help me to constantly refresh an ea after each tick movement. I have tried everything, But I just can't make it refresh constantly. What lines of code must I insert to keep an ea and indicator refresh after every tick? Tnx I hope you could attach your EA so...
[Deleted]
  Multi-indics indicator  (469   1 2 3 4 5 ... 46 47)
Hi there, I come to present an indicator to you which I created and who could be useful to some people here. If you are interested, I would be happy to share it. You can see it attached below. Let me know what you think about it and i will be back with the code and instructions. For the moment, the...
Hello everyone, I m looking a good proven indicator for buy/ sell GOLD AUXUSD on 15 minutes and 1 hour time frame for Metatrader 4 (platform Vantage/ Puprime) One for manual trading and one for automatic trading. So 2 different ones. Do you have experience with one ofh these
Hello, Can anyone kindly add push notification alert when price cross below or over on previous day closed on bar closed? Appreciate your kind gesture. Thank you. D
Here I have written some codes to show that ArraySetAsSeries function does not have any effect in Arrays!! any boddy can help me? why this function has no effect in my metatrader??? #property indicator_chart_window #property indicator_buffers 1 #property indicator_plots 1 //---- plot Label1
I have a signal indicator that should make an arrow on the LL or HH for any timeframe, but it repaints frantically like a rabid racoon on crack cocaine. One idea to stop something repainting is to take the initial signal it found and force it to remain with some boolean logic, another idea would be
Hi guys, I don´t know what else to do now, so I ask for a bit of help. I´ve been struggling for several days now. I´m rewriting a MQL4 indicator that I created into MQL5. I just want the MA slope, and I normalize it with the ATR, so then I can aggregate this indicator values with the same indicator
But i can't change to ema mode because I can't get the prev_value
I am trying to customize ichimoku cloud in MT5 to better fit the volatility of cryptocurrencies. Default Ichimoku cloud in MT5 allows changing the Tenkan (conversion line), Kijun (base line) and Senkou span B (Leading line 2). I cannot set time displacement, somehow it is linked to the Kijun (base...
It would be awesome, before using IndicatorCreate, to get a total/count of the indicator's input parameters. Where can I get this in MQL5
Hello i am coding indicator for mt5 And 1.after i launch it the buffers draws out of their values that i didnt load in code this is the first question 2.when i call time value in oncalcuulate indicator freez dont respod to other duals like onchert events or ontimer..etc 3.when i run this function it
hi. when i want to copy 100 number of rsi information to buffer , it copy all time information to buffer and plot unwanted line in all time. //+------------------------------------------------------------------+ //| 3 time.mq5 | //|
This one burned a full three days dogging it. I've been trying to call this iCustom indicator. No matter what I do, it keeps returning zeros -- no data. I've coded these many times before and haven't had a problem. What's been more mind-boggling, the indicator works just fine when added to a chart
Hey Guys, Able to help create a notification for this indicator? (Alert & Push Notifications) This indicator shows a up or down arrow base on this, Moving Average 50 > Moving Average 100 & Moving Average 100 > Moving Average 200 & MACD > 0 & Stochastic < Oversold = UP ARROW Moving Average 50 <
It's got type and values, why not let us say that the internal name of the variable is? It would really help in check if we got things out of order, and besides, it's just polite, don't you think? But the real rub here is: What do you do about an indicator you're trying to set up that wants a
FollowLine: This indicator uses Bollinger Bands lines to detect markets trend. It's a very useful tool for manual trading. Furthermore, it is possible to use the indicator with ATR as a filter, as well as the option to pop up an alert when a reverse trend occurs.  Author: Nikolaos...
A BETTER RSI : Relative Strength Index that completely removes noise, works on all markets! Author: Zoe Nsidibe Udokpan
Check out the new article: Developing a Replay System (Part 33): Order System (II) . Today we will continue to develop the order system. As you will see, we will be massively reusing what has already been shown in other articles. Nevertheless, you will receive a small reward in this article. First
Check out the new article: Indicator of historical positions on the chart as their profit/loss diagram . In this article, I will consider the option of obtaining information about closed positions based on their trading history. Besides, I will create a simple indicator that displays the approximate
Check out the new article: Python, ONNX and MetaTrader 5: Creating a RandomForest model with RobustScaler and PolynomialFeatures data preprocessing . In this article, we will create a random forest model in Python, train the model, and save it as an ONNX pipeline with data preprocessing. After that
Check out the new article: Design Patterns in software development and MQL5 (Part 3): Behavioral Patterns 1 . A new article from Design Patterns articles and we will take a look at one of its types which is behavioral patterns to understand how we can build communication methods between created
Check out the new article: Color buffers in multi-symbol multi-period indicators . In this article, we will review the structure of the indicator buffer in multi-symbol, multi-period indicators and organize the display of colored buffers of these indicators on the chart. A single-color indicator
Check out the new article: News Trading Made Easy (Part 1): Creating a Database . News trading can be complicated and overwhelming, in this article we will go through steps to obtain news data. Additionally we will learn about the MQL5 Economic Calendar and what it has to offer. In this article, we
New article Neural networks made easy (Part 2): Network training and testing has been published: In this second article, we will continue to study neural networks and will consider an example of using our created CNet class in Expert Advisors. We will work with two neural network models, which show
Check Last Closed Trade (Profit / Type / Symbol etc.) : Select the last closed deal (trade) to further work. Author: Hapu Arachchilage Tharindu Lakmal
Determine Broker's Daylight (DST) schedule : Script to determine whether your Broker follows the US, UK or AU daylight (DST) schedule. Author: amrali
Basic GridManager Library : This is a basic library to create and manage grids. Author: Yashar Seyyedin
Check out the new article: Neural networks made easy (Part 67): Using past experience to solve new tasks . In this article, we continue discussing methods for collecting data into a training set. Obviously, the learning process requires constant interaction with the environment. However, situations
Check out the new article: Build Self Optmising Expert Advisors in MQL5 . Build Expert Advisors that look forward and adjust themselves to any market. Self-optimizing automated systems are essential in today's dynamic financial markets. Developing a trading bot that can adjust to current market
Global Close Orders Management : Orders Closure Author: Iulian Persinaru
Dear all, I try to make the custom indicator about the cutting of MACD main & signal. Rule is (with the upTrend): 1. With M15 the MACD main line cut up the signal line -> sign1. 2. Sign1 = true -> with H1, check the MACD on the up or down trend (uptrend when mainH1 cut up signalH1 & oppsite). ->...
  Tools to analyze the trades  (102   1 2 3 4 5 ... 10 11)
First of all I am using this small script (attached) created by Beluck and fixed by Igorad. To use it be sure that you have "all history" in "account history" in your Metatrader (for the right calculation)
Several days trying to correct this fateful error, reading on the forum and following the recommendations of pre-publication checks on the Market at: https://www.mql5.com/en/articles/2555 . I have already implemented the following checks: 1.- Insufficient funds 2.- Invalid volumes 3.- Takeprofit
While interacting with sellers of signals and trading applications, we have decided to launch the affiliate program. It allows all sellers to interest MQL5.community members in promoting their products and signals. Thus, both sellers and promoters will benefit from the program. Sellers will receive...
Socialization of MQL5.com continues, and we keep upgrading the Profile. Today we've launched a new function - attracting visitors to the site. In addition to it, we've introduced a new rating. Now, you can easily find the number of users that you have attracted, in the Achievements of your Profile....
hi here I have a custom indicator , But when I use it in my expert 's backtest, I only receve maximum one signal ! and in the back test I only have maximum 1 trade (depending on start time of backtest ) !! here I have deleted the SendOrder to minimize code size , i only receive one print
Hi :) Please could someone be so kind as to attach mobile push notifications to this MT4 indicator? Indicator is in attachment. Thank you
Hi, I'm not good at understanding the programming language for the Mac OS and Windows NT plus Wine 64 so I need help with this issue. 1. Download & Install the MT4 Mac OS from my broker (FBS) and they couldn't find a way to place the file (indicator and expert file) into MLQ4, Data Folder. I was
  Good Indis =)  (2)
Hi, some good indis found in the internet (4shared) in this topic! First, a smoothed non-repaint version of macd indicator coded by igorad and mladen. Cheer´s
#property strict int OnInit () { MqlDateTime _Time; TimeToStruct ( TimeCurrent (),_Time); Print ( "_Time.day_of_year = " +_Time.day_of_year); Print ( "TimeDayOfYear(TimeCurrent()) = " +TimeDayOfYear( TimeCurrent ())); return ( INIT_SUCCEEDED ); } It's should same value ? I also tested with the
  Wrong RSI on my EA project  (16   1 2)
Hello Everybody, I try to create an EA based on RSI calculation. I am using the following fonction : void CalculateRSIValues() { int totalBars = MathMin (BarsToCalculate, iBars ( _Symbol , _Period )); Print ( "BarsToCalculateMathMin:RSI " , BarsToCalculate); Print ( "Taille de
I started this thread to post all news/signals indicators and EAs we have now and will have in the future.
  Coding help  (7897   1 2 3 4 5 ... 789 790)
Hi, Mr. Guru could you please help me to constantly refresh an ea after each tick movement. I have tried everything, But I just can't make it refresh constantly. What lines of code must I insert to keep an ea and indicator refresh after every tick ? Tnx
Dear, Anyone can support, I can not find the problem. It keep reporting error 5002 void ReadTextFileAndExecuteSignals() { //--- correct way of working in the "file sandbox" ResetLastError (); int filehandle= FileOpen ( "D://GBPUSD.txt" , FILE_TXT ); if (filehandle!= INVALID_HANDLE ) {
Hi Forum, I think most of you know that problem: You see a very big and choppy range in the chart window and after a successful breakout this terribly looking range becomes tiny and tradeable. Usually I compress the y-axis a little bit. That makes a choppy chart appearing less "dangerous". Is there...