forex forum for traders and developers

Hello fellow traders! I'm currently exploring the possibilities of using MQL5 for account management in MetaTrader. I have a couple of questions regarding account operations, and I was wondering if anyone here could provide some insights: Is it possible to create a demo account/real accounts
I have been installed mt5 with no problem on Arch Linux with wine.I have updated that in yesterday but it will not opens any more.when I run " wine terminal64.exe " in the installing folder of mt5 on arch.I will get me below error: 0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
After the update tonight to the new MT5 version build 3800 from June 08th 2023 I cannot connect anymore to my brokers. I always get the error: '<account number>: connection to <server> lost' imediately after the start up. All the 7 brokers I use are affected. This issue happens only on my Windows
  Sellers and the support  (19   1 2)
Comments that do not relate to the " Updates in Rules to improve Market products ", have been moved into this topic
In my EA I do a lot of comparisons among Custom Indicators' Buffers. Just to make it easier for understanding, consider the comparison like: if (MA[ 1 ] > MA[ 2 ] && MA[ 2 ] > MA[ 3 ] && MA[ 3 } < MA[ 4 ]) { if (RSI[ 1 ] > UpperLevel && RSI[ 1 ] > RSI[ 2 ]) { ... do
hellow moderator and admin can you added two factor authentication code site log in
Hi I have Windows 7 Pro. I was using Metatrader 5 and a message showed up saying that an update was available. I accepted the update but now MT5 does not start and an error message says something about ADVAPI32.DLL. Here is a screenshot of the message. How to resolve that ? If it cannot be resolved
Simple code but might have big impact on your trading results. MathFloor() delivers wrong result. #property strict void OnStart () { //double price = SymbolInfoDouble(_Symbol, SYMBOL_ASK); double price = 1.24579 ; // <<<< could ask / bid price. This specific value caught my attention. double
  MT5 Wine problem  (2)
Hello, im having issues with MT4 and MT5 regarding Wine! Opening MT5, im getting the error "This can be caused by a problem in MetaTrader5, or a deficiency in Wine, the compatibility layer used to run MetaTrader5". After closing the first alert, there comes a second one saying: "A debugger has been
I'm trying to input a very small variable into an EA script: input double mVar = - 0.00001 ; However it is being rounded to -0.1; this is a significant problem. If I do not declare MyVar as an input variable the value obviously stays as is. What can I do to prevent this rounding? I haven't been able
hi everyone, I'm still a beginner, is my code correct? trading hours: from 8Am to to 4Pm (8h to 16h) trading day : Monday to Thursday int OnInit () { MqlDateTime myLocalTime; TimeLocal (myLocalTime); int startHour = 8 ; int stopHour = 16 ; bool C1 = myLocalTime.hour >=
Hi every one how are you , I have a quick question for you . Today I posted a job at the freelancer section and suddenly I see that there is 20% vat on my payment, the problem is I did not see anything about VAT when I read the rules but I see that there is 20% VAT so my question is 1 From whom does
Hi I recently purchased an M2 MBP - I was running parallels fine with an M1 Mac mini. I've installed Parallels - Used the MT5 download link they provided for a fix for the startup of mt5. Which I may add works fine on the Mac mini. I've started up MT5, and was met with errors on login to community
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
I'm trying to upload a product to the market but for some reason the submit for review button does not do anything when I click on it. I have submitted all necessary documents or am I missing something. Please assist
Hello to all MQL5 gurus :-) Can you please let me know if you personally develop/extend these set of classes from the Strategy Modules (MQL5\Include\Expert) to build your own trading bots? If not, have you come across others relying on this or know how widespread it is used by the MQL community
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
  PriceChannel Parabolic system  (310   1 2 3 4 5 ... 30 31)
Some people asked me on the other forums about re-enter. But I am not using any indicator for re-enter. So I decided to create some simple trading system with re-enter based on indicator's arrow on the chart. Let's name it as PriceChannel Parabolic system. M1 timeframe. This is image for EURUSD for
Dear traders. The common belief is reward risk ratio is not enough in evaluating profitability. You also need to know the win rate. I have a theory for myself. I just want to know how you think of this. "You cannot stay profitable in long run with reward risk ratio less than one. Regardless of win
Is it possible to only copy specific pairs after subscribing to a trade signal? For example, lets say the signal provider trades 10 pairs, and I only want 3 specific pairs copied to my trading account? Would I just remove the pairs I don't want to trade from the MT4 marketwatch window
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...
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...
I am doing research on the methods used to trade and I thought I would open the discussion to all. Please provide me your thoughts if you like. In day trading using manual method, you will likely use the following methods. 1. Price action ( candle analysis looking at the "types" of candles) 2
Hello I'm new, I recently coded an EA using a custom indicator (using iCustom). Fact is that when I try to use the EA on another computer this custom indicator needs to be installed in the indicators folder. Is there a way to include the indicator straight into the EA, so that if I pass the EA to
  Trading System by Xard777  (3891   1 2 3 4 5 ... 389 390)
