MQL5 Algo Trading community — forex forum for traders and developers

  Access Violation  (8)
What kind of code could cause this? (backtest) I tried to run it in the debug mode (ctrl+F5) to nail down the exactly line that generates this, but when it happens the debbuger also stops.
Hi, My terminal regularly goes into "scanning network for access points" mode and then auto selects one with slow ping (3rd or 4th in the list)!! I keep selecting the fastest access point and after a while the terminal goes back to the slowest!!! Seems a helpful feature but somehow it does the
Hi every one Everything was fine until one day opening MT5 says: A debugger has been found running in your system. Please, unload it from memory and restart your program. I've checked the forum the same problem occurred to people long time ago and was about running in 32 bit which is not possible
Hi all, I rented a VPS from MT. I followed the steps anf migrated everything. How can I be sure that the experts are running and how can I see the trades? THanks
I am coming back to this forum after a gap of many years, trying to dust off / reuse my own previously written code pieces. I am now constantly being reminded that I am sitting on a bunch of MT4 code that is becoming increasingly difficult to maintain, given the way the carpet is being rolled off
what is the best way to capture view data on market place listings
I just can't get MT4 to launch... It is successfully installed. When I launch it - nothing happens, process doesn't even show up in Activity monitor. However, if I try to uninstall it, my Mac keeps telling me that it's currently open. Even though it isn't. The only way for me to close it is to
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
I have seen lots of videos on youtube and other platforms of people flipping for example $6 to $50 in one trade. They trade a pair "XAUUSD m " personally i cant find the pair that has the "m" on it, and the people also buy like 4-5 orders of 0.02 lots on that pair (XAUUSDm) which would be way more
I want to represent the opening and closing, price and time levels of a given ticket number on the chart using a custom bitmap/graphic object. Also create a line joining the opening and closing levels. Can anyone advise me of something readily available - if on MQl Four, even better
Moderators: Does the new MT4 Mobile take custom indicators made by programers? Thank you. Omar
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
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 am using Macbook pro and installed MetaTrader5 for Mac version. I am trying to run python script in EA but it says "Python compiler not found". When I tried to install from Tools --> Options --> Compilers it redirects me to meta quotes webpage but files are not found. Can someone help me on this
I am developing a multi-strategy expert advisor and need to implement an effective money management system. My approach is to first define all strategies within a single expert and then run the strategy tester separately for each strategy. The results should be stored in a database or file so that
I just started this thread as a continuation of the talking made on this topic (we can read it). Or ...to make it shorter: it was some discussion about forecasting/predicting of the next candle or direction of the movement or market condition evaluation. And it was around standard indiocators in
  All About Price Action  (32   1 2 3 4)
Dear friends/Brothers/Sisters, I want to start this post regarding Price Action. I want people to help about what I know. Please Respond this post, Share the way you know and learn the way I know. I am not a master but a trader like others and also like to know how others doing. Reply and Keep in...
Hello, Could you please provide a list of Forex calendar news events that typically result in significant price movements (more than 500 pips) in the Forex market? For example: USD Non-Farm Payrolls (NFP): Average price movement is 500–1000 pips. USD Consumer Price Index (CPI): Price movement ranges
Excuse for my english, i hope to be able explain my idea for trading system Ok I'd like to present a very simple and profitable way to trade eur usd only one important indicator: sma 14,,,,,,,, when price cross sma 14 we take position 5 minutes setting short when price was over sma 1 lot long...
  Machine Learning and Neural Networks  (741   1 2 3 4 5 ... 74 75)
MQL5 now supports matrix and vector operations which are used in various computational tasks, including machine learning. We have created this thread to select and share some materials that may be useful to you. Machine learning technology is based on neural networks. Neural networks are
M artingale, H edging and G rid <<< MHG >>> M y H oly G rail Over 50% of freelance jobs can be classified as one form or another of MHG. I wonder why ? Martingale : A gambling system of continually doubling the stakes in the hope of an eventual win that must yield a net profit. Hedging : Taking
  Usefull links/threads/tools  (57   1 2 3 4 5 6)
The thread about threads: what's going around the forum everywhere ============ MT5, mql5, mql5.com suggestions for improvement thread ============ Requests & Ideas The beginning Requests & Ideas, the beginning - the thread Suggestions for Trading System thread After Requests & Ideas (MQL5
I wanted to lean on someone's knowledge who has significant experience and knowledge in trading. Is there a relation between intraday pivot point calculations and daily trading signals with regards to buying after the daily low towards the high, and selling after the daily high towards the low
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 guys, I am not sure how to assess if a spread is large or small. I tried to compare it with the average daily range and I also compared the spread to the value of the currency itself. What makes most sense for you? It is not only the points because 3 points are not the same on EURCHF or GBPJPY
  Trading the Andrews Pitchfork with Max  (77   1 2 3 4 5 ... 7 8)
