MQL5 Algo Trading community — forex forum for traders and developers
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
Gooday everyone Please is there anyone that knows how to customize an EA to trade on custom symbols? or how to copy signals generated by custom symbols to be used for trading purposes? Share a little knowledge please
I understand that losing access to your wallet or bitcoins can be stressful, or stolen usdt crypto from your wallet address. Still, I must emphasize the importance of exercising caution and seeking assistance through legitimate channels. I have seen and perused cryptocurrency scams. It reminds me
As soon as the order is opened, even if I increase the Pips as input, the stop loss is immediately positioned at BE after very few pips. bool fxBreakEven( int argMagicNumber, int argBeakevenPip){ bool response= false ; // conversione da PIP in POINT if ( Digits ()== 3 ||
I am using EA Builder and I get different results for backtests with the same settings. Why is that happening
Hi All, I have an EA and when the trades close there is no dotted line showing on the chart I remember it was showing the dotted lines before, i dont remember when and what I have changed in the code, but the ordersend line is still the same and anyway i can't find anything in the ordersend that
I moved my signal subscription to my MetaQuotes Demo account and to my surprise the signal option on the demo platform is grayed out despite the fact that I have connection community on the journal entry. Can please assist
Hey guys, I have a problem with "telegram undeclared identifier in the attached code. I've tried every way but I haven't been able to resolve it. If anyone knows and can solve it I would really appreciate it. tks Samuel
Hello my mt5 closes on its own when i add an indicator to my charts. When i try to change in between time frames is freezes and automatically closes when i have loaded the indicator on the chart. How can i fix this indicator issue
Hello, long time ago, that i used mql5 the last time but why i dont the right value out there? value = iHigh ( _Symbol , PERIOD_CURRENT , iHighest ( _Symbol , PERIOD_CURRENT , MODE_HIGH , 20 , 0 )); it should give me the highest price of the last 20 candles regards amando
When placing a buy order for 100 units at price x with a Take Profit set at x + 2, and successfully buying, then subsequently placing another buy order for 100 units at price x with a Take Profit set at x + 1, and successfully buying. When the Take Profit of x + 1 from the second buy order is
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
Hi all, Im wondering if anyone can help, i have attached screenshots for reference however i am using the exact same account with the exact same data feed and have different fractals on my mobile app compared to my desktop app and im using the exact same indicator, can someone explain why this
Journal 2024.05.03 00:29:07.442 Core 1 2023.02.02 22:54:58 Order failed with error: 4756 2024.05.03 00:29:07.442 Core 1 2023.02.02 22:54:58 Details - Price: 1.2239200000000001, SL: 1.22379, TP: 1.27281, Current Market Price: 1.22386, MinStopLevel: 0.00001, Spread: 0.00006000000000000001 2024.05.03
Machine learning in trading: theory, models, practice and algo-trading
(34989 1 2 3 4 5 ... 3498 3499)
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
int Consecutive( int Count) { //--- int BB = 0 ; for ( int i = 1 ; i <= Count; i++) { if ( iClose ( _Symbol , PERIOD_H1 , i) - iOpen ( _Symbol , PERIOD_H1 , i) > 0 ) { BB++; } else { BB--; } } //--- return (BB); } Besides using
Hi! I'm considering to build a portfolio of diversified forex pairs to be traded with an EA, my account currency being USD ( IC markets and Eightcap as brokers) E.g. I'm thinking of EURUSD, GBPUSD as main pairs and AUDCAD, NZDCHF for diversification purposes as an example. Though, wouldn't this
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...
There are so many systems out here based on indicators and it takes so much time to go through all of them to see which one deserves merit,I simply did not feel like adding one more. However most are indicator based and lagging indicators make it difficult to really simplify trading decisions and
Market Condition Evaluation based on standard indicators in Metatrader 5
(2368 1 2 3 4 5 ... 236 237)
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
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
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
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
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
how to know which of the trade/stock has the highest volume/most gain
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
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...
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
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...
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
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
Hi, I'm using the Strategy Tester to debug an MQL5 EA strategy that inadvertently issues many PositionModify commands - the journal gets full of server messages and its hard to see the wood from the trees. When using the Strategy Tester, is it possible to (temporarily) block server messages - I just
Would anyone know how to incorporate into a breakeven price calculation the swaps of the given positions? I am working on the function below, which calculate the BE price of positions of a given pair in a given direction, but I have not figure out a simple way to add the losses from swaps into that
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
Hello everyone, I am currently trying to develop a panel that requires aligning text with the right edge of a graphical background layer. I have been using the TextGetSize() function to calculate the width of the text and attempting to position the text by subtracting this width from the right
Hello, 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
Hi, I have a EA which has a struct defined in it (because there are variables of its type in the EA mql file) and the struct type is being used to declare a variable in the header file too. // within mql EA file struct LLevel { ..... } // within mqh file LLevel expiredLLevel[]; After i include
Hello mql5 people. I am currently working on the optimization team for a project. I am a hobbyist coder and have coded a couple of my own bots, however for this project, I do not have access to the code. I was back testing without any problems until the version of the bots, licensing expired. As
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
greeting to all please i want very simple code when price go up for 5 points place a buy order take profit after 20 points and stop after 15 points when price go down for 5 points place a sell order take profit after 20 points and stop after 15 points without indicator ***
Hello 1) I have seen some websites selling top ranked MQL5 EAs for 30USD and I heard from some people they work perfect. 2) I have been told that given mql5 market EA can work during backtest without purchase they can formulate a dummy MT5 where the EA thinks it is in testing mode but it is actually
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
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
Hello everyone, before you tell me, I've already been searching the forum on the subject, but I can't find anything that works for me. Since I am only going to Having only one trade open at a time, I don't need to factor in margin or anything like that I need to know how the lot size is calculated
Hello, where can I download the library from #include <TradeConstants.mqh>,because it's not present in my include. Unfortunately, I can't find out where to find it. Please help
Microsoft Factory Class Warning: A pointer called "m_pMainWnd" was detected in a function called "Run()" of the class "CWinApp". CS 2 11:19:44.360 MFC Warning: m_pMainWnd is NULL in CWinApp::Run - quitting application. Something called debugger exist: Best Regards
Facing difficulty trying to overlay a line plot on top of Color Candles (in the separate window)
(2)
I made a simple candlestick chart in the separate window (DRAW_COLOR_CANDLES). I wanted to make a moving average in the same window, but when the buffers have very different values it causes the candlestick chart to scaled down so much that you can't see it anymore. Is it not possible to do what I'm
Hi everyone, before you throw the handbook on me and send me away, please, I confirm that I have tried and done all the research possible. Maybe I have a simple misunderstanding in my edited code, but I can't figure it out alone. 1.) i took the ALMA Indicator V2 and all I wanted to do is to add the
Hi Writing my first EA, steep learning curve but managed to get so far with it using various online sources to sort through most issues. Come across a few issues when using the PVT indicator that I can't explain or find the answers to. EA is running ok but results are not correct and what I have
Hello, Dear sir or madam, Can someone modify this indicator to work with the current build of MT4? Thank you! Chris
Hi everyone. I am currently using Supertrend on TradingView and a similar indicator in MQL5 with the same formula, but the middle line between the two is different. Can someone help me verify which formula is correct to display the middle line similar to the indicator on TradingView? Thank you
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
Some indicators with alert/signals with author's comments: - EMA-Crossover_Signal: Enter two Exponential Moving Average periods and it'll tell you when they crossed. - SMA-Crossover_Signal: Enter two Simple Moving Average periods and it'll tell you when they crossed. - SMMA-Crossover_Signal: Enter...
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
Something I have been working some time ago. Multi pair MACD Multi pair CoeffOfLine
On top of it all, the statements were working fine when I was asking just for close price. As soon as I added time, it started throwing up. 1005 double daNowPrce[]; 1006 datetime dtaNowPrce[]; 1007 ResetLastError (); 1008 1009 double dNowPrce = 0 ; 1010 1011 int
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
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
My knowledge of the mql5 programming language is minimal. But I wrote a simple custom indicator, the task of which is to display arrows near candles that meet certain conditions. First, all points with index i are found that satisfy the condition high[i]>high[i-1] && high[i]>high[i+1] (or low)
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]
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...
New article How to create a custom True Strength Index indicator using MQL5 has been published: Here is a new article about how to create a custom indicator. This time we will work with the True Strength Index (TSI) and will create an Expert Advisor based on it. As we can see as we have the four
Check out the new article: Algorithmic Trading With MetaTrader 5 And R For Beginners . Embark on a compelling exploration where financial analysis meets algorithmic trading as we unravel the art of seamlessly uniting R and MetaTrader 5. This article is your guide to bridging the realms of analytical
Discussing the article: "Master MQL5 from beginner to pro (Part I): Getting started with programming"
(27 1 2 3)
Check out the new article: Master MQL5 from beginner to pro (Part I): Getting started with programming . This article is an introduction to a series of articles about programming. It is assumed here that the reader has never dealt with programming before. So, this series starts from the very basics
Adaptive SMA : improved version of the standard Simple moving average indicator with a lower delay Author: Andrei Khrushchev
Check out the new article: Developing a Replay System (Part 38): Paving the Path (II) . Many people who consider themselves MQL5 programmers do not have the basic knowledge that I will outline in this article. Many people consider MQL5 to be a limited tool, but the actual reason is that they do not
Check out the new article: Custom Indicators (Part 1): A Step-by-Step Introductory Guide to Developing Simple Custom Indicators in MQL5 . Learn how to create custom indicators using MQL5. This introductory article will guide you through the fundamentals of building simple custom indicators and
Trend Predictor : New level of trend prediction! Author: Ezatrimeo
Determine Broker's Daylight (DST) schedule : Script to determine whether your Broker follows the US, UK or AU daylight (DST) schedule. Author: amrali
RSI with channels : standart RSI with dynamic levels Author: Andrei Khrushchev
ZigZag NK FiboFan:
ZigZag allowing to build Fibo fans on the last two tops.
Author: Nikolay Kositsin
New article Swaps (Part I): Locking and Synthetic Positions has been published: In this article I will try to expand the classic concept of swap trading methods. I will explain why I have come to the conclusion that this concept deserves special attention and is absolutely recommended for study. I
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
Averages MTF:
A version that adds some averages not supported by built in standard types to the collection of averages in one single file.
Author: Mladen Rakic
Logarithmic Moving Average : Logarithmic Moving Average continuously calculates the logarithmic mean of highest price and lowest price within a period. Author: Sardion Maranatha
Check out the new article: Developing an MQL5 RL agent with RestAPI integration (Part 2): MQL5 functions for HTTP interaction with the tic-tac-toe game REST API . In this article we will talk about how MQL5 can interact with Python and FastAPI, using HTTP calls in MQL5 to interact with the
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. Is it possible to create a button that when pressed behave like when you press the "draw rectangle" button but it gives you a rectangle of a certain color? Like create a button called "white" rectangle and when you press it then you can draw a white rectangle with your cursor, without having
Hello everyone, I need a help about coding. Actually, I am learning about coding and decided to make an expert advisor, but along the way I got stuck because it doesn't work well in MT4. I want to make an EA with following specifications: - To Buy or Sell when MA crosses. - When the opened Buy order
I have download the a new MT4 app from a new broker. but unable to log in to the MQL5 community. I used forum log in and reset password few time but nothing worked Any help or suggestion is welcome. Thanks
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 just purchased an EA and when I try to download it to the terminal and login, I get this message. Any help would be appreciated. Thanks
ObjectCreate ( 0 , "Low" , OBJ_TREND , 0 , iTime ( NULL , PERIOD_MN1 , 3 ),lowY, TimeCurrent (),lowY); ObjectSetInteger ( 0 , " Low" , OBJPROP_RAY , true ); ObjectSetInteger ( 0 , " Low" , OBJPROP_COLOR , clrRed ); ObjectSetInteger ( 0 , " Low" , OBJPROP_STYLE , STYLE_SOLID ;
Hi everybody, I request you to kindly plz take out your precious time to code the stoploss in this version of Ilan. I like this version and used it in live account too. But sometimes when markets moves long direction it blows cause the stoploss is not working when set to certain level as well as it...
Hi, Im trying to change the iExposure indicator view from sub window to main chart window. I've already tried modifying the code from #property indicator_separate_window to #property indicator_chart_window, but still can't see the indicator in the main "chart" window. Any suggestion? Here is the...
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...
I am doing everything as normal but when I start MT4 on my laptop it deletes any ea’s that I have copied into the MQL4/experts folder. Seems to also happen with indicators as well. Everything was working fine on Friday but something happened over the weekend that has me stuffed. Things I’ve tried
I have written a code that I use to take profit in XAUUSD for 1 minute time frame. the problem with this EA is that it can make a profit when it follow the trend line, but when reversal came I keep taking losses, thus diminishing my profit. is there any way to fix my code ? As you can read from the
[Deleted]
I have been running MT4 on my laptop for several months. All of a sudden the terminal window won't appear? i have tried re-booting and several different profiles, no go. Any ideas will be greatly appreciated! Thanks, Steve
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, I need help to create an EA base on the following terms EA will open trade base on chart M1, M5, M15, M30, H1, H4 and D1. EA will not open a new CYCLE of trade if the previous CYCLE is not close. Example:- M1-Sell, M5-Sell, M15-Sell, M30-Buy, H1-Sell, H4-Buy and D1-Sell EA will open sell...
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.