MQL5 Algo Trading community — forex forum for traders and developers

  Paypal  (2)
Any updates about payal from Mql
Now I am using the EA on my VPS, the activation is 9/10. But my VPS is going to expire and I have to move the MT5 to another VPS. Will the activation become 8/10 after I move to a new VPS? Can I uninstall the EA on the old VPS, so that the activations would not be deducted
  MQL5 VPS  (32   1 2 3 4)
VPS issue - After syncing local MT4 terminal with VPS MT4 terminal: On my PC/Laptop the MT4 terminal change the status of the EA that was running (Enabled for live trading - smiley face on chart) to EA is DISABLED for trading (EA stopped - Not running) I suspect this is correct as you want the VPS...
Hello i am from from india and i want to topup mql5 services but due to local regularitys i cant make payments through the card so pls help me how i pay or Let me any other payment method which work in india
How to unfreeze normally freely able to be deleted and moved, New MT5 trading arrows on screen. Normally, when I put a buy or sell arrow on the screen for analysis or whatever, I could always afterwards delete it or move it. Now it is impossible. Once I have placed an arrow it is completely fixed
  push notification not working  (33   1 2 3 4)
Is there a problem with android app mt4 and mt5 with push notifications? I will only receive the notifications when i open the app. Anyone having problems?
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
please since 2 days now my vps is not starting and is giving me this error when i want to synchronize EA from metatrader 4. i have restarted my computer, i have tried starting it from profile/hosting Mql5 account, it is not starting. Virtual Hosting: 6270053 failed to get status for 6270053 failed
  Import alerts  (1)
Can I create a table with all signals I want and then in MQL5 Import those alerts
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
I uninstalled my mt4 platform and deleted data when uninstall. When I reinstalled back mt4 and logged into trading account and MQL5 account, my purchased product couldn't be attached into charts. The terminal takes long time till 30 mins still loading and not responding after i dragged the indicator
  Please I need help  (10)
I deposit money here, in my account in mql5 and I want to start trading using meta trader 5 but I don't know how I put the money I deposit in meta trader account, and I spent 48$ already on vps platform, please anyone can help me
  How to Start with MT5, a summary !  (83   1 2 3 4 5 ... 8 9)
How to start with MT5 platform : summary. As our topic about " How to start with Metatrader 5 " is going to be huge, here you find a summary, with main links. A very good article to learn how to use this site . How to start with MetaTrader and forex , the beginning , Some news about MT4 and MT5 for
  Where Do I start from?  (139   1 2 3 4 5 ... 13 14)
Hi fam! Am a total newbie in the forex niche... Just signed up here on this platform... Please where do i start from? I need help... Anyone willing to put me through?
[Deleted]
  Suggestions on learning MQL  (19   1 2)
Hello fellow coders/traders. I have some coding experience in Go and Elixir but i would like to learn MQL to eventually automate trading strategies i'm already using manually. I understand that experience comes over time but i can still use some of your suggestions on what learning material pr
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...
  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
  All About Price Action  (19   1 2)
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...
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
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...
  Dealing with high MFE  (18   1 2)
I'm having some large discrepancies between strategy tester and live trading (shocker). I recall looking through the backtest and forward test results after optimizations and my MFE was always very good, i left little on the table I was content. However after running my latest test it would seem I'm
  Chaos Theory by Bill Williams  (85   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?
  Bulletproof  (518   1 2 3 4 5 ... 51 52)
Try this combination on 5 min and up....you might like it...or not.... ⌒╮WELCOME ╭⌒╮ ╭⌒╮ ╭⌒╭⌒╮╭⌒╮~╭⌒╮ ,)))),'')~~ ,''~) ╱◥█◣ ╱◥█◣ |田|田||田|田| ╬╬╬╬╬╬╬╬╬╬╬╬╬╬
  Harmonic Trading  (5987   1 2 3 4 5 ... 598 599)
Hello all I have tested many strategies and many other stuff but i did not found them more accurant then basic analysis of the market. i mean,the Price Patterns. 1. harmony indicators : here and here. 2. candelsticks reversal patterns is here. 3. Price Patterns : - Price Patterns
  Does a safe Martingale exist ?  (210   1 2 3 4 5 ... 20 21)
Hi, With this topic I would like to contribute in a very serious way to the world of the martingale "believers". For those who don't know me or doubt my intentions google on "fxigor". So I hope with this topic that I can make a new wind blowing in martingaling. Let me first answer the question to...
Simple Ichimoku System - rules for the systems. Introduction. This indicator was created by Tokyo newspaper writer before World War II who had the pseudonym called Ichimoku Sanjin which we can translate as “a glance of a mountain man”. Ichimoku means “one look”; a chart of this style is referred to...
  How to interpret volume  (22   1 2 3)