I used to be a manual trader for a long time: https://www.mql5.com/en/forum/179446 However, I no longer enjoy the relentless screen time and general stress that goes hand in hand with manual trading. My solution was to become very good at translating my manual trading knowledge to the creation of
i want to show you and suggest you this simple and proper way of trading that i have ever seen.i mean price pattern.ofcourse many of you have heard about it but i am trading with this system and it is very practical and profitable forthermore very simple.wihout any indicator just Fib
  Chaos Theory by Bill Williams  (86   1 2 3 4 5 ... 8 9)
http://www.alpari.co.uk/en/market-analysis-guide/chaos-theory/index.html I had a quick read through and it sounds very impressive. what do other people think? is it good? has an AE been done before based on this theory?
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...
Hi Guys As a new member I am learning the ropes. My thoughts on a strategy is trend lines using the RSi and Bollinger Bands. Can I have those with experience thoughts on this please
  DOM Ladder  (10)
Hi. How much would it cost to make this DOM?
  Indexes disabled  (2)
SP500 and NASDAQ Indexes are not up to date and have been disabled for some time now. Is anyone else experiencing this
good day. I'm new here, and I can't find an answer. Please advise: I downloaded a couple of "free" EAs to MT5 and I need to backtest them via "test". But I have a problem that it is counting my profit as a few dollars. I have something set up wrong. I need to set it up for back-testing on stocks and
  Trading Futures  (4)
Hello all, I am new to the MT5 platform & my background is in trading E-Mini S&P500 futures. Of course, I am interested in algorithmic trading but I have not been able to find any source code for this particular instrument. I would appreciate any guidance or assistance in finding some expert
  Who are the resistance?  (12   1 2)
If BTC/USD has support at $68,000 and resistance at $70,000, what type of group or person would keep dumping at $70,000 when they make very little profit from a buy at $69,000
Hey guys, dumb questions from a noob I just created a demo account on ****** to try their MT5 and I'm trying to find the emini futures in there (S&P 500) but I simply can't. Their website says they support it, but I just can't find it. I wonder if I'm doing something wrong here
Hi @ all, i´m new with MT 5 and wanted to know if its possible to trade on sim/demo account other markets than forex? For instance, NQ, SP500, etc. For now i only see forex markets to choose from. Any ideas? Thanks
Newbie question I know..trying to place a leveraged buy order for stock RNG.N. Current ask price is at 32,950. Account balance is 103€ with the same free margin (no other open positions) and a 1:200 leverage. For 50 stocks this should be enough, right? Stop loss is not set. Still getting the "not
Hi, I have data export from NT8 and need to import it in MT5 but the formats compatible with the two platforms are clearly different. Is there a process/tool to automate this
Hello all, I'm a software engineer with a C++ background and have been using metatrader for a long time. I've been importing chart data into custom symbols successfully however, I lately have been needing to import historic prices; and in this area, MT5 is limited. The issue --seems to-- lie in the
Dear all, I am trying to import historical data (M1) to MT5 from my Tradestation account. I have export the data in csv format and below there are some rows as example: "Date","Time","Open","High","Low","Close","TotalVolume" 1/2/2008,03:01:00,3841.00,3842.25,3840.25,3841.75,184
[Deleted]
MetaQuotes Software and oneZero Financial Systems announce a new connectivity gateway for integration with Interactive Brokers Group, Inc., available through the oneZero Hub product. The gateway provides the possibility to trade stocks, futures and other exchange traded instruments on the largest...
  Futures Rollover  (1)
does the future contracts on mt5 automatically rollover? Like ES, YM, NQ
Hi I have been trading UNLEVERAGED ETFs on non metatrader broker of Indices (NASDAQ100,S&P500) and Metals(Gold, Silver) . I was always buying .Long The reason for this choice was because no Swap is being charged and I can hold a position for months without much stress. I will now seek MT5 brokers
  I Need MT5 EA  (6)
