forex forum for traders and developers

hello guys, i have a problem about mt5 on macbook pro(m1). i have installed mt5 on my mac by .dmg file downloaded from,it could be runned,but the font of the windows seems abnormal,the outline of the font is not clear,but my display is very clear. what are the possible reasons for this
Hi there 10 days ago I rent Meta Trader VPS to run an EA via a broker(A) MT5. Recently I want to run another EA, but they say I must install another MT5 under the specific broker(B). I wonder whether I can run the 2 EA(under different brokers) at the same time? Thanks
Hello, i have an indicator that gives me signals (buy and sell). I want to determine if the current signal is buy and the preview signal is sell and the preview signal is buy, drawing lines between these signals as the picture to link the last 2 signals with the current one. How can i do this
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
Hello guys, No matter mql4 or mql5. Any success
I've read a few articles, and still have yet to find a working solution for this, while also trying not to deviate too far from what the documentation says to do. I'm trying to create my own custom SPY symbol ( different than the default SP500m data provided by the demo server ). For ease (and THIS
We have updated the 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
Hey, I would to change the anchor type of lines, it's is possible? I want to create a à profile type indicator, and I want the lines to hang on the right side of the chart
  Forecast and levels for Oil  (236   1 2 3 4 5 ... 23 24)
Brent Crude Oil April-June 2017 Forecast: weekly correction with possible breakdown; 49.69 support is the key W1 price located above Ichimoku cloud in the bullish area of the chart. The price is on the secondary correction which was started in the beginning of January located within the following...
  Press review  (7176   1 2 3 4 5 ... 717 718)
This link provided to me by RaptorUK, give me the idea that it would be interesting to have a place here on the site to share such links. So I opened a new topic, it will be moderated to follow the rules as usual, but also about the content. Everyone can post but have to provide a quote and the...
  Become an Author at!  (172   1 2 3 4 5 ... 17 18)
The new MQL5 Community website at 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
Hello everyone, I hope someone can help to check my code. I wrote my own function that counts the number of orders aggregated separately by the magic number. However, when I ran the Strategy Tester , I found that the function might not work as well. Here is what I wanted to do in the code. (I will
The EA works on the live & demo markets but when testing it works on some markets but not other, what might be the issue
Any new software inevitably contains bugs that are not alwayspossible to detect even under the most rigorous in-house testing. Wetherefore attach great importance to all user reports about issues inour programs and try to answer each one of them. In order to improve feedback from MetaTrader 5 end...
I have a trading system but it works when risk is 2 and then it gives reward of 1 It's a strange problem because even if system accuracy is high but I know that to grow account we must use minimum 1:2 trading system where risk is 1 and reward should be 2 or more So can you please suggest me what MultiRobot is an open sources project.  This is a robot that will include several strategies. Each strategy is framed as an MQL5 class and can be turned on and off.  I will look for strategies in various open sources and program an...
Hi i programming EA and it is work correctly in demo account, But when i want run it on real account i get the error 10004 and 10021. I read this link "" But the definition of some error is not clear and i do not understand
Hey, i am trying to create a graphical panel with buttons and Texts. Can anyone show me how to create one thank You
  CatFx50  (8091   1 2 3 4 5 ... 809 810)
Hi! UPDATE 30-09-06: Let's see if with the document attached we avoid the same questions each time a new viewer pops up. Validated indicators posted too. The right camarilla is camarilladt7v1. I attach a screenshot for settings (cet time). All the othe tabs should be set to false. Camarilla is an...
I just started this thread as a continuation of the talking made on this topic (we can read it). Or 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
When computing the Stop Loss what do you prefer? I mainly use ATR
hi internet is full of best entry strategies , but no one talks about setting TP points , what is best way to set take profit point ? latest swing points ? R/R ? pivots ? how you identify the retest so u dont break even fast ? do you use higher time frames for exit points ? but the problem is : i
After studying pivot points i started trading however in my trading research, it is the worst thing i came across because Its based on previous day hlc/3 information, but after deep study in technical analysis I found that market does not majorly move based on pivots but yes it follow up for sure
  Join the Dots.  (669   1 2 3 4 5 ... 66 67)
Hi Folks Please understand that this system makes money as a manual trading system and I have no wish to pay a coder to code one of my systems and then still make money from it. If that offends anyone, so be it, but at least it has been said right up front. This originated after following the...
Hi everyone, hope you guys are having a wonderful day. so the reason why i am writing this thread is, i have tried to stick to a few indicators  as my trading strategy, and i usually use higher timeframes (above 1h, usually 4h or daily), because i dont want to spend a whole lot of time screening...
hello dear friends i need help about martingale trading system for make a strategy that i don't lose more than 3 trade consecutive { i mean if i lose in first trade or even in second i must win in Third trade } pleas any one that know such this strategies introduce me or advice me . thanks so much
Discover in 15 Minutes: Watch the Video about Trading Signals in MetaTrader 4 and MetaTrader 5 The most frequently asked questions related to the Signals service will be collected and processed in this topic. The list of questions will be updated from time to time. Soon we will try to give answers
Based on your experineces, what huge impact factors can contribute to profit ? (please choose priority only one and give the reason) A. Risk Management B. Trading Strategy C. Technical Analysis D. Fundamental Analysis E. Discipline F. Constant Learning G. Other factor (please writed) I hope your
I was affraid to open this thread. Why? because it is difficult to manage many threads on one forum. Anyway - I will try :) So, we are talking about SIGNAL SYSTEMS
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
Which Stock Brokers offer MetaTrader 5 platform? Anybody know
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
New article Creating a trading robot for Moscow Exchange. Where to start? has been published: Many traders on Moscow Exchange would like to automate their trading algorithms, but they do not know where to start. The MQL5 language offers a huge range of trading functions, and it additionally...
At the 19th of October Ak Investment,one of Turkey's largest brokers, officially launched the MetaTrader 4 platform for Forex and CFD trading. The companynow offers its traders access to the rich functionality of thepopular platform — everything traders need from trading and analytical functions, to...
  Forecast and levels for S&P 500  (472   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...
  Forecast and levels for Dax Index  (71   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...
New article How to Secure Your Expert Advisor While Trading on the Moscow Exchange has been published: The article delves into the trading methods ensuring the security of trading operations at the stock and low-liquidity markets through the example of Moscow Exchange's Derivatives Market. It...
Live Trading With 50+ years of combined trading experience, TRADERS trade real money for real profits and sometimes losses. Our multi-million dollar TV studio broadcasts the first and only professional Trading Show on YouTube Live. Join us on YouTube Live every weekday from 8:30am to 4:00pm EST to
  Forecast and levels for Nikkei  (41   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...
Dear ALL I find that if I use MT5 for trading the futures, I can't separate multi-strategies independent in the futures symbol. For example: I have 5 strategies with five different magicnumber but all trading in s&p 500. In MT5, it will combine the order to one. And it will rewrite the magicnumber
  MT5 real FUTURES broker  (27   1 2 3)
Hello, is anyone aware of any futures broker that offer its client the MT5 trading platform ? Is there a list of those? I mean real futures, not CFDs. Futures that trade on CME Globex and Eurex exchanges. Thank you
In this episode, we spoke about stock predictions, Tesla, lessons form 2022, stock sectors, artificial intelligence, and more. We also went over how the wealthy using life insurance to avoid paying taxes. #taxes #lifeinsurance #stocks
  Order Size Error  (4)
My EA is having an occasional issue calculating the correct lot size. Most of the time it functions properly but occasionally it will try to send an order for the maximum lot size that my broker will allow (I can tell this because of the journal tab, along with a 'not enough money' error). The EA
Good day, how do I get the Parabolic SAR value for the previous candle
Hi all, I am looking for an MT5/MT4 EA developer. I need my trading strategy put into an EA. It's simple enough. Anyone open to having a chat? Let me know. Thanks
faq says is possible use event in mql5
i want to read an external parameter from csv, use it on tester, and then after each test pass update those parameter and write it back to csv. i try to put the imported parameter as global variable, so does with file name string. i use slow complete algorithm and optimization target was input count
  Better NN EA development  (840   1 2 3 4 5 ... 83 84)
Hello everyone, I will start this thread by first stating that if you are a beginner and have no high level programming experience you are better off reading other threads. I intend this thread to be for the very experienced programmers with some Artificial Intelligence background. I am attaching...
Hello! I am coding an EA that uses 3 moving average indicators. The indicators are visible on Strategy tester but they are all the same color. I created a template with the same name as my EA and set colors but this created problems of its own. problem 1: The old red indicator lines are still
Dear all, Build 2815, MQL5 Hello and I hope this post finds you all well. It seems that when my EA runs at the strategy tester it cannot access data that are sufficiently old. In particular, it loads data that are maximum one year old from the date that I wish to start running the EA but not older
Hey guys, was wondering if anyone could help me with my simple RSI EA, it opens very few trades, but basically I want it to open a position based on a candles close, if the RSI is overbought or oversold. I also want it to exit positions on the opposite signal. Here it is
Hello, I am encountering the "Invalid Stops" error message in my EA code. After conducting a check, the value that is being returned is 0. I have confirmed that the issue is related to the stop loss and not the take profit, as I am not placing a take profit at execution. I would like to know if you
  i can help!  (13   1 2)
How do I make an EA from an elephant bar setup? and how can i handle the candle size issue? for example consider a 100p or 50p elephant bar vary depending on the chart I am using
Hi all. I am migrating my EAs from MT4 to MT5. Yesterday I ran some back testing and worked fine. Today I get this error. and MT5 won't let me run optimizations. Says: - debug version of "Advisors\EA.ex5" detected - optimization cannot be started Thank you in advance for your time
Line 1 says: 'expressions are not allowed on a global scope = "Copyright © 2023, MetaQuotes Software Corp." Line 2 says: ')' - unexpected end of program= Buy trade order = mt5.order_send(symbol=symbol, type=mt5.ORDER_TYPE_BUY, volume=lot_size, price=mt5.symbol_info_tick(symbol).ask
Hi everyone, When I attach my EA to the chart it can create and read files no problem. In the tester, I can create files, but when trying to read them I get ERR_CANNOT_OPEN_FILE. //function to save results to file void save_results() { for ( int i= 0 ;i<TDs;i++) { string
While running an automatic market tester for verification, I encountered an error with my EA that is intended to only trade US330. As I understand that this might violate the market rules for EA limitations, I updated the OnInit function to alert the user instead of returning a non-zero error code
Couldn't find the calculations online. Does anybody know where I can find this
Hello everyone, I'm a new member. I hope you can help me to solve this problem. I would like to create a daily channel using .csv data format I create this data using excel and would like to use it in my charts. To be clear, I'm posting an image. Thank you for your attention and help. Paul
Dear Experts I'm new in programing and i need the maximum Upper Williams Fractals between 6 last Upper Fractals @ daily timeframe. So i tried to code these lines below: double Fractals_Daily_UPPER_LINE[] ; double Fractals_Daily_LOWER_LINE[] ; ArraySetAsSeries (Fractals_Daily_UPPER_LINE, true )
Hello everyone, I would like to post about an issue I encountered with the "DRAW_COLOR_CANDLES" indicator in MQL5. Depending on the values set, there can be significant delays in chart rendering. #property indicator_chart_window #property indicator_buffers 9 #property indicator_plots 1 double
Hi all, I was having an issue with a HTF moving average calculating the entire rates_total on every loop due to a badly designed for loop. I have created an indicator to help debug this and redesign the loop so that I am only calculating the most recent bar (after the intial loop through the whole
I am trying to fix an indicator which i converted into mq5 from mq4 however there is some error which breaks flags with error "array out of range" when i change period to 8 or switch timeframe, any help on fixing this is appreciated
  Fibo & Gann variations  (352   1 2 3 4 5 ... 35 36)
Fibo Levels indicator. Fully forecasting.
Hello, What is the custom tooltip size in MT5? Is it smaller, than in MT4? Is it adjustable? After custom indicator was converted from mql4 to mql5, not all info is displaying in tooltip
I'm trying to use SetSymbol indicator on MT5. After attaching indicator everything seems to work but then suddenly indicator disappears from the chart. Indicator window still shows indicator and also there is no error showing. SetSymbol.cpp #define PROPERTY_COPYRIGHT "Copyright © by iDiamond @
  RSI Cross  (3)
Hi Guys I was wondering if anyone has an indicator that draws an arrow when the RSI cross above the OB and below the OS. All i can find is arrows or alerts when the RSI enters the OB or OS zone. Im after an indicator that draws when the RSI exits the zones and candle closes. Many Thanks
Hi I'm looking to someone that can convert this indicator into an MT5 : If you help me, I will share my strategy with you :-D Thanks // This source code is subject to the terms of the Mozilla Public License 2.0 at // @version=5 indicator( 'Test' , overlay= true
Hi, I have create a new indicator, it is my first one and I have an issue to display the value in my chart. The value is stock in my array Buffer_yhat1 and the value comes from my function -> nadaraya(close, ArraySize(close), h) Can you help me ? Here is the code
Hello, can anyone code fractals indicator counter? If lower fractal is lower then previous lower fractal then number is 2, if another lower fractal is lower then previous fractal then number is 3 and so on. If lower fractal is higher then previous lower fractal then number is 1 again. It will be
As the title says, I am looking for suggestions on a good exit indicator for trend trading. Please link to codebase
  News Reader Indicator!  (80   1 2 3 4 5 ... 7 8)
Well, I'm not the creator of this simple indicator but I enhanced it! The indicator reads a .csv file (you have to place the .csv file in EXPERTS/FILESfolder). And dipsply the news on the chart. And alerts you 10 minutes (optional) before the news. The format of the .csv file have to be look like...
AK-47 Scalper EA : AK-47 Scalper EA is fully automated. It uses the strategy of entering the sell Stop order continuously and will modifythe order when the price is opposite to the pending order. Author: Nguyen Quoc Hung
Hotkeys_TimeFrames_v1.0 : hotkeys 1-9 numbers on keyboard but not on number-pad to change timeframes 1=m1 2=m5 3=m15 4=m30 5=h1 6=h4 7=d1 8=w1 9=mn Author: NickBixy
New article Creating a comprehensive Owl trading strategy has been published: My strategy is based on the classic trading fundamentals and the refinement of indicators that are widely used in all types of markets. This is a ready-made tool allowing you to follow the proposed new profitable trading
New article Testing and optimization of binary options strategies in MetaTrader 5 has been published: In this article, I will check and optimize binary options strategies in MetaTrader 5. Test results with averaging. Finally, success: Optimization results with averaging: Author: Roman Poshtar
New article Category Theory in MQL5 (Part 4): Spans, Experiments, and Compositions has been published: Category Theory is a diverse and expanding branch of Mathematics which as of yet is relatively uncovered in the MQL5 community. These series of articles look to introduce and examine some of its
Parabolic SAR Expert: Classic strategy based on Parabolic SAR indicator. With Auto Lot options and Trailing Stop. The EA is automatically generated with Mission Automate - visual strategy builder. More info: Author: Andrey Barinov
New article How to Buy a Trading Robot on MQL5 Market? is published: Now you also can use trading robots and any technical indicators with MetaTrader 5. All you need to do is to launch MetaTrader 5 trading terminal and open Market tab of Toolbox window. Author: MetaQuotes
Daily Range Projections: The indicator forecasts high and low price values of a financial asset considering yesterday's (completed) and today's day candlesticks parameters. Author: Nikolay Kositsin
Painel simples e objetivo : Esse é um codigo bem simples a respeito de um painel de informações. Não utiliza arquivos externos ou algo do tipo! simplesmente, copie e cole no seu codigo da forma que o codigo foi escrito. O painel exibe; Ativo Preço do ativos Sua posição(Comprada ou vendida) Preço max
New article Creating an EA that works automatically (Part 08): OnTradeTransaction has been published: In this article, we will see how to use the event handling system to quickly and efficiently process issues related to the order system. With this system the EA will work faster, so that it will not
New article Experiments with neural networks (Part 3): Practical application has been published: In this article series, I use experimentation and non-standard approaches to develop a profitable trading system and check whether neural networks can be of any help for traders. MetaTrader 5 is
New article Data Science and Machine Learning(Part 14): Finding Your Way in the Markets with Kohonen Maps has been published: Are you looking for a cutting-edge approach to trading that can help you navigate complex and ever-changing markets? Look no further than Kohonen maps, an innovative form of
  Indicators: SuperTrend  (14   1 2)
SuperTrend: The SuperTrend indicator developed for MetaTrader 4 based on the ProRealTime version. Author: Jason Robinson
Draw Ellipse: Ellipses are great for identifying areas of interest. Drawing them can be time consuming so I created a script that will create an ellipse on window drop. The ellipse is created where you drop it, sized automatically, regardless of currency pair or timeframe. Much quicker and easier...
  Experts: hedger  (4)
hedger: Protecting a position (hedging) Author: Vladimir Karputov
Hello, I hope that I am posting this in the right section. I've done so research of my own to see if I could find the solution online, but this doesn't seem to be such a big topic. I've found post of other who had the same issues, but no one offered any solutions. I figured I give it a shot myself
Hi I do a code in mq4 to show an arrow when: The Macd is above the 0 level line and the candlestick has the lowest closing price of the last 4, it will show a buy signal. And when the Macd is below the 0 level line and the candlestick has the highest closing price of the last 4, it will show a sell
  Off-topic MQL question  (371   1 2 3 4 5 ... 37 38)
I apologise for digressing from the main topic of the forum. I want to write a program, but I don't know where to start. I need to read some data from a webpage and based on that data perform certain actions on that page, simply put I need a bot. Please advise who knows, in what programming language
Hi, Im having some problems with showing certain objects only in specific TF. What happens is that it doesnt show  em at all.string tf = "";int timeframe = 0;string comment="";     switch(Period()){      case 1: comment="BB_M1"; tf="M1";timeframe=0x0001;      case 5:...
I tried searching for C++ Keycodes but nothing came up for C++, just different languages. I noticed the MQL4 help manual offers some examples, but I couldn't even find the ones that match up with the following example in the help manual: #define KEY_NUMPAD_5 12 #define KEY_LEFT 37
Hello. Does the indicator initialize every time you call iCustom
Hi guys indicator not work and Error array out of range. can you fix it ? #property copyright "Copyright 2022, Moal sofware Crop." #property link "" #property version "1.00" #property strict #property indicator_chart_window #property indicator_buffers 1 #property
Hello, I have these functions: void PositionSave() { int handle = FileOpen ( __FILE__ + ".bin" , FILE_WRITE | FILE_BIN ); if (handle== INVALID_HANDLE ) { Print ( "Handle Invalid" ); return ; } else { FileWriteInteger (handle,MyDialog.Top());
I hope I am posting in the right category. If not pls direct me. Hello, I am using Excel RTD from FX Blue Labs from  Pepperstone to connect my Excel 365 (Desktop) to MT4 to get real-time forex data and historical ones. I need to know how to use the fill handle to fill all the cells without typing...
Can anyone point me to the tools/libraries that can be used for developing Pattern Recognition on MT4? Thank you
When using the MACD indicator on the chart it shows 2 values - a Histogram and a Signal line. If you use the iMACD() function to calculaute the MACD values you have 2 options - MODE_MAIN and MODE_SIGNAL. I have always assumed thet MODE_MAIN represents the Histogram values. Now to my dismay I
  Usefull links/threads/tools  (55   1 2 3 4 5 6)
The thread about threads: what's going around the forum everywhere ============ MT5, mql5, suggestions for improvement thread ============ Requests & Ideas The beginning Requests & Ideas, the beginning - the thread Suggestions for Trading System thread After Requests & Ideas (MQL5
Hi, I draw short horizontal lines using this code Line=Time[a]+( PeriodSeconds ()*HlineBars); It draws shorter lines if there's weekend, I want to fix it, how do I fix it? Thanks in advance
hello everyone , I hope that you're having a great day , I was trying to use CHARTEVENT_CLICK to select the bar I want to draw Fibonacci On any timeframe the the indicator will draw 2 Fibonacci level , one on the current frame highest ,and the second on the highest close on 1m timeframe .. the
Hello community, i'd like to ask if someone else encountered this weird error that can only appear during backtest (and not on demo or live): OrderSend error 4107. The error should be related to: Negative values in price , stoploss or takeprofit parameters of the OrderSend() or OrderModify()