At the bottom of the market, if the price is rising, you should see volume increasing. So every time you see a spike, volume should increase at that spike. This is accumulation and distribution stage. As the price goes down, volume should increase, and as the price goes up, volume should go down
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
Classic martin management when the price goes in the wrong direction is to hedge and reduce the initial trade propotionally. Do anyone have a management strategy without hedging and a hard stop? For example reducing the initial trade when acceptable DD is reached
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
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
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
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
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
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
[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...
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
  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 have a custom symbol for heating oil futures. At times, historical prices have dropped below zero. It seems that MT5 will not accept negative numbers for prices (see image). Is there any way to load negative values or is this not supported
Last Friday, the new MetaTrader 5 trading platform build 1375 with the Time & Sales option was officially released. The Time & Sales feature in the Market Depth window enables users to view the real-time list of all exchange transactions. The Time & Sales list provides...
Hello, Can any one please suggest me the best indicator for binary options trading? Thanks...
  Options Trading  (5)
Hi, Is there any way to access Options Trading in MT5 Platform
  us stocks  (2)
Hi I can't open spx and spy ,AMD on the chart no data What is the issue and how i can fix it
My EA is operating with Buy/Sell Limit orders on hedge accounts. When the buy and sell positions are equals, the EA uses CTrade.PositionCloseBy() to close a buy position with a sell position with the same volume. This strategy works very well in the demo account, but it does not work on the real...
I have an issue with some IF statements which are shown in my code below (I have taken out a lot of code that does not relate to the topic). All code highlighted in purple works perfectly, both lastSignal & thisSignal strings are updated when required. My problem is after my // Set SAR swap
Hello everybody, I tried to upload new version of my EA to MQL5 market but this time code was written in object oriented style. I can't pass validation tests and there is a message that some checks I didn't pass. Specifically that checks are considering lot size. I have mechanisms that prevent that
For my trading strategy I use levels from high timeframes like the Daily and H4, but my trigger to enter is found on much smaller timeframes like m1 and m5. My levels are drawn on the daily with a custom indicator. I'm trying to figure out whether I can create an EA to leave running on my trigger
I'm new to programming and i wrote a code for my ea but the journal shows failed narket buy 0.2 BTCUSDm sl: 105348.0200 tp: 105349.5200 [invalid request] and i do not know what to do. this is my OpenTrade Function. void OpenTrade( int orderType) { MqlTradeRequest request; MqlTradeResult
Hi all, I have two questions regarding the Strategy Tester in MT5. Maybe someone knows the answer: Are function calls to Print() and PrintFormat() automatically disabled during optimization, or should I rather check for MQLInfoInteger (MQL_OPTIMIZATION) before using them? My EA is quite verbose
I’ve developed an EA in MQL5 for Gold , where I’m using a 5000-pip SL and TP. However, I’m encountering an issue: initially, the order fails to be placed due to an ' Invalid Request ' error, but after several attempts, it eventually goes through. I’m trying to upload this EA to the MQL5 site, but
Hi, i am new to bots and have a question... Is there a bot available to perform the following, otherwise would it be possible to create this? To place a buy stop and sell stop order x pips/points above and below the opening price of a particular candle? For example lets say i want to buy dax germany
When trading indices and cryptocurrencies, the EA robot reports an error that the margin is invalid. The contract volume in the specification is 1. Does anyone know why
I am trying to debug my deinitialization with the visualizer, but I don't see any evidence of deinitialization in the visualizer's Journal. Is there a way to get normal deinitialization in the Visualizer Tool? Here is the basic EA I wrote to check to see if I could get any reactionary print in the
Hi there, I noticed, that on some mashines the Metatester consumes a lot harddisk... in the windows ressource monitor the harddisk is used with 100% ( running 10 tasks f.e.), therefore the process is more or less stalled ... this only happens on some mashines.. the RAM is not used at all , so there
  CheckVolume  (3)
hi, can anyone explane me why i can't find the method CheckVolume in the MQL5's guide?? please help me thanks
Hello everyone, I’m attempting to integrate ChatGPT (gpt-3.5-turbo) into MetaTrader 5 using WebRequest() in MQL5. When I call https://api.openai.com/v1/chat/completions , I consistently get a 401 response telling me: "You didn’t provide an API key. You need to provide your API key in an
Hello champs! So I'm trying to test and optimize my strategy using two Parabolic SAR indicators with different inputs. //... signalPSARHandle = iSAR (symbol, timeframe, signalStep, signalMax); if (signalPSARHandle == INVALID_HANDLE ) Print ( "Error creating Signal PSAR handle" );
Hi I am new to mql5. I want to write the code to connect the close prices of candles to each other in an expert advisor file. In Pine script, it is: plot(close) In mql5 I can use something like this, but it creates numerous parallel lines. int numberOfCandles = Bars ( _Symbol , PERIOD_CURRENT );
I would like to ask for your opinion. I am currently analyzing historical data and using it to predict future customer behavior (non-FX industry). This is a so-called big data analysis. I am thinking about a scalping indicator that would be based on historical market behavior. Creating a history of
I have found that placing one Object within OnInit() exponentially improves the loading of all other Objects created within a custom function or anywhere below OnInit(). Up top in the global scope: bool initialized; Inside OnInit(): ObjectCreate ( 0 , "Initial_Object" , OBJ_LABEL , 0 , 0 , 0 );
Please, I am unable to locate the indicator coloring buffers that I will leave attached, could someone help me
Hi Guys, Metatrader 5  Version: 5.00 Build 1940 02 nov 2018 I Created a trend line by angle like it: #include <ChartObjects\ChartObjectsLines.mqh>CChartObjectTrendByAngle trend;trend.Create(0,"HowGetAngle",0,time1, price1, time2, price2)); When I try get a angle: double trend_angle = trend.Angle();...
As from the title, how can I prevent chart objects from being seen in foreground in MQL5? I have also tried with OBJ_RECTANGLE_LABEL by setting different foreground properties of the chart and of the rectangle object, but without success. As soon as I drag my EA (with the rectangle object) onto
Good day fellas Can someone kindly assist me in coding a RSI(10) with a [SMA(10), Apply To: Previous Indicators Data...] Like so: (iRSI(NULL,0,10,PRICE_CLOSE,0)>iMA(NULL,0,10,0,MODE_SMA,.......,0) The blank part I want it to be Applied To: Previous Indicators Data. Your assistance will be highly...
i create Trend line by angle with code ObjectCreate ( 0 , "a" , OBJ_TRENDBYANGLE , 0 , iTime ( _Symbol , PERIOD_H1 , 10 ), iClose ( _Symbol , PERIOD_H1 , 10 ), iTime ( _Symbol , PERIOD_H1 , 15 ), iClose ( _Symbol , PERIOD_H1 , 15 )); ObjectSetInteger ( 0 , "a" , OBJPROP_COLOR , clrBlue );
Hi! What type of data should I have to create my own live graph like the Trading View in MQL5/MQL4? And where can I find the code to display it and make it alive? Thank you for reading my question at least
hi - so possibly an uber-noob question, but i would like the values of the MA's im using to show on the y-axes of my chart - similar like how the current bid/ask is shown in grey/red - but then in the colour of that particular MA. Anybody have an idea on how to go about this? Thanks
Hi, I Add some levels to Fibonacci Retracement but now I can not use F Retracement tool and it is locked. how can I fix the problem
Hello, a function of my indicator is to get history data and visualize the information of the History tab of MT5 to make it easier for me. The thing is that after some tries I realized I was getting double the number of positions that I had in the MT5 history tab. although I was getting the correct
  Correlation indicators  (163   1 2 3 4 5 ... 16 17)
a nice indicator i think green GBP /red USD se the pic
  Custom Timeframe  (2)
Is there any better way to add custom timeframe rather than creating an indicator for that? The problem with this approach is to modify existing indicators to work/get data of the first indicator
So I wanted to use a Bollinger Band Width indicator in mt5 but the only one available for free measured it in a weird ticksize so using it in optimizations or multisymbol EAs is not possible because of the huge difference in values. So I took the one from tradingview and tried to convert it into a
  Draw Trend Lines  (8)
void drawlr( string points) { string res[]; StringSplit (points, ',' , res); Print ( "res[0]" ,res[ 0 ]); Print ( "res[1]" ,res[ 1 ]); if ( ArraySize (res)== 2 ) { double close_array[ 1 ]; CopyClose ( _Symbol , PERIOD_H1 , 0 , 1 , close_array); datetime todays_time = iTime ( NULL
  Libraries: Math Utils  (56   1 2 3 4 5 6)
Math Utils: Handy functions for comparison and rounding of floating-point numbers (prices, lots and money). Author: amrali
CCI_Histogram_Round: Standard CCI oscillator implemented as a histogram rounding its values to the standard range. Author: Nikolay Kositsin
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
Check out the new article: Redefining MQL5 and MetaTrader 5 Indicators . An innovative approach to collecting indicator information in MQL5 enables more flexible and streamlined data analysis by allowing developers to pass custom inputs to indicators for immediate calculations. This approach is
Check out the new article: Reimagining Classic Strategies (Part 13): Minimizing The Lag in Moving Average Cross-Overs . Moving average cross-overs are widely known by traders in our community, and yet the core of the strategy has changed very little since its inception. In this discussion, we will
MovingAverages: The MovingAverages library is a part of Standard package of MetaTrader 5 client terminal. The library contains functions for calculation of different types of moving averages. Totally, there are 8 functions that can be divided into 2 groups of functions of the same type, each...
EA CloseAll : CloseAllOrdersEA for MetaTrader 4 closes all existing orders upon initialization. It works by: OnInit: Calls CloseAllOrders to shut down all market and pending orders. OnDeinit: Only logs deinitialization. OnTick: No action needed as orders are closed on start. CloseAllOrders: Loops
Check out the new article: Build Self Optimizing Expert Advisors in MQL5 (Part 4): Dynamic Position Sizing . Successfully employing algorithmic trading requires continuous, interdisciplinary learning. However, the infinite range of possibilities can consume years of effort without yielding tangible
Check out the new article: Price Action Analysis Toolkit Development (Part 9): External Flow . This article explores a new dimension of analysis using external libraries specifically designed for advanced analytics. These libraries, like pandas, provide powerful tools for processing and interpreting
Check out the new article: From Basic to Intermediate: Variables (I) . Many beginning programmers have a hard time understanding why their code doesn't work as they expect. There are many things that make code truly functional. It's not just a bunch of different functions and operations that make
Fair Value Gap (FVG) Indicator : The Fair Value Gap (FVG) Indicator identifies price gaps that occur when there is an imbalance between buying and selling pressure. It highlights areas where price is likely to return to fill the gap, providing potential trade entry points based on market
EasyAndFastGUI library for creating graphical interfaces: The EasyAndFastGUI library allows creating graphical interfaces for custom MQL programs. Author: Anatoli Kazharski
Comment : A simple replacement for a comment Author: Aleksandr Slavskii
Risk Manager EA : This is a simple EA that will buy/sell pullbacks while managing your given risk parameters. You need to decide on a direction, and the EA will do the rest. Author: Noah Kurtz
Check out the new article: Monitoring trading with push notifications — example of a MetaTrader 5 service . In this article, we will look at creating a service app for sending notifications to a smartphone about trading results. We will learn how to handle lists of Standard Library objects to
This is a very simple practice indicator, with minimal code. I drag it to BTCUSD 15m chart and I get "array out of range" error. Why is it so and what is the workaround? //+------------------------------------------------------------------+ //|
Sir I have an account with [redacted] and download Meta4 from their site. i use Meta4 since 2 years. But from last week I face problem in accessing MACD value display in window. The value Change and display in three digits. Pic Attached. i am not able to understand it
Hello, Currently I plot some long-term trendlines which I require to move, though I need to keep the same angles - this is important. And I need to move and see them across differing timeframes. The problem I have at the moment is to move a trendline, you need to double click it and move it by the...
I am having a little trouble with my EA, it performs well beyond what I would have imagined when I have back tested in MT4. Once in a demo account with a high amount on funds it can go either way, in one it performed very well and in another it lost a lot. I am now going mad trying to work out where
So I'm new with MT4 and for that matter to forex trading . Today I was trying to do back testing with some EAs. What I've noticed that for some reason the back testing is not working if I use 1 minute period. It only works on 15 minute period. I tried to download historical data from in csv format
hey there, i want to buy [redacted] MT4 but both paypal and Visa give me an error and won't allow me to buy? any advice? thank you
  Requests & Ideas  (7225   1 2 3 4 5 ... 722 723)
Hello , this EA is shwoing great result but i am sure that it needs some tuching tunning ( i guess playing around with its codes or adding others ) Please have a look at it i am sure it worth it - i hope so - attached is a forward test of this EA for just 5 houres or less ( when ever i get good...
I can't isolate the reason why the values that a custom indicator that is called from my EA gives when I try to backtest the EA, are different from the values this indicator shows when I attach it to a chart. I have tried to find info about the internal processes of the tester, but I didn't have...
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...
  Coding help  (7910   1 2 3 4 5 ... 790 791)
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
Here is a step by step guide for buying, installing, testing and using a Metatrader 4 Expert Advisor (Robot, Bot are whatever): 1. First make sure that you have the necessary funds required for your purchase in your MQL5 account, its always easier to pay with your MQL5 balance, than using a credit
I started this thread to post all news/signals indicators and EAs we have now and will have in the future.
Hello everyone. I have this code which works perfectly for me when testing it with EURUSD.a. However, when doing it with EURUSD I get error 131. It should be noted that I use the Pepperstone broker. Thank you! //+------------------------------------------------------------------+ //|
In this thread I want to begin to help those who really want to understand and learn programming in the new MQL4 and want to easily switch to MQL5 - the languages are very similar. This blog will be a good place to discuss tasks, algorithms of their solution and any other questions concerning MT
Hi, I'm looking for a simple martingale EA that would reverse the BUY and SELL signals using the martingale method and when it hits for example BUY take profit it would start with BUY signal. For examle it would BUY 0.1 lots, stop lose, SELL 0.2 lots, SL, BUY 0.4 lots, SL, SELL 0.8 lots, TP and then...