MQL5 Algo Trading community — forex forum for traders and developers

Hi, I am new to this community but need some help, I am using the Mt4 through IG trading, but my signal centre is blank see image below, I have logged into the MT4/5 community, any help would be welcome thanks
Hello For some reason on my Mac I can't connect the trading accounts, although the MT5 Demo account is connected. I tested it on my Windows PC and everything is working without any problems. I don't know what else to do. The only thing is that I received an email from MQL5 saying that I was in the
i Just bought mql5 vps but get an error, Virtual Hosting: 65699 failed to connect to server 'MQL5 Nurenberg 01' (173.249.13.200:443 failed)
Hi, I am new to MT4 and have 2 accounts coming from capital.com. One is a real account and the second one is a demo account that I wanted to use for testing. It seems like the EAs i use in the demo account are automatically set in the real account too. Does anyone know how i can separate the two
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
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
  Become an Author at MQL5.com!  (193   1 2 3 4 5 ... 19 20)
The new MQL5 Community website at http://www.mql5.com keeps developing. We invite all of you to make your contribution to this development. The new MQL5 is the evolutionary continuation of MQL4. The new language is characterized by the support of object oriented programming, by a higher code
Title. My question comes from the following situation: when a tp level is reached, it is commonly not executed at the price it was placed . Take the following as an example. We see that the take profit was reached (127,105) . However, the execution price was at 127,115 . In this market, this
Hi, I'm developing an alert/alarm system which is supposed to trigger when a certain datetime set by the user is reached. For debugging, I'm using my scenario here in Brazil where the stock exchange's and broker's timezone is GMT-3h, the live market opens at 10AM, the futures opens at 9AM and I'm
  MetaEditor, Open AI and ChatGPT  (51   1 2 3 4 5 6)
Forum on trading, automated trading systems and testing trading strategies Test version of MQL5 Copilot in beta 3647 Renat Fatkhullin , 2023.03.23 23:11 In today's beta version 3647, we've included the first version of Copilot, a feature to enhance the editor's ability to write code. The settings
I'm using the MetaQuotes version of MT5 on a demo account. Copilot is awesome, but how do I get more? I just tried it for maybe the 10th time today (which happens to be all-time) and got the response, "Copilot current quota exceeded, check your plan and billing details." Who do I contact to get my
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
The Main Study MetaTrader module for integration with Python - documentation Python Releases for Windows - website MetaTrader5 : Python Package - website ---------------- The Article MetaTrader 5 and Python integration: receiving and sending data - the article Seasonality Filtering and time
if mt5.initialize(path=path, login=login, password=password, server=server, timeout=timeout, portable=portable):
 print ( "Initialization successful" )

 request = {
 "action" : mt5. TRADE_ACTION_DEAL ,
 "symbol" : "6S_M" ,
 "volume" : 3 ,
 "type" :mt5. ORDER_TYPE_SELL ,
 "sl"
THE CASE DESCRIPTION I am running a lot of MT5 instances on one PC in order to test all the EAs on demo accounts before they go live. Because I need more than one instance of MT5 terminal on one PC, I am running them in portable mode. I have noticed also, that the newer versions of MT5 are
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
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
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
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
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
  Economic Events  (7)
Hello everybody ,a very long period of time i triyng to understand how the (economical events) news affect the market , and i never seen some logical effect in this. For example today for GBP is no news at all but he is rising against USD,on USD we have a lot of positive news,why EUR going rise if
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
Has anyone actually used an EA for passing their prop firm challenge and maintaining their prop firm accounts over a long period of time? If so, do you have proof? Trade history on myfxbook, for example? Thanks
  Programming tutorials  (174   1 2 3 4 5 ... 17 18)
In our technologically advanced world, programming and computer science have become transformative disciplines that drive innovation and shape society. Programming, as an art form, combines creativity, logic, and problem solving to create elegant and efficient solutions. Fusion of science and
  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
I have been trading price action for over 14 years and in this YouTube course I am sharing my most important tips and provide a step-by-step approach to mastering any price chart. ►Timestamps: 0:00 Start 2:28 Chapter 1: Candlesticks 15:37 Chapter 2: Chart Patterns 32:51 Chapter 3: Trend Analysis
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
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
I took chat GPT's help to code this EA. using the codes, I declared these two custom functions to check if there any buy position running now (made by EA) and to check of by stops as well. But several errors popup. I can't find out what are the mistakes. I appreciate your support... here are the
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
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
Hello guys, I’ve a problem with publishing my EA on the market. Although I’ve read all the related articles and topics on this forum to find a solution for it, but still I’m struggling with validation of my EA. All the obligations of the MQL4 has been included in my EA, but still I receive the error...
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 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
I encountered a validation error on the market mql4 " log files size exceeded" how can I fix this problem
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
  Oscillators  (41   1 2 3 4 5)
Does anyone have a large collection of oscillators (works best in a trading range) that he/she put together? Maybe we could start a thread where all oscillators are gathered. And let's go a little beyound RSI and Stochastic
  Zigzag indicators  (645   1 2 3 4 5 ... 64 65)
Different zigzag's indicators please post here
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
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
Hedge_Dollar_Index_Against_Forex_Pairs_V1 : Hedge Dollar index USIDX against its constitutive FOREX pairs EURUSD GBPUSD USDJPY USDCAD USDSEK USDCHF Author: Iulian Persinaru
Check out the new article: MQL5 Wizard Techniques you should know (14): Multi Objective Timeseries Forecasting with STF . Spatial Temporal Fusion which is using both ‘space’ and time metrics in modelling data is primarily useful in remote-sensing, and a host of other visual based activities in
Check out the new article: Population optimization algorithms: Spiral Dynamics Optimization (SDO) algorithm . The article presents an optimization algorithm based on the patterns of constructing spiral trajectories in nature, such as mollusk shells - the spiral dynamics optimization (SDO) algorithm
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 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
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 () ||
  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(
Good morning, I find it absolutely absurd that if I don't log into my vps for a while I can find myself with mt4 BLOCKED because it doesn't update. Incredible, that is, do I have to risk my experts not closing my operations just for an update? Are we joking? but who is the genius who decided that
//+------------------------------------------------------------------+ //| | //| Comprehensive MT4 Bot Code | //| |
Hello everyone, I have coded an EA and when I test, it keeps giving me a weired error: It seems like it is MT4 bug and I cannot do anything about it, I know how to reproduce it and I hope Moderators can help me. I can share the code, it is a very big EA, but I can send the code for any Moderator or
  MT4 download  (17   1 2)
I want an MT4 download link, I do not want to use MT5... Most people want MT4 so why push users towards MT5? Why should I go through a broker? Stop annoying a lot of people and provide an option!!!