Here is a suggestion for a possible trading system... System one is MT4-Xard777.rar and System two is XARD-BOX.rar Enjoy... All the best Xard777
  Indicators Thoughts..  (23   1 2 3)
What do you think of Trading Systems that doesn’t use Indicators except ATR but only O,H,L,C, candle patterns, bar patterns and Time
Hello everyone. Do you think python is good enough for this purpose
  E&A Standard Trading System  (551   1 2 3 4 5 ... 55 56)
Hello All, I have developed a simple trading system that I call the E&A Standard. It works on any currency (I prefer low pip spread currencies for obvious reasons) and any time frame (Though any time frame less than 5M is not recommended). It uses SSL Channels and ADX Crosses. When the Indicators...
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
Hi, as you see, I can only connect to Binance-Demo server. how can I connect to my real account on Binance in MT5
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
Which Stock Brokers offer MetaTrader 5 platform? Anybody know
how to know which of the trade/stock has the highest volume/most gain
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
  Forecast and levels for CAC 40  (28   1 2 3)
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...
  futures  (4)
As I know if I buy a futures instrumentum on the stock exchange, as the expiration date approaches, it converges more and more to the price of the original instrument, but this is not the case at my brokerage company. Can anyone tell me what is the reason for this
Forum on trading, automated trading systems and testing trading strategies Press review Sergey Golubev, 2016.12.25 06:50 Hang Seng Index Q1 2017 Forecast (based on the article) "Underlying sentiment surrounding Hong Kong stocks has remained negative with underlying concerns surrounding...
  MT5 real FUTURES broker  (31   1 2 3 4)
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
Hello, Can any one please suggest me the best indicator for binary options trading? Thanks...
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...
hello, I'd like to run many test with different parameters and/or on different pairs automatically. for example I'd like to test my EA on EURUSD2012 and CADCHF2011 wihtout having to manually restart backtest at the end of the first run, in this way I could let my laptop work overnight and collect
Hello, I created an EA for both MT4 and MT5. When uploading the MT4 EA to the Marketplace, all validation succeeded with no errors. When uploading the MT5 EA to the marketplace, though, I get the error: 2020.04.30 02:05:30 failed instant sell 3.3 EURUSD at 1.08735 sl: 1.08768 [Invalid stops] I am
I can't pass the MQL5 validation test for my EA. It keeps giving me this error. test on EURUSD,H1 (netting) 2020.05.26 12:02:03 failed instant sell 5 EURUSD at 1.09610 sl: 1.19611 tp: 0.99611 [Volume limit reached] Even though I checked the max and minimum volume for trade and also checked lotstep
  How to delete pending order?  (13   1 2)