I need of MT5 EA that open unlimited sell positions only on every 5 seconds,or on every new candle with target profit in pips for every single position,I trade xau/usd,please please help me,this is very important for me.Thanks
EA using indicators downloaded for free from mql5. Is it possible
Hi guys i dnot know if i understund a good logic of a checkbox in cpanel i want know if when i flag cjeckbox it must return 1 and when defalg it must rerun zero ? because in my sript return always zero paneldialog.mqh //+------------------------------------------------------------------+ //|
Hi, I'm working on a netting account. As far as I understand: by reversing an existing position the position will be closed and a new one will be opened with a new id and the contrarian type (buy --> sell or sell --> buy). Am I correct here? But I have difficulties to access to the newly opened
Hi, Is there a way to find what the balance was after a deal finished in the OnTester method at the end of a backtesting pass? I noticed when we traverse through the deal and their properties, in the documentation ENUM_DEAL_PROPERTY_DOUBLE doesnt have a resulting balance property. 1. Is there
Hi. I have the following code from the `TrailingMA.mqh` file that comes with Metatrader: //+------------------------------------------------------------------+ //| Checking trailing stop and/or profit for long position. |
  EA Creation  (2)
I have a easy strategy. How can I create an EA for the same? or where should I ask for this help
Hi All I am looking to build a screener that I can load onto one pair that can monitor 20+ pairs. A pair should appear on the screener if a level is broken, in this case the high of the previous day, at particular times of day (asia / london / NY). I have seen a few code examples that are able to
Hello wondering if there is a profitable EA on the MQL market or have they all got a alternative motive. I mean lets face it, if someone had a EA that was profitable, why would they sell it. Very basic discussion but funny enough it may raise some concerns. I have had many EA's from over a period of
  DialogBox issue  (1)
Hi ! I have one question, I have a dialog box on the chart, and everutimi I minimize it it goes on the left top corner and it is dificult to drag it because there is also charts trading panel it that location. Is it posibile to change the place where my dialog box will go when minimize it
Dear Coders! I started a backtest. My expert advisor is trying to open a position immediately at time 00:00. I get 'Market is closed' (TRADE_RETCODE_MARKET_CLOSED, error code: 10018) message, because the trading is start only at time 00:01: How can I check in advance if it is possible to open a
Please, how I can check if market is open or closed in MT5, I cant find answer. something similar to MT4 - MarketInfo(Symbol(),MODE_TRADEALLOWED) this command doesn't exist in MT5 anymore. Thank you
Let's look at the results of the tests on one and a few characters. The tests will be conducted in All ticks mode. You can use your own multisymbol EA schemes to reproduce the problem and share your results. Let us denote the problem. For example, if you test one symbol, the test time takes 1
Hello, Can anyone tell me why these bands appear in the MT5 strategy tester? Thanks in advance, (No indicator loaded)
Hello everyone, I'm experiencing a critical issue with a custom stepped trailing stop that I've implemented in my MQL5 Expert Advisor (EA). The trailing stop logic should be as follows: Stepped Logic: The trailing stop moves the stop loss in fixed increments of 10 points. Favorable Movement Only
  expert for rsi  (3)
hi,I need indicator for cross up and down level30 with alert
Hello guys. Im trying to validate a indicator in mql5 market, but: test on EURUSD,H1 (netting) expert file MQL5\include\candlestickpatterns.ex5 open error [ 2 ] expert file MQL5\Indicators\include\candlestickpatterns.ex5 open error [ 3 ] program file include\candlestickpatterns.ex5 read error
Hey guys, I will never understand how the loop of an indicator works. It's easy when I calculate the whole indicator with every tick but it should be a bit more efficient. Only the new bars should be calculated. I read many articles about prev_calculated , rates_total and so on. But obviously I am
Hi, I'm developing a custom indicator in MQL5 that uses CopyTime() to get timestamps of previous candles in the daily timeframe (D1). The problem is that after restarting MetaTrader, it seems that previous data is not loaded, and CopyTime() returns -1 . I have tried the following solutions, but none
Hi all, I need an indicator for calculate avarage price for all open order, incluse Buy and Sell. I have an Indi for MT4. But MT5 I haven't. Can Someoe help me, Please! Simply calculate W: lot size P: entry For Buy is + For Sell is - Ex: Buy 1lot at 1900 Buy 1lot at 1910 Sell 5 lot at 1890 >>>
Hi, I have this sample code for the MTF RSI indicator. The first thing we check in onCalculate is whether the number of bars calculated by the RSI handle matches the number of bars in the selected timeframe. If they don’t match, the function returns zero. This works well in the open market, and
Hello everyone as the subject says am trying to code or customise a moving average and display it in the subwindow ive tried several ways to tuckle the challenge without success as i show in the image below the yellow ma i placed manually and is the desirable output the red ma is however what my
I have an EA that uses an indicator. I would like to see the indicator when running the EA. However, each time I change a parameter in the EA, the indicator is doubled in the chart. In the example below the Ibands has 3 lines, when I load the EA for the first time...but if I change any parameter in
Hello. I have searched everywhere but except some samples I found on Metatrader I couldn't find any tutorials or something about implementing Indicators & Experts based on Standard Library . To be exact, there is a way to create an indicator that inherits from the CIndicator class. Also, there is a
extern string font_name = "Arial" ; // extern int font_size1 = 10 ; // extern int font_size2 = 9 ; // extern int labs_corner = 1 ; // extern int labs_xdist = 5 ; // extern int labs_ydist = 10 ; // extern int
Hi, How do you run WebRequests from an Indicator on a MT5 running on MacOS? It seems to me that since Metatrader 5 doesnt have a native MacOS application and its using a WINE instance that the port forwarding doesnt work out of the box. I have tried forwarding ports to Wine using socat and enabled
I have drawn a trend line in the bellow chart. I want to know the angle of this trendline so I can use it to trade based on some other conditions. but I don't know how to calculate it. do you have any idea how to do this. I don't need you to code for me. give me an idea how to do this. Your help is
  Zigzag indicators  (646   1 2 3 4 5 ... 64 65)
