To post a new topic, please log in or register
  How to Start with Metatrader 5  (1293   1 2 3 4 5 ... 129 130)
I decided to create this thread to help to myself and to the others to start with Metatrader 5. I am experienced in MT4 and in forex in general (i hope : ) but we traders really need to collect all the information about it in one place. I will make some posts about 'how I am starting with MT5'....
Hi, Since market opening it seems my algo trading does not seem to be working through the New York VPS - is anyone else having this problem too? It’s not a problem with the algo itself as when I manually switch algo trading on it kicks in correctly. Many thanks
Dear Support, I can’t synchronize my Expert Advisers to my every tradeable charts if I use your Vhost service because of the „failed with code -1” error message. Since you have updated your Vhost service to new version at last the weekend I have this problem. Could you fix it? Regards, Arnold
  Signals Service  (4)
Can someone help me set up signals with my MT5 account. I had it set up then my VPS expired and now it isn't working. I updated the VPS and thought I reconnected it, but nothing is working. Thanks
  Nested For Loops  (6)
Hello, I am at the beginning of trying to create a support and resistance indicator which uses swing high and lows. I have started with a bit of code which should look back looks for two swings highs and checks whether they come within ATR of each other. The issue I am having is I want to run a loop
i have 8 variables with different values stored in them , and i am trying to get the variables in descending order , how can i get the name of the variables in descending order? : largest variable second largest variable third largest variable . . . . . smallest variable i tried the array sort but
  Service Desk  (26   1 2 3)
I tried to upload money from my paypal account. Some problem occurred.  I tried to contact service desk but there ar not link to service desk in my profile. How can I contact service desk?
Any idea why the cloud protector might not be working? It says "cannot connect to protector server, please check settings". And "sending request to protector server error" (please see image). Thank you in advance for your input
Do i need to do something to start the copy? I already subscribed. Where can I change my parameters
  How to start with MQL5  (70   1 2 3 4 5 6 7)