Hi: I have this first loop which scans for open orders and pending orders. If there is an open order and a pending order, I want to delete this pending order. What codes should I use below? int PosTotal=PositionsTotal(); int pnd=0,opn=0;&nbsp;&nbsp; for(int i=PosTotal-1; i>=0; i--)...
I have a JSON string that I'm trying to use to make a webrequest string json = "{\r\n" "\"time\": \"2023-06-06 10:00:00\",\r\n" "\"type\": 2,\r\n" "\"volume\": 0.02,\r\n" "\"stoploss\": 1.2000,\r\n" "\"takeprofit\"
Hi everyone, I hope you're well, I'm still a beginner, would you have any links or tutorials to find out if it's possible to modify the drawings that are automatically generated in the inputs and outputs?, For example, modify the arrows with other drawings if it's an input or output, or execute on
hi, unfortunatelly cannot get this information from CDealInfo. i will be very glad for a small exaple. regards
I know this question has been asked a few times on this forum, but I have not found a concrete answer. Is there a way to protect products on the mql5 market from piracy independently? It has become evident that products from the marketplace are being pirated and sold on third party websites. It
I have used this line of code to open a long positions, and it works well: trade.PositionOpen( _Symbol , ORDER_TYPE_BUY , 1.0 , SymbolInfoDouble ( _Symbol , SYMBOL_ASK ), 0 , 0 , NULL ); However, when I try the same thing with the short positions, no sell position is opened: trade.PositionOpen(
Hello, I have a complete python-project that calculates signals for a history of data. For simplicity lets say I have a class like that: class PythonSignal: def next(self, price_data) -> int : signal = ... # do some calculation on my state and the specified data
Hi, I've never used any of the Metatrader software packages before but have decided to make the leap and give MT5 (demo - AlpariUK) a try. I downloaded an EA from the Code Base and put it in the Experts folder. When I re-start or refresh MT5 the EA dosn't show up. Is this because its only a demo...
hi guys im new in mql5. how can i modify a position in mql5 with out classes
hey there, i am trying to work out how to draw a line on the opening price of a range i have defined in my EA. I am able to draw the high of the range in green, the low of the range in red... but i cant figure out how to draw the actual opening price so i understand the concept if the lastTick.time
Hey Guys, I rented a VPS last week. I want to change broker this week, can I use this VPS then for new broker? I rented 3 months... Thank you for help guys
2023.06.01 20:13:41.782 '4117408': order #67975146 buy stop 0.02 at 174.085 activated at price 174.090 2023.06.01 20:13:41.782 '4117408': order #67940641 sell 0.02 at 172.947 closed due stop-loss at price 174.090 Note: order numbers change when a pending order is filled. I
hi i creat an indicator who recognize the hammer config on the chart and dessin an arrow, now i need to add the letter "H" behind each arrow detected there is my code int OnCalculate ( const int rates_total, const int prev_calculated, const datetime & time[]
Hi folks, I need some help with my indicator, because the indicator drawing is flatten in weekly and monthly chart as shown below : This is typically how it looks like in time frame H1 : And here is my code : #include <MovingAverages.mqh> #property indicator_separate_window #property
Hi, I get an error: '{' - function definition unexpected datetime currentDay = TimeCurrent (); { if (currentDay != lastDay) // Update maximum drawdown if necessary } I have no clue what I am doing wrong, it's about the first bracket that the system just does not want to do. Please
I need help in one of my project that is in MT5 using MQL5 language. I have started learning MQL5 recently. So, b asic summary of task is; I need a custom indicator that incorporates 2 other standard indicators. For example, take the range of the SMA50H & SMA50L, and add/substract the SMA50Range
Good day, I am writing a script for changing all the chart with the same symbol. All is ok BUT... if I drag and Drop the script not on the 1st terminal chart, the script change the 1st terminal chart timeframe, with the timeframe of the chart where it was dragged and dropped...why ? Can you gelp me
Hi, is it possible for my indicator to get the buffer value from another indicator which is placed on the chart? I don't want to call it with iCustom(...) because the parameter for this indicator is unknown or can be changed in the meantime. I only want to get the values I can see in the data
Hi guys so I have created 2 indicators; 1 that draws levels, the 2nd combines MACD, MA and the levels, MA is based off MACDs data "Previous Indicator Data" but now how I can check if the values are above the levels. For instance if you drag the rsi, then the moving average to the same window as rsi
Hi Everyone I need an indicator to be displayed only on specified timeframe. Currently I have to do it manually by setting visualization property. Is there a way I can do it programmatically? Thanks in advance. Update: ........................ From one of the forum's post I got the following
I had a glitch on one of my indicator plotting lines which is meant only to be shown for the last 2 bars, which would sometimes show itself in historical bars when restarting MT5 after it was closed for a long time. Hitting refresh would fix it, but eventually I decided to head the problem off at
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...
Hi everyone I'm a beginner and I'm wondering how to use this function, how can I retrieve the function's return or a concrete example of its use? int OnInit () { int var01 = SetIndexBuffer ( 0 ,IndicateurBuffer, INDICATOR_DATA ); int var02 = IndicatorSetDouble ( INDICATOR_MINIMUM , 0 );
Hi guys, Could you help in fixing this error. The error is in ( input(title="Naked Forex - Kangaroo Tail & Big Shadow Indicator", overlay = true) i keep getting declaration without type. //+------------------------------------------------------------------+//|
  MT5 sensitivity  (9)
I think my MT5 is hacked, the sensitivity of the charts is wanting e,g the Relative Strength indexes have not touched the overbought and oversold lines,this is a breach of security can someone help me with identifying this person
Good morning I had several indicators eurx jpyx gbpx etc which were on the main window (offline maybe) on an old version of mt4 on which I can put my indicators. do these indicators still exist and if so, do you have the link
The normal solution if ( TimeCurrent ()>expiry_date) return INIT_FAILED ; does not apply in backtest mode! Do you think there is a solution
Fractals: The Fractal is one of 5 indicators of Bill Williams’ trading system, which allows to detect the bottom or the top. Author: MetaQuotes Software Corp.
New article Learn how to design a trading system by ADX has been published: In this article, we will continue our series about designing a trading system using the most popular indicators and we will talk about the average directional index (ADX) indicator. We will learn this indicator in detail to
MoveStoploss : MoveStoploss moves the stoploss as the trade move in your direction at a specific distance. Author: Daniel Opoku
New article Neural networks made easy (Part 2): Network training and testing has been published: In this second article, we will continue to study neural networks and will consider an example of using our created CNet class in Expert Advisors. We will work with two neural network models, which show
Pending Order count-BUY STOPS : This script counts the number of pending buy stop orders for each symbol and returns the value. Author: Chioma Obunadike
Fractal Prices-High : Returns the price for the most recent fractal high Author: Chioma Obunadike
Money Management : Close trades when the percentage profit or risk of the account is reached Author: Chioma Obunadike
New article - User Memo is published: In this article we have prepared some hands-on tips that will help you to get accustomed in and to take full advantage of it's available features. Author: MetaQuotes Software Corp.
Squeeze Momentum Indicator - LazyBear : Converted LazyBear Squeeze Momentum Indicator from TradingView to MQL4 Author: Lee Chee Tat
New article Category Theory (Part 9): Monoid-Actions has been published: This article continues the series on category theory implementation in MQL5. Here we continue monoid-actions as a means of transforming monoids, covered in the previous article, leading to increased applications. If we run
  Indicators: Shved Supply and Demand  (57   1 2 3 4 5 6)
Shved Supply and Demand : This is MQL5 version of Shved Supply and Demand written by Shved and upgraded by eevviill7. Author: Behzad Movaghar
RSI Scanner : Simple indicator that will scan thru the symbols in the MarketWatch window to alert you if price is overbought or oversold based on RSI. Author: Conor Dailey
Looking for a script like below example (done for indicators) to remove and EA from the chart: Scripts: SD Delete Indicators - Indices - Articles, Library comments - MQL5 programming forum I tried following but ExpertRemove() does not work on a script. ExpertRemove - Common Functions - MQL5
New article Websockets for MetaTrader 5 — Using the Windows API has been published: In this article we will use the WinHttp.dll to create a websocket client for MetaTrader 5 programs. The client will ultimately be implemented as a class and also tested against the websocket API. Running
SD Delete Indicators: The script allows to quickly remove indicators from charts. Author: Dina Paches
Hello everyone! I find this indicator on Trading view platform, and I want to convert this to MT4 indicator with same idea, indicator name is (Candle Body Size) that Plot bar size compared to SMA 50 bars back. Anyone can help me
Hi! I am struggling to make a simple indicator, probably by the lack of coding experience. My excuses for my silly mistakes! I am trying to get a indicator, similar to the AO, to show a bar of a different timeframe. So for example: I have the chart on a daily timeframe. But I want the indicator to
please whats the possible solution for this two error message on mt4 when i load my EA on my chart 1. Gobal Initialization failed 2. Invalid Ex4 file (7)
New article A Quick Start Or a Short Guide for Beginners is published at Hello dear reader! In this article, I will try to explain and show you how you can easily and quickly get the hang of the principles of creating Expert Advisors, working with indicators, etc. It is...
I have 5 vps previously and I closed down 2 vps last week.  My EA (5 licenses) was used up in all previous 5 vps.  If I have new vps in future, how do I deactivate my EA licenses from previous 2 vps, and activate at new vps? Please advise.  Marcus Lee 
I was told by my broker that Metatrader in the latest update did not include the MINI TERMINAL, one click open positions & one click close all positions. I sure miss this feature and would like it back !! As now, it takes 2 clicks to open, and many many more clicks when you have more then one...
Hi. I have created an MFT indicator that for each candlestick in the current time frame, sums the volume of the bearish and bullish candles in the M1 time frame separately and shows it in the diagram. But my problem is that the graph is only shown in a small interval and does not calculate the rest
Hi, I have an MT4 running on my remote server with an EA. When opening a chart (with no EA on it) and placing a manual trade and a stoploss, the stoploss keeps going to breakeven after 1 second. When can be the problem?! its super annoying
Hi, I'm unable to open my mt4 platform. I've tried so many different things, but none of them seem to work. Does anyone know how to resolve the problem
Hi, I want to ask if there exists already a library for drawing objects and handling according to the error messages (wait, move,...)?
Hello , i built this code trying to check the results of the EA's in my account based on their magic numbers. i loop through the trades from the oldest to the newest for each magic number and perform calculations in order to calculate values e0 , e1 ,e2 . i will share the code and then explain the
Hi, I want to know today's closed total profit.(whole account) Here is the code. However, when I open a new account and run the EA, it shows as same as account balance like below picture. This is because there is no closed profit today? Do I need to add some code ? double ProfitDey( int type) {
Why Money Management? Best system will fail in long-term if it is without proper money management. On the contrary, bad system can turn profitable if used with a good money management. Currency trading always go through the cyclical ups and downs, where winning and losing are just part of the game....
I've been programming and testing strategies in my spare time just for fun, but lately a problem with MT4 has made it impossible.  When I run a backtest, change the parameters, and run a backtest again, the second backtest frequently uses the parameters from the first one and so it gives me the...
  Editor Go to line  (10)
Hi, actually two questions, first: When you got an error from the compiler in line eg. 375. How do you get to that line? I haven't found any "go to" line in the editor, so what I do is I write xxx in some part of the code, hit compile again and narrow down the line where the code has the error. Is...