MQL5 Algo Trading community — forex forum for traders and developers

I got an email from my broker saying mt4/mt5 will no longer be available after April 24. Is this true? And why
  AI 2023. Meet ChatGPT.  (2045   1 2 3 4 5 ... 204 205)
In this thread I propose to discuss a noisy, perhaps prematurely overblown, but undoubtedly significant event in the field of IT technologies. An event that even hardened sceptics cannot ignore. Scientists, programmers, artists, entrepreneurs, workers. Everyone is watching, thinking or talking about
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
Hello, I want to count the open pending order. But my code cannot count correctly, can anyone give me a help? Thanks int ChecklimitedOrders16( int MagicNr) { int TodayslimitedOrders = 0 ; for ( int i= 0 ; i< OrdersTotal (); i++) { string OrderSymbol = OrderGetString ( ORDER_SYMBOL );
  Something Interesting  (540   1 2 3 4 5 ... 53 54)
This is about something interesting which we can find here for MT4 and MT5 on CodeBase, Articles and inside the threads. No any signals, market prodducts, external links (to download or any), no any advertising, no any commercial things please
Hello, I came across information on the EarnForex forum stating that MT4 has only 1 trade context, which is why it often shows error 146 ("Trade context busy"). On the other hand, MT5 has 8 trade contexts, making it more suitable for Algo trading because it is unlikely for all 8 trade contexts to be
Hello Guys! I would appreciate if anyone has some insights here. My problem is that, I'm running my expert advisors in mt5's VPS, and sometimes the EA doesn't take trades that it should, however when I re migrate the the EA takes a late trade under the setup that It should have taken. What I'm
I really hope somebody can help here. i have been trying to connect my ftmo demo account to metatrader 4 with my creditentals and added it. but it keeps saying no conncetion what i am doing wrong here
Do you know how to change the default value permanently ? Because after restarting MT5 - One Click Trading Panel doesn't remember my choice
The MetaTrader 5 platform update will be released on Friday, March 22, 2024. The new version enhances keyboard event handling capabilities in MQL5 programs. Developers can now capture key release and dead key events, improving interaction between applications and users. The MetaEditor has introduced
I have been looking for information as to why MT5 is no longer an option in the Web trader app. Can't find any information as to the reason? https://metatraderweb.app/trade?version=5
I want to edit a subtext in the meta trader platfrom 5 in a indicators, But in the code through meta editor its only showing one indicator their and even that sub text is present their I want to edit this text
Hello, The phone verification is completely broken on the website and I cannot register as a seller , moreover it's impossibile to contact their support becuase they only provide chat support which is absolutely useless.. I cannot register, I cannot open a ticket.. I hope I can open at least this
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, I have my own EA that uses a Windows DLL. Is it possible to configure this somehow so that it doesn't prompt me to confirm the DLL load every time I load the template? I'm wondering if there is a flag that can be set in the template ini file? Thanks
Dear Fellow Members I am trying to use, possibly a new approach with classes to create a multi symbol expert advisor. The main logic of it is explained below: The ArunFX.mq5, the expert will have different parameters and create instances of ExpertBase class for each symbol; The ExpertBase.mqh class
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
Now let me make this clear. What I'm about to share is not the Holly grail. In my 2 years of trading, using indicator combinations, and learning different strategies. I've finally come to the réalisations that the fundamental force driving the markets is liquidity. It can further be broken down but
Hello, I am new to coding and I cant seems to properly identify the trend direction using below codes. Your inputs is greatly appreciated. Thank you This is the logic: Trend Direction = 1 (if MA50>MA100 and MA50 last 3 candles is "Rising" and MA100 last 3 candles is "Rising" Trend Direction = -1 (if
Hi, please help me by adding trade times on EA, i want my EA to stop placing trades at 10 PM GMT +2 and start placing trades at 1 AM GMT +2. i have the source code but i have no idea how to do it, please help
I have an EA created on mql5 and for a few months I have been using it on a live account on icmarkets without problems, today I put it on another broker and I noticed that when I use it on American indicies in live market it does not works, the strange thing is that if I put it on strategy tester on
Do you believe that the strategies have expire time? Is market algorithm train itself to have more losers? Which strategy used to work well but not now? I will be appreciated if you answer theses questions
For instance, if you have $10,000.00 in your account, how much are you comfortable losing in a day? Is a 3% risk, which amounts to $300.00 per day, too risky
  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...
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...
Hello, newbie here. I have a question about finding a stable setting in optimization. I attached an image of the strategy with 1d, 2d, and 3d graph below. What criteria that you use to determine a stable region? From 1d graph I looked at area besides (left and right) the peak or the most profitable
Maybe someone can help me
Hello, Swap on Forex pairs is variable, and changes from day to day. In the MT5 Strategy Tester, is the historic Swap realtime and variable or is it performed with the fixed Swap read at backtest start? Thank you
  Efficient Trading System  (17   1 2)
Good afternoon, could anyone recommend me where I find en efficient trading system, or a platform that provides graphic proof of the efficiency. Any suggestions? I generally operate intraday or with short to medium time trades. Thank you
Which strategy is best to close profitable positions
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
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
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 Dax Index  (75   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...
  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
  Volume Tick  (1)
Hello! I would like to retrieve all ticks for the past n candles. In MqlTick structure, what is tick[i].volum and tick[i].volum_real ? I am geting zero for both of them unless I connect to a broker wich is giving real volume. Can I retrieve tick_volume at every tick for forex market using MqlTick
hello, it's been almost a week now that I've been creating my EA because I would like to have mine with my own strategy, I'm using chat gpt and claude ai (sorry), but here's my EA is well compiled and it's loaded in mt4 but in backtest nothing happens is live (demo) it doesn't seem to work either
Can't figure this out. I am calling a market buy/sell and provide all properties that are required with values, but yet I continually get "Invalid Request" in the error message. When it prints out, all properties have the correct values, but the request still is invalid. Is there something else I
Dear All, I am still a beginner in MQL5. I want to add a function of pausing my EA for a specified time after a set profit target is made. I am totally clueless as to how to achieve this. For instance, I want to place several buy trades at different times and I want the EA to keep monitoring my
Hi everyone, I'm programming an expert advisor for mt4 but when i run it on icmarket or any broker and the bot start opening a trade, it is not setting up the right price for the tp and sl. For exemple, imagine it opened a buy order at the price 1900 and i fix the tp at 30. It will set up randomly
Can some help clarify me on this! Is control point test on MT4 same as Every thick test on MT5? if no, what is the equivalent test for control point on MT5? And what is the equivalent test for every thick of MT4 on MT5? This is a lot confusing to me and I need clarity Please
All, Firstly I understand that back/forward testing is not an indicator of future results... When I optimise on MT5 using Demo account , therefore Demo data feed I always get 99% history quality. When I optimise using a Live account therefore Live server feed I am getting 80% - 30% history quality
I want to check whether the pending orders are for the current symbol or not (both buy and sell pending orders, but the code does not work. I'm still learning MQL5 , so I appreciate your help. bool NoBuyStopOrders() { for ( int i = 0 ; i < OrdersTotal (); i++) { if ( OrderSelect (
  Neural network  (4)
Where can I learn neural network in mql5? Or which book can I use to learn neural network in mql5 or mql4
  Better NN EA  (118   1 2 3 4 5 ... 11 12)
Hi Better has really good EA and is winning the championship Participants - Automated Trading Championship 2007 Profile Better - Automated Trading Championship 2007 What is NN ? Where are the NN threads in this forum? Can anyone here make this EA El cid
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
if I need to take 1% if equity as an order target profit, how can I calculate the number of pips (for TP) as a function of Equity percentage? pips = F(equity%)... Any idea? I need to find the formula... bahmanaskerov at yandex dot ru
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, need a function to detect if a market is closed for FX symbol .  My solution   bool market_closed(string symbol){    if(StringLen(symbol) > 1)    {        datetime begin=0;        datetime end=0;        datetime now=TimeCurrent();        uint     session_index=0; // guess latest/current...
Is there some styling a viewer of MQL5 source examples can do to increase contrast ? I can testify to come of age and use reading glasses is one thing, but when the contrast of code pages become a challenge it is either time to call it a day as developer, or see if readability can be improved. Known
Hi again, So this is my second indicator. And this indicator is created to be able to follow Jperl's Market Statistics thread on Traders Laboratory. Please read this summary document of that thread first. After reading that document lets discuss how can we use this approach in Forex trading... I am...
Here is the code for this, my RSI always returns as 12 for every symbol i use my script on Moving averages always return at 10 and 11 as well I Cannot for the life of me figure out why. // Calculate Moving Averages correctly double maShort = iMA(_Symbol, PERIOD_H1, 50, 0, MODE_SMA, PRICE_CLOSE);
Hello community, when trying to place a Buy Limit order programmatically, i get error 4765. It turned out, that the limit price is too close to market. It seems there is no information about an offset accepted by the broker for such orders. This is my workaround code , which simply repeatedly steps
Hi, I am sure I am doing something wrong, but I did my research and couldn't find the answer. Well, it is my first time creating an indicator, and I am confused with the results; the idea on my indicator is simple: I check the candle to see if it is bullish and closing above the high of the previous
Here's the code: Here's what the compiler says: Why does line 6 compile fine, but line 7 triggers an error
Hi, There is an issue with the <Deleted> indicator that I purchased here, its not working again when I attach it to a chart. And removing it and again installing it on the same account is using up all the available activations. My activations are getting wasted and soon there will be zero
Completely flummoxed now. I hope someone can help. I'll put the code and test results below, but in a nutshell, I've got 2 arrays declared exactly the same way: double MABuffer[]; int ma_handle; double DMABuffer[]; int
Hi Sorry if this is not the correct sub-forum for this question, I am unsure of the exact nature of my issue. Whether it is an indicator issue, strategy tester or MT5. I have recently had an issue on one symbol, where the Ichimoku indicator does not seem to work as expected. I was running an EA I'm
Another newbie question about this code, found at CopyBuffer - Timeseries and Indicators Access - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5 //--- we can copy not all data int to_copy; if (prev_calculated>rates_total || prev_calculated<= 0 )
  Need help indentifying indicator  (2700   1 2 3 4 5 ... 269 270)
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...
Hello guys, do you know how to remove all the zero value from the indicator histogram buffer value like this picture? for example I want to make the value from 5.60000 to 5.6
Hi! I'm trying to create a visual indicator (MT5) but I'm having difficulties (I only know the basics). I tried to modify a code available on the site, but without success (https://www.mql5.com/en/code/1349). What I would like is: Candle Green: Close is higher than the previous high: (C2 > H3) or
Try as I might, I just can't wrap my head around CopyBuffer. Straight from CopyBuffer - Timeseries and Indicators Access - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5 : Can someone explain how this is not a transposition
Good day. I have an indicator and on trying to upload it on the strategy tester i get the error cannot load expert. what is the cause of this error as it doesn't have an error code. even bug check cant help as it works fine in a live chart
Sell with Buy Stop Hedge for chart symbol / Buy with Sell Stop Hedge for chart symbol : Hedge with a stop order, instead of placing a Stop Loss. Author: Iulian Persinaru
Volume Average percent: In capital markets, volume, or trading volume, is the amount (total number) of a security (or a given set of securities, or an entire market) that was traded during a given period of time. In the context of a single stock trading on a stock exchange, the volume is...
Check out the new article: How to create a simple Multi-Currency Expert Advisor using MQL5 (Part 6): Two RSI indicators cross each other's lines . The multi-currency expert advisor in this article is an expert advisor or trading robot that uses two RSI indicators with crossing lines, the Fast RSI
Check out the new article: Population optimization algorithms: Nelder–Mead, or simplex search (NM) method . The article presents a complete exploration of the Nelder-Mead method, explaining how the simplex (function parameter space) is modified and rearranged at each iteration to achieve an optimal
Multiple Buys and Sells ORDERS based on a currency pair strength. : Short description. Author: Iulian Persinaru
New article Payments and payment methods is published: MQL5.community built-in services offer great opportunities both to MQL5 developers and ordinary traders with no programming skills. But all these features can't be implemented without in-house secure payment system, that provides a convenient
iForexSessions : Highlights the Forex Market Sessions (Sydney, Tokyo, London, New York). Author: amrali
  Indicators: SL&TP Values  (33   1 2 3 4)
SL&TP Values: Indicator displays the value of defined stop loss and or take profit in the deposit currency. Note: It calculates an estimated value based on a simple calculation and does not take into account brokerage commissions. Author: MhFx7
Check out the new article: Population optimization algorithms: Differential Evolution (DE) . In this article, we will consider the algorithm that demonstrates the most controversial results of all those discussed previously - the differential evolution (DE) algorithm. The idea of differential
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
New article Neural networks made easy (Part 5): Multithreaded calculations in OpenCL has been published: We have earlier discussed some types of neural network implementations. In the considered networks, the same operations are repeated for each neuron. A logical further step is to utilize
Power of CHF: Power of CHF indicator shows actual strength of currency CHF calculated of 7 pairs that contain CHF.Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: EUR CHF, USD CHF, GBP CHF, CAD CHF, AUD CHF, NZD CHF, CHF JPY. Author: JAN OPOCENSKY
Correlation Gaps Trading AUDJPY CADJPY NZDJPY : Short description. Author: Iulian Persinaru
Check out the new article: Neural networks made easy (Part 65): Distance Weighted Supervised Learning (DWSL) . In this article, we will get acquainted with an interesting algorithm that is built at the intersection of supervised and reinforcement learning methods. Behavior cloning methods, largely
Check out the new article: Introduction to MQL5 (Part 5): A Beginner's Guide to Array Functions in MQL5 . Explore the world of MQL5 arrays in Part 5, designed for absolute beginners. Simplifying complex coding concepts, this article focuses on clarity and inclusivity. Join our community of learners
Please double USDCADOPEN = iOpen ( "USDCAD" , PERIOD_D1 , 0 ); double USDCHFOPEN = iOpen ( "USDCHF" , PERIOD_D1 , 0 ); double USDJPYOPEN = iOpen ( "USDJPY" , PERIOD_D1 , 0 ); double AUDUSDOPEN = iOpen ( "AUDUSD" , PERIOD_D1 , 0 ); double EURUSDOPEN = iOpen ( "EURUSD" , PERIOD_D1 , 0 );
Hi All I want to increment my lot size by 0.1 but the first lot size has to be my default lot size calculation and then the 2nd lot just increment by 0.1 so on and so forth. I've tried to back test but the increment is incorrect, if there's any better way to do this your help will be appreciated
Which will be more effective, reliable and faster? Code 1 : void CloseOpenAndPendingTrades( 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 () ||
Hello, I am making a code, If Buy Order reach above 30 Point from Entry price, close Sell Order If Sell Order reach below 30 Point from Entry Price, Close Buy Order. int gRangeClosing_Automatic = 30 ; if ((LastOrderPrice(OP_SELL, gSellMagic) - Ask) / Point > gRangeClosing_Automatic) {
Below are step by step instructions, of how to subscribe to a MΤ4 signal: 1. Register a MQL5 account: https://www.mql5.com/en/auth_register 2. Open your MT4 platform and go to Menu >> Tools >> Optios and click on the Community tab. There you put your Login and Password of your MQL5 account
I haven't used MQL4 for a while , when i just get to use custom indicator when trying to get the method CopyBuffer , It doesnot exist among the built in functions, I guess my memory is not bad , It was there !! Is there the other way to get MLQ4 indicator buffer values
Hi guys like a title exist a free indicator for show me How much leverage am I exposed to? immagine i open a trade and i want know every time I open a trade and they increase I want to know how much the leverage is now i use by hend this calculate The exposure leverage calculation can be performed
Hello, OrderDelete(OrderTicket(), clrViolet) , I am using this code, it should create an arrow mark object on chart with Violet but it not creating. Full code : void CloseOpenAndPendingTrades( int trade_close_magic) { for ( int pos_0 = OrdersTotal () - 1 ; pos_0 >= 0 ; pos_0--) {
  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
  MT4 Push Notifications  (12   1 2)
Hi guys, I have been reading around but unfortunately I can't find any solution to my issue, so I would like to ask you for help. I'm currently using MetaTrader 4 Build 1090 under a Demo Account and for some reason I can't seem to get my custom indicator to send me Push Messages to my Xperia XZ. I...
Hi Guys, sorry to bother you with so "simple" question, but I can't find [for good time already] any way to move one [or more] indicator windows, up or down below main chart window without closing it and re-opening in desire order. By closing one indicator window and re-opening it I have to...
Please how to display the price that fibo has ? //--- установим количество уровней ObjectSetInteger (chart_ID,name, OBJPROP_LEVELS ,levels); //--- установим свойства уровней в цикле for ( int i= 0 ;i<levels;i++) { //--- значение уровня ObjectSetDouble (chart_ID,name
The MetaTrader 4 platform update will be released on Friday , March 1, 2024. This version provides error fixes and platform stability improvements. The update will be available through the Live Update system
hi i want to change red color of high to low line in Fibo tool to none-color in mql4 script. how can do it ? thank you
//--- * short trade if (trade_ok==true) { if ( ( Ask- SMA_10day < buffer* Point *K ) && ( price_above==true)) { ticket1=- 1 ; ticket2=- 1 ; while (MarketInfo( Symbol (),MODE_ASK)-MarketInfo( Symbol (),MODE_BID)< 4 * Point *K) // spread < 4 { Alert (MarketInfo(