Different zigzag's indicators please post here
Hey does anyone know why this zigzag indicator is behaving like this. Not marking proper swings? shown by red arrows. zigzag values are - 7,5,3 timeframe 5 minute is there any solution to avoid this fake swings or weird swings
  Daily Vertical Lines in MT5  (28   1 2 3)
Hello altogether, I used to trade via MT4 (that was a while back). Now I wanted to start trading again and installed the MT5 Software. Back in my MT4 times I used this indicator --> https://www.mql5.com/de/code/12266 <-- to display certain times in my chart, which was (and hopefully will be again)...
Check out the new article: Price Action Analysis Toolkit Development (Part 12): External Flow (III) TrendMap . The flow of the market is determined by the forces between bulls and bears. There are specific levels that the market respects due to the forces acting on them. Fibonacci and VWAP levels
FVG based Momentum Detection : This is an indicator that evaluates FVGs in the inputted "window_size" to detect momentum or trend strength. Author: Yashar Seyyedin
error EA but with run with profit!: an EA , run with a profit this is Error EA in error, so you can correct the EA, But no use EA Author: Lam K
Check out the new article: Automating Trading Strategies in MQL5 (Part 3): The Zone Recovery RSI System for Dynamic Trade Management . In this article, we create a Zone Recovery RSI EA System in MQL5, using RSI signals to trigger trades and a recovery strategy to manage losses. We implement a
VWAP - Volume Weighted Average Price: VWAP is an intra-day calculation used primarily by algorithms and institutional traders to assess where a stock is trading relative to its volume weighted average for the day. Author: Felipe Almeida
Check out the new article: Developing a Replay System (Part 61): Playing the service (II) . In this article, we will look at changes that will allow the replay/simulation system to operate more efficiently and securely. I will also not leave without attention those who want to get the most out of
Volume Profile + Range v6.0 - indicator for MetaTrader 5 (Fixed iBarShift Issue): Volume Profile + Range v6.0 (former TPO). Distribution of deals by price levels at a given time interval. Displayed as a histogram. The width of the histogram at the level means the number of transactions carried out
Check out the new article: Price Action Toolkit Development (Part 18): Introducing Quarters Theory (III) — Quarters Board . In this article, we enhance the original Quarters Script by introducing the Quarters Board, a tool that lets you toggle quarter levels directly on the chart without needing to
Check out the new article: Price Action Analysis Toolkit Development (Part 17): TrendLoom EA Tool . As a price action observer and trader, I've noticed that when a trend is confirmed by multiple timeframes, it usually continues in that direction. What may vary is how long the trend lasts, and this
Check out the new article: From Novice to Expert: Support and Resistance Strength Indicator (SRSI) . In this article, we will share insights on how to leverage MQL5 programming to pinpoint market levels—differentiating between weaker and strongest price levels. We will fully develop a working
MeanReversionTrendEA : The EA automatically trades based on trend and mean reversion signals with validated parameters. Author: Mustafa Seyyid Sahin
Fast In Fast Out for Fast Money: FIFO strategyWhen all the market movement makes you have lost, This ea makes a good profit with a little profit with many orders in a short time Just on a Candle. Author: Faeze Bakhshayesh
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...
New article Creating a "Snake" Game in MQL5 is published: This article describes an example of "Snake" game programming. In MQL5, the game programming became possible primarily due to event handling features. The object-oriented programming greatly simplifies this process. In this article, you...
  Scripts: MQL5 Program Packer  (17   1 2)
MQL5 Program Packer: This is MQL5 project packer: assemble all source and resource files from dependencies into a single ZIP. Author: Stanislav Korotky
void CloseAll() {double bid, ask, price;bool success; for(int n=0 ;n<=tot;n++){if(!OrderSelect(n,SELECT_BY_POS,MODE_TRADES)) continue; bid=MarketInfo(OrderSymbol(),MODE_BID);ask=MarketInfo(OrderSymbol(),MODE_ASK);price=(OrderType()==0)?bid:ask;
I want to draw color candles in MT4. but the bellow code doesn't do anything. The code doesn't return any error but not work as expected. Can someone tell me what the issue is? I tried with ChatGPT to find an answer, it doesn't give any correct answer for this
I was using MT4 on Mac OS Catalina for a year or longer. Yesterday decided to reinstall it. And soft just doesn't want to launch. It is successfully installed. When I launch it - nothing happens, process doesn't even show up in Activity monitor. Any ideas
All lessons of Codersguru: https://www.mql5.com/en/forum/175653 Mql - Metatrader Development Course | www.metatrader.info https://www.mql5.com/en/forum/172885 All Codersguru lessons + questions/replies and so on are on this section Metatrader 4 mql 4 - Development course - Forex-TSD Book: https...
Why did you post your MT 4 question in the MT 5 Trading Systems section instead of the MQL 4 section , (bottom of the Root page )? General rules and best pratices of the Forum. - General - MQL5 programming forum ? (20 17 ) Next time, post in the correct place. I have moved this thread. Hi
Hello everyone, For the past few days I've been looking for a reliant solution for this issue as many of the solutions I found online have many drawbacks. Market Open or Close - how can I find it? - Day Trading Strategies - MQL4 and MetaTrader 4 - MQL4 programming forum (mql5.com) First of all, I
#property copyright "Ch" int handle,i,Total; int Slip = 3 ; int BuyTicket; int SellTicket; double H1W4_0,H1W4_1,H1W20_0,H1W20_1; double iCH10,xMultiply,zH1W420_00,zH1W420_11; // Init function int init() { if ( Digits == 2 ) xMultiply = 10 ; if ( Digits == 3 ) xMultiply= 100 ; if ( Digits == 5 )
  Traders joking, the beginning  (7326   1 2 3 4 5 ... 732 733)
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...
I have about four MT4s opened on a dedicated PC with Win 10 OS (no any other programs opened/running on the PC). For some inexplicable reason, the MT4s keep closing after a while without my intervention (I also do not have any EA that is coded to close the MT4 running on the MT4s), and I have to
how would I hide the depth of market and trade panel buttons
#property indicator_chart_window#property strictstring filename = "\\Images\\alpha.bmp";int start (){ObjectCreate( 0,filename, OBJ_BITMAP_LABEL, 0, 0, 0 );    ObjectSetString( 0, filename, OBJPROP_BMPFILE, filename );ObjectSetInteger(0,filename,OBJPROP_XDISTANCE,100);   ObjectSetInteger(0,filename...
[Deleted]
When I modify my stop loss of an open order, I get this weird Error number 0 with the error description "no error". My result is a FALSE and I cannot understand why. Here is what I am trying to do: At + 50 pips, update the stop loss price to my trade's open price. I do not know why this would cause...
Hello everyone, I intend to copy my personal trades from MetaTrader 4 to my MetaTrader 5. To achieve this, I have written two codes: The first code is for MQL4 , which saves the necessary trade data in a TXT file whenever I make a trade. The second code is for MQL5 , which reads the file, analyzes
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px '.AppleSystemUIFont'; color: #0e0e0e} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px '.AppleSystemUIFont'; color: #0e0e0e; min-height: 17.2px} Hello everyone, I’m currently developing an Expert Advisor (EA) that is specifically optimized for
Article URL : https://www.mql5.com/en/articles/2555#invalid_lot I am getting Error 131 To resolve this, I am trying something like Volume Error Handling . It update value automatically. Buy_Lot_Size = MathMax ( SymbolInfoDouble (buy_random_symbol, SYMBOL_VOLUME_MIN ), MathMin (Buy_Lot_Size