This thread discusses MQL5 code examples. There will be examples of how to get data from indicators, how to program advisors ... in general, any questions from beginner to the MQL5 language. If you are just starting to get acquainted with the MetaTrader 5 terminal, then I can recommend the...
Trying to get the EA to return the closing price at 5pm and store the value in a variable. This should be done every tick so at 5pm the next day it stores the new close price. Can anyone help? string five = "17:00"; datetime NY; double NYClose; void OnTick() { NY = StrToTime(five);
Dear All, Kindly inform me about the maximum agent i can install because i have installed the agent on 400 PC and after installation done and agents were running maximum of the agents has been stopped and in some PC's the agent has been removed!!! Thanks in Advance Ihab
  Indonesian Member  (5231   1 2 3 4 5 ... 523 524)
I want to know how many people from Indonesia is joining this forum. If you're from Indonesia, please comment this topic..Thank you..
@Alain Verleyen or @William Roeder , do either of you know if there is a query character limit in mt5's sqlite connector? If so, I may need to use triggers as a workaround (which is ridiculous). I've tested a bunch of valid sqlite queries on my db. When I try to execute the same queries from mt5
i forget why application was rejected many years ago, the question is I can never be seller
  Forex Correlation Theory  (35   1 2 3 4)
PRACTICAL USE of the Correlation Theory This article is focused on explaining how currency correlations can be used in a very practical way. Our goal is not to dive into theory or theoretical models but show how correlations can help solve practical trading-related decisions. The Forex Correlation...
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...
one week ago I just bought an EA with 5 activation and I used up already, how long should I wait to be able to buy same EA? since I tried already but MQL5 won't allow me to purchase. I put creating new MQL5 account as the last options. Is anyone have the same problem? or any info about this matter
One strategy I can use is Andrew's fork
Can anyone tell how to trade ? Open Date Close date Symbol Action Lots SL(Pips) TP(Pips) Open Price Close Price Pips Profit (USD) 12.19.2013 08:53 12.19.2013 15:05 XAUUSD Sell 50 93.4 1204.24 1194.9 93.4 46400 12.19.2013 08:53 12.19.2013 15...
Locked-in Range Analysis (abbr. LRA) is the futures market analysis method, described in the ebook "Locked-in Range Analysis: Why most traders must lose money in the futures market (Forex)" by Tom Leksey, which minimizes an uncertainty in the futures market. LRA is the method of interpreting the...
HI,Which strategy is best for BTCUSD?
I've been working sooo very long on trying to creat a successful forex system. I've bought tuns and tuns of systems and have downloaded thousands of indicators. My history is 3 years in the forex trading world and have had some successes and many failures, mostly due to poor money management for the...
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 everyone, i have one goal and that is to find the best candlestick pattern to trade. But i am not interested in just some random listing of patterns, like: "engulf, morning star, hammer,...", i want FACTS, i want to see serious analysis, do you have it? Can i repeat it? Do you know for some
  KiS  (20   1 2)
Indicator using for the KiS trading strategy. Used mainly for EURUSD M30.
hello, I was wondering if there is a script or a small function i can add to a chart with a EA.., that trades the EA the same way , but trade the signals opposite of that they would have been. where buy signals would become sells...or sells become buys.. but everything else in the EA would function
I've developed a strategy which it's working fine on flat trends such as EURUSD and some periods of other currency pairs , so I would like to adapt it to work multipair
Hello,someone scalping renko bricks dax and us30
  "No loss" recovery hedging system  (143   1 2 3 4 5 ... 14 15)
Question: Would you be willing to trade any system or strategy you want on your $10000 account and turn every trade you take into a win trade (of $200 or $20) or a breakeven trade and have only a small theoretical chance of losing let's say $600 in worst case scenario? Some traders would probably...
I am trying to find an MT5 order entry tool that has features such as custom order templates, Market/Pending orders, OCO orders, and/or hot keys to speed up order entry. It would also be great if you could choose to enter your SL and Target using ticks instead of price. I have looked at quite a few
Hello, Where can I find an example of EA to trade stocks or ETFs? An EA based on a moving average would be fine. Thanks in advance, Pierre
Stock Market A To Z: 26 Names, Themes And Trends To Watch (based on the article) A is for Apple "The stock trailed the broader market in 2016, but there may be tailwinds in 2017. Tax reform may include a provision that incentivizes the company to deploy its billions in foreign cash back to...
  Apple  (39   1 2 3 4)
AAPL Technical AnalysisL daily bullsh with 120.35 resistance to be testing for the bullish trend to be resumed Daily share price is located far above 200 SMA in the bullish area of the chart: the price is on testing resistance level at 120.35 to above for the bullsh trend to be continuing. If the...
I've searched through the internet, but did not find a documentation or informal data on proper order book (Depth of Market, DOM) structure and content. There are numerous articles about what the order book is in general and many examples of trading by it. But there's no exact information what is...
New article Principles of Exchange Pricing through the Example of Moscow Exchange's Derivatives Market has been published: This article describes the theory of exchange pricing and clearing specifics of Moscow Exchange's Derivatives Market. This is a comprehensive article for beginners who want to...
Hello, Can any one please suggest me the best indicator for binary options trading? Thanks...
A variety of integration gateways to liquidity providers and stock exchanges have recently been developed for MetaTrader 5 trading platform. Using these solutions, brokers now can greatly improve their business and enter new markets. We have decided to summarize the first integration results and...
  Welcome to the new section!  (21   1 2 3)
Inspired by comments and reviews received from 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...
hi can i turn mt5 as a binary option platform to close the deal in the active time with API or other method & how? thanks
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...
As far as I know , there are three kind of bar, time, tick and volumn. time bar--prints a bar for every x number of time, such as seconds, minutes,hours and so on. tick bar--prints a bar for every x number of trades,If someone trades 1 contract in a transaction, that counts as one trade. If someone
The Best Stocks Of 2016: Nvidia (based on the article) The price was increased by 10% just for December only!
  McDonald's  (14   1 2)
The weekly share price stopped the bearish reversal and it was bounced from 110.32 support level to above to came back to Ichimoku cloud to the ranging market condition. Fow now, the price is on testing 121.85 resistance level to above for the reversal to the trendy primary bullish market condition...
  Forecast and levels for Dax Index  (64   1 2 3 4 5 6 7)
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...
hi guys can anyone help me out on this one am getting wrong paramater counts … am sorry about that guys void BuyTrailingStop( string Symbol , double TrailingStop, double MinProfit, int MagicNumber, double MaxStopLoss) { for ( int Counter = 0 ; Counter <= OrdersTotal ()- 1 ; Counter++) {
I am still learning to code and this code was given as an introductory sample... It used ORDER_FILLING_FOK, but with both ORDER_FILLING_FOK and ORDER_FILLING_RETURN it gave an error as "unsupported filling mode". So i tried with ORDER_FILLING_IOC. Now it opened the order but didn't seem to close it
Hi, I get annoying problems with 2 indicators out of 4 used in my EA. Whatever I do, the EA fails to load them, even though they get compiled successfully into resources and the other 2 indicators work fine. They only work when I put the files into the indicator folder, which gives me the...
Hello, I have multiple indicators and various periods that I take into account to enter and exit a trade. What are the steps to put them together in an EA so that when conditions are right I enter or exit a trade? Can I use an existing library or template where I point to my various indicators and...
This is a basic question but I just want to be sure. If I buy an EA here in MQL5 community, can I use it for multiple accounts? I plan to run it first again on a demo before a live account.... and is it possible to run it simultaneously on multiple accounts on multiple platform instances in a VPS? I
  CopyBuffer Limitation!  (11   1 2)
hi guys i tried to make system to back test my theory however when i try CoppyBuffer seems Maximum number it work is 35 ! so wondering if there is any workaround this limitation?! since i want whole year buffer eb examined oh btw its not for iCustom just official indicators buffered tnX for help in
I have coded a robot but my knowledge of coding is limited so, obviously, I have added the functions I need but I see these are not working right. I am constantly modifying the code LIVE adding /if and /while according to what I am seeing in the market. So, my question is, Is there a preestablished
Hi, I have an EA I developed and have used it for a lot of months in real time account, when it worked fine. Recently I decided to do some changes in the setups used and that lead to me to test it in the Demo account, something I normally didn't do before. And now, surprisingly, it is finishing
handleATR = iATR ( _Symbol , PERIOD_D1 , 20 ); ArraySetAsSeries (arrayATR, true ); if ( CopyBuffer (handleATR, 0 , 0 , 40 , arrayATR) < 0 ) { Alert ( "ERROR: unable to copy atr. exiting..." ); return ( false ); } cannot copy atr data. Initialization returns false. how can i solve this problem
I am doing a big optimisation for one of my EAs. Turns out my local machine and local network agents won't cut it, so I opted into the MQL5 cloud network . Anytime I enable MQL5 cloud agents I get the above error. It's still deducting money from my MQL5 account though. What's up with that error? I
Hi Guys, I created an EA that do Long&Short operations based on ratio and also based on spread between two symbols. In order to view what is happening on the graph I create custom symbols to represent the Long&Short. However, creating the custom symbol by my program I didn't found how to set the
Hi there, I'm having trouble with my partial close function , it seems to be not working as I get same results both if true or false. These are the lines: if (PartialClose== true ){ for ( int i= 0 ;i< PositionsTotal ();i++){ // Same result with for(int i=PositionsTotal()-1;i>=0;i--){
Hi, please excuse my noob question, but why don't i see "Ask" and the rest of the predefined variables on the list anymore? and the MetaEditor is not recognizing this "Ask" which is supposed to be a predefined Variable
I keep running into this error at the automated validation testing: test on EURUSD,H1 (netting) strategy tester report 606 total trades test on XAUUSD,D1 (netting) 2018.06 . 25 01 : 34 : 00 failed exchange buy 0.20 XAUUSD at 1271.980 sl: 1271.480 tp: 1272.480 [Invalid stops] 2018.06 . 27 01 : 00
Hi everybody, I are format the amount for the balance whit this code: double AccountBalance = DoubleToString ( AccountInfoDouble ( ACCOUNT_BALANCE ), 2 ); Whit this var i get for example "140.56" and its fine, but if the amount is 1590785.90 i get "1590785.90". How i can get "1,590,785.90"
Hi everybody, I try to develop in MQL5 a function multi iRSI, i wish send in a parameter the TimeFrame for calculate and this return the value. I have this example but i need write a function for each timeframe, it's not practique. How i develop just a function multi time frames? Thanks :) double
//+------------------------------------------------------------------+ //| SimpleMA.mq5 | //| Copyright 2020, Julio Monteiro | //| |
Hi, i have a very simple question but i just can't figure it out. the syntax just doesn't work and i've already tried a lot of cominations. i have two symbols in the market watch, the ws30m and the @YM. so i want to calculate the spread: double Ask = SymbolInfoDouble(_Symbol, SYMBOL_ASK ); // i'm
  Update or delete line  (16   1 2)
Hi I have an indicator that draws a line at candle open of 1h timeframe. Then I switch to 5min timeframe. When 1h candle is closed and price moves, the line that has been drawn previously is not deleted and a new one is drawn (still in 5 min tf). How can I delete it and recreate it? or rather update
Anyone with support and resistance indicator with its inputs parameters and buffers? I will put it in EA and share with
TMA+CG mladen nrp (1) TMA+CG mladen alerts mtf nrp. Hello guys, some help please. Im having trouble receiving POP UP alerts from the above indicators. I have set the appropriate alarms to TRUE but still no success. Other indicators used are sending alerts. Any help would be gladly appreciated. TIA
I have an indicator that I'm using iCustom to feed an EA. I can get the value from Buffer 0, seen below with a value of 1. But when I go back more than 500 bars, even though I see a value of 1 in the date window, the value it returns in iCustom is EMPTY_VALUE. So I thought maybe it was stored in a
  Problem with CopyHigh/Low  (12   1 2)
Hi, I have problems with the code below. When MT5 is freshly started and the profile is loaded, CopyHigh/Low returns nonsense values. Only after reinitialization by switching timeframes, the correct values are loaded. Whats wrong here?...
how do you add <..> indicator to the mql5 platform? I know how to add to 4. Thanks
  Indicators with alerts/signal  (15859   1 2 3 4 5 ... 1585 1586)
Some indicators with alert/signals with author's comments: - EMA-Crossover_Signal: Enter two Exponential Moving Average periods and it'll tell you when they crossed. - SMA-Crossover_Signal: Enter two Simple Moving Average periods and it'll tell you when they crossed. - SMMA-Crossover_Signal: Enter...
Hello! i just want to ask if how i can set the yellow green dot to the size of previous candle from low to high x2. Thanks
  How to detect a new bar  (25   1 2 3)
Hi All, I'm a complete newbie to MQL5 but I've done a fair bit of coding for other platforms. I'm wondering why it is so difficult for an EA to execute only on a new bar. I've had a look at some of the articles, including the "new bar" event handler, and it seems very difficult. If that won't...
Can anyone please look at the MN1 chart for EURUSD, parabolic SAR indicator is incorrect on March 2020 bar. I have attached two screens, one from MT4 and another from MT5. I have copied the source code of the PSAR indicator and compiled it under a different name, but same source code, this is what I
  Daily Vertical Lines in MT5  (14   1 2)
Hello altogether, I used to trade via MT4 (that was a while back). Now I wanted to start trading again and installed the MT5 Software. Back in my MT4 times I used this indicator --> <-- to display certain times in my chart, which was (and hopefully will be again)...
Hi Does anyone know of an order flow volume indicator for MT4 that shows the buyers and sellers within each bar like this one for Ninjatrader?
ATR Value Indicator: Displaying ATR (Average True Range) value in pips or points with option for setting multiplier. Author: Hossein Nouri
McGinley Dynamic Indicator: The McGinley Dynamic indicator is designed to follow prices, avoiding whipsaws that are given when conventional Moving Averages are used. Conventional Moving Averages have a fixed period and therefore a fixed speed. As a result, price separation occurs when the...
New article How to Subscribe to Trading Signals is published: "Signals" in MetaTrader 5 trading platform allow traders to connect to any signal issued by providers. Select and subscribe to any trading signals provider to copy all his or her deals on your account. How to become an investor and...
Buying and Selling at the Same Time: This EA implements a grid strategy by placing buy and sell orders at the same time. Author: sathish kumar
New article Payments and payment methods is published: 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
NNFX Auto Trader : Manage risk like No Nonsense Forex easily in MT4 Author: Alejandro Cercós
  Indicators: FivePattern  (26   1 2 3)
FivePattern: This indicator shows М & W Wave Patterns by Merrill and support/resistance levels on a chart. The indicator is recalculated on each new history bar (to save CPU time when rendering objects). The names of all objects are pseudo-random. The indicator calculates the predicted price...
New article How to create bots for Telegram in MQL5 has been published: This article contains step-by-step instructions for creating bots for Telegram in MQL5. This information may prove useful for users who wish to synchronize their trading robot with a mobile device. There are samples of bots in...
Price momentum oscillator : Price momentum oscillator Author: Mladen Rakic
New article MetaTrader 5 and Python integration: receiving and sending data has been published: Comprehensive data processing requires extensive tools and is often beyond the sandbox of one single application. Specialized programming languages are used for processing and analyzing data, statistics...
New article MetaQuotes ID in MetaTrader Mobile Terminal is published: Android and iOS powered devices offer us many features we do not even know about. One of these features is push notifications allowing us to receive personal messages, regardless of our phone number or mobile network operator....
Multi Strategy Ea: If you have a strategy to trade with it, You can use this EA and set Your Parameters And trade with this expert Author: Farshad Saremifar
New article Native Twitter Client for MT4 and MT5 without DLL has been published: Ever wanted to access tweets and/or post your trade signals on Twitter ? Search no more, these on-going article series will show you how to do it without using any DLL. Enjoy the journey of implementing Tweeter API
Correlation trend indicator : Correlation trend indicator Author: Mladen Rakic
EA_MARSI: The Expert Advisor is based on EMA_RSI_VA indicator. Buy signal: upward crossover of the fast line, sell signal: downward crossover of the fast line. The EA has lot increasing option, which depends on the deposit/max.drawdown ratio. Author: Im hungry $600 000 with $10 000 initial...
Hi I am in the process of learning MQL4 and would like to seek advice on how and where to define the functions properly in my EA as I am struggling to get it to work. Below is the general sequence of events I am trying to code. 1. On every tick, count the number of open buy/sell orders 2. If the
Hello Folks, I noticed if there is a computer crash, when i relaunch sometime my terminals, the timeframe of the charts of the currency i was trading have changed. Example before my computer crashed the charts i was trading and running an EA with several pairs were all on H4, after the crash when i
  MT4 downoad  (1)
Hello I'm a new trader When I try to download MT4, the page is redirected to the MQL5 website and MT5 is downloaded instead Anyone with the same problem
New article SQL and MQL5: Working with SQLite Database has been published at This article is intended for developers who would be interested in using SQL in their projects. It explains the functionality and advantages of SQLite. The article does not require special knowledge of SQLite...
Hi Guys, I'm Not a Pro Programmer, I Wrote a Multi-Time Indicator. But I Still Have a Problem, When There Is a New Candle, Indicator Doesn't Update as Well, How Can I solve This? The Code Is Below #property copyright "Copyright 2017,Navid Aria " #property link "" #property version "1.00"
  Dolly new MT4  (45   1 2 3 4 5)
Dolly Graphics v16The Dolly indicator has been updated to reflect the new code available with the new 600 series MT4, hopefully when MetaQuotes release the next platform update everything continues to operate. The indicator is currently being tested and checked for any obvious bugs and will be...
Hello need some advice from the experts i am trying to find the window id of the indicator but there is a bit of a confusion , i know i can find the window id by using the function: WindowFind( "My Indicator" ); but what if there are multiple instances of the same indicator attached on the same
Hi My arrow symbols seems to have turned into a rectangular block, how can i fix this
I developed an indicator to indicate time intervals where trading is favorable for my expert. It does so by producing 1.0 for all the bars where it thinks opening a trade is "allowed", and producing 0.0 for all the other bars. So when my expert logic thinks it is time to open a trade, it checks the
good day I am fairly new to coding. I am trying to get this code to work, so that i can trade with 1% of my equity instead of manually needing to calculate it everytime. I am not sure where I am going wrong. am i missing something? extern bool MM = TRUE; extern double Risk = 2; extern double Lots =
In my EA I am getting the error message, "possible loss of data due to type conversion", for both occurrences of "prevtime = Time" in the EA code below: if(Time[0] == prevtime)                  return(0);        prevtime = Time[0];        if(!IsTradeAllowed())                 {...
In the MLQ4 Reference, there is a pre-defined variable called Point with the followingdefinition: "The current symbol point value in the quote currency." Beingnew to this world of trading, I was wondering if someone could provide a betterexplanation of what Point is, maybe in laymen's terms. Thank...
New article Automata-Based Programming as a New Approach to Creating Automated Trading Systems is published at This article takes us to a whole new direction in developing EAs, indicators and scripts in MQL4 and MQL5. In the future, this programming paradigm will gradually become the...
I'm trying to run an EA, I wonder why just the green button in MetaEditor4 is available to run my EA, the blue ones are disabled. what are the reasons that make an EA force to run in live but not in history mode in Strategy tester
  MT4  (2)
Hi i would like to install MT4 to my PC but it still install MT5. Can you help me with that please? thank you