MQL5 Algo Trading community — forex forum for traders and developers

Hi guys, Hopping that someone in this chat can help me out. I have tried many different EA from the marketplace in Trader 4 but no matter what kind of EA i load no trades is taken at all...Also it dosnt says that the EA Fails in the journal. I tried with all seting DLL imorts, autotrading and much
I am starting to work on an EA, which wants to use values that are identified with an Indicator. I have a good idea of how the logic will work to trade but I am unsure of what I should do for the indicator. Should I re implement the indicator to generate the values in my EA (this is not what I want
Hi, I'm using EA which allows selecting trading symbols by entering their names in the input field of the parameter window. My broker on each symbol has a suffix of (£). When I'm trying to enter the name of the symbol in the input field, after saving it returns i.e EURUSD(? instead of EURUSD(£). It
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
hello every one i try to download mt4 and they only allow me mt5... somebody know what is the problem ??/please
I currently login using my google account but i want to change my email. To do so i need to confirm the changes by inputing my password but the pw i use for my google accound isnt working
Hello ladies and gentlemen ! Is it the case that typedef is static and we can´t use it with templates or am I using the wrong syntax here ? There is no problem when i using pre defined datatypes like this: typedef bool (*Function_pointer)( int , int ); Function_pointer p_func; bool p_more( int a
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(){
Idea is to test EA with the same inputs but starting from every weekday of the year with 1 year of testing period for example. Found that some robots behave differently in the case start them from different dates. So want to automate this testing param as well
Someone can explain to me how to make the signals have good reliability
Please I need help in changing my location as I`ve moved to a new country 2 years ago
Who knows which technical index of mt4 is better and whether the bollinger band works well
Hi, Trying to find out if I can install MT5 on my computer running Windows 10 Pro, version 22H2 build 19045.4291 with all the latest updates. Currently, after downloading mt5setup.exe from metatrader5.com website, I get error: "Unsupported operating System! Please upgrade to Windows 10 or later." Is
GOOD DAY EVERYONE, I Created a custom indicator that consist of RSI and Moving average, a buy signal should pop up when MA is below level "10" and sell signal when MA is above level"90". The problem now is that the indicator is appearing on one particular pair alone and its not accurate when i try
I recently set up MT5 on a new PC and successfully logged into my trading account. I can see the VPS data in MT5, and the journal appears to be fine. However, I'm struggling to synchronize the charts from the VPS to MT5 on my new computer. How can I synchronize the charts from the VPS to my MT5
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
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
Hello, i need create backtest with MA, MACD and Stochastic indicators on daily historical data BTC/USD. I created custom symbol based from EUR/USD and than I changed them to BTC/USD. AFter that I imported the daily historical data to the current symbol. But if I try to make simple backtest than I
Hi everyone, I need support because I'm noticing a problem with my custom indicator. The indicator provides me with a KPI that updates for each new bar. I based an expert on it who, based on the value of the previous bar compared to the current one, must do or not do operations. I had the doubt that
  Something Interesting to Read  (131   1 2 3 4 5 ... 13 14)
This is the thread about books related for stocks, forex, financial market and economics. Please make a post about books with possible cover image, short description and official link to buy (amazon for example). Posts without books' presentation, without official link to buy and with refferal links...
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
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
  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
I must be really stupid because I can't figure out how to get the strategy tester to work. Every time I press "start" a second passes and then there is a toy beep. I don't understand this. As a newbie to algo trading I have also copied codes from YouTube videos but they also don't work for
  Ordercloseby  (1)
Hi Can anyone explain the code ordercloseby to me When I use it to close buy and dell orders it gives me error 3 Thanks
Hello everyone, I am working on an price EMA crossover expert advisor on metatrader 5 which should have the following conditions : 1. if price closes above ema ,an alert is triggered as well a buy stop pending order 2. if price closes below ema ,an alert is triggered as well a sell stop pending
I had a look and it seems it's possible but a lot of the ways I found connected to forex factory but because they have some kind of firewall in place it stopped most EA's that do this from working. Is there any other methods? I just want the EA to pull the news data and be able to turn on/off the
I am using metatrader 5 on a linux manjaro distribution through wine and I am having some coding problems. I am pretty sure the code is right but it keeps giving me compile errors on the OP_BUY and OP_SELL as undeclared identifiers and when I search in the Trade.mqh file I cant find them so
[Deleted]
I coded a Simple Trail Stop EA from a tutorial video that i found on the net. It compiled successfully with no errors. Here it is below. #include <Trade\Trade.mqh> //Create an instance of CTrade CTrade trade; void OnTick () { //We calculate the Ask price double Ask= NormalizeDouble (
Morning I'm traying to publish my EA, and after local testing, i don't find any error. But when i update to market, verification process say: test on EURUSD,H1 (netting) 2020.05.05 10:06:00 failed modify #6 sell 0.3 EURUSD sl: 1.09088, tp: 1.08857 -> sl: 1.09075, tp: 1.08857 [Modification failed due
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, it seems that some times, in tester graphs get wierd and also the testing graphs don't clean one after the other (I don't have an image now) but if one ends in +20, the second drops 20 and the graph doesn't clean (I still see the last graph and the second one is a continuation) does any one know
  2 Time Frame EA  (3)
Hi everyone, do you have any idea why I get this error when backtesting? Best Reguards, ZeroCafeine. int OnInit () { Handle_MACD_D1 = iMACD ( _Symbol , PERIOD_D1 , FastEMA_D1, SlowEMA_D1, SignalSMA_D1, PRICE_CLOSE ); Handle_MACD_H4 = iMACD ( _Symbol , PERIOD_H4 , FastEMA_H4, SlowEMA_H4
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
What's the difference between Every tick and 1 minute OHLC modelling in strategy tester ? Why is it that all strategies that look profitable using 1 minute OHLC modelling went badly if I were to change it to every tick modelling? All of the strategies are in higher time frame, such as 15 min, 1 hr
THIS IS READY MADE FULL AUTOMATIC EA MAKE THIS EA SEMI-AUTOMATIC 1. FIRST ORDER OPEN MANUALY 2.THIS IS MARTINGLE EA CONVERT IT ANTI MARTINGLE
hello guys, i'm trying to get historical data on index to do a backtest of an EA. The historical data center doesn't work. It's not importing data, it's not downloading anything. I have tick data from dukascopy but the import doesn't work. I tried 2 different mt4, 2 different brokers and i have the
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
I have a simple indicator that I use a lot in coding and testing, called BarID. Its intent is: for any bar you point to on a chart, to give you both its AsSeries = true and AsSeries = false index values, along with the best I could do to show its date and time, given all that's available are type
  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 <
Check out the new article: Developing a Replay System (Part 36): Making Adjustments (II) . One of the things that can make our lives as programmers difficult is assumptions. In this article, I will show you how dangerous it is to make assumptions: both in MQL5 programming, where you assume that the
Check out the new article: How to build and optimize a volatility-based trading system (Chaikin Volatility - CHV) . In this article, we will provide another volatility-based indicator named Chaikin Volatility. We will understand how to build a custom indicator after identifying how it can be used
Check out the new article: Population optimization algorithms: Micro Artificial immune system (Micro-AIS) . The article considers an optimization method based on the principles of the body's immune system - Micro Artificial Immune System (Micro-AIS) - a modification of AIS. Micro-AIS uses a simpler
Check out the new article: Developing a Replay System (Part 35): Making Adjustments (I) . Before we can move forward, we need to fix a few things. These are not actually the necessary fixes but rather improvements to the way the class is managed and used. The reason is that failures occurred due to
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
Check out the new article: Building A Candlestick Trend Constraint Model (Part 1): For EAs And Technical Indicators . This article is aimed at beginners and pro-MQL5 developers. It provides a piece of code to define and constrain signal-generating indicators to trends in higher timeframes. In this
Check out the new article: Creating a market making algorithm in MQL5 . How do market makers work? Let's consider this issue and create a primitive market-making algorithm. Many people think that a market maker does not bear any risks at all. However, this is not the case. The main risk of a market
Check out the new article: A Generic Optimization Formulation (GOF) to Implement Custom Max with Constraints . In this article we will present a way to implement optimization problems with multiple objectives and constraints when selecting "Custom Max" in the Setting tab of the MetaTrader 5
Check out the new article: Population optimization algorithms: Bacterial Foraging Optimization - Genetic Algorithm (BFO-GA) . The article presents a new approach to solving optimization problems by combining ideas from bacterial foraging optimization (BFO) algorithms and techniques used in the
  Libraries: WinSock  (18   1 2)
WinSock: A WinSock library and a client/server example Author: rob
Check out the new article: Developing a Replay System (Part 34): Order System (III) . In this article, we will complete the first phase of construction. Although this part is fairly quick to complete, I will cover details that were not discussed previously. I will explain some points that many do
New article How to Post a Product in the Market is published: Publish your interesting applications in the Market, and they will be immediately available to all traders who use MetaTrader 5 worldwide. The Market is a great opportunity to earn, with an immediate transfer to the account and convenient...
Manual Backtest Bar Replay Simulator : A simple indicator which may help you in manual backtest by just moving a vertical line to show hide bars. Author: Rajesh Kumar Nait
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
A BETTER RSI : Relative Strength Index that completely removes noise, works on all markets! Author: Zoe Nsidibe Udokpan
I want the value of S1Buffer, which is calculated in the 15-minute time frame, to show the same value for lower time frames, such as the OpenBuffer, CloseBuffer, and COBuffer buffers, which work the same way. Can anyone help
Hello, Normally, Stop Loss execute in broker server and it send a data of Stop Loss value to broker. This has a disadvantage of too many operation and also Stop Hunting from most of the Forex brokers. To avoid this, i heard there is a concept called Virtual Stop loss which act same as normal but it
Hello, I made the code, which close old trade after X time from Order Open Price. My code : void StopOrderSL( int trade_close_magic) { for ( int pos_0 = OrdersTotal () - 1 ; pos_0 >= 0 ; pos_0--) { OrderSelect (pos_0, SELECT_BY_POS, MODE_TRADES); if (OrderSymbol() != Symbol () ||
Hi everyone, I'm trying to write mql4 code that.... as soon as the last open trade in chronological order closes due to reaching TP, all the other open trades and all pending orders also close. Obviously I'm not an expert, however I tried different solutions but I was stuck. Can anyone give me
Hi, im having this problem, i developed a custom indicator and added a licence to it which includes the account number and expired date, i use to compile it and works fine, but suddenly im getting this error sayin that my account is not registered which it is cuz i have not modified anything on the
//+------------------------------------------------------------------+ //| qjol sol for wininet.mq4 | //| Copyright 2023, MetaQuotes Ltd. | //| https://www.mql5.com |
  Change chart line width  (19   1 2)
Hello traders How would i change the width of chart line? There is setting for color in chart properties but I'd like to have the line thicker. Thanks
Hi guys, was wondering if anyone knows how to do this, just bought an EA and the author advised this, not sure how though
Dears, Here I encounter a problem when I want to call the color out of my custom indicator. For example, I have a trendline in changing color. Green means uptrend and Red meand downtrend. When the color changes from red to green, place buy and vice versa. The question is how to call the color or...
Is there any way to automate the process of strategy testing. l want to run multiple tests for various assets with different parameters of each and save the reports. Is there any native or third party api to write code and execute the tests automatically or can l write a script to do the whole...
I'm using MT4 4.00 build 509, but this bug has been around for quite some time. The attached program draws Daily cycle lines using DRAW_HISTOGRAM to draw vertical DOT lines. The desired line style is DOT, which works when zoomed out, but if one zooms in to the 2 closest zoom levels (5th or 6th),...
Greetings, I would like to inquire about displaying dots in a histogram. When the Shape style of an indicator is set to DRAW_HISTOGRAM and the line style is set to STYLE_DOT, changing the chart scale to 4 or 5 causes the line width to become STYLE_SOLID, even when the width is set to 1. Is there a
  Good Indis =)  (3)
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
Hello, I've build a Server implementing some neuro-network functions and i want to communicate from an EA with this server. To do so, I implemented some socket-communication functions as an DLL but I got the following problem: - when calling the connect - function of WinSock via the DLL I always...
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