Download MetaTrader 5
To post a new topic, please log in or register
void OnTick()   {        prevolume=curvolume;         curvolume = SymbolInfoDouble(_Symbol,SYMBOL_SESSION_VOLUME);        Print(curvolume-prevolume);       ) I use the above method, print out is zero, the result of the method error? How to calculate the difference of two Tick volume?
I have probably misunderstood the documention for the ArraySort() function in MQL5.  https://www.mql5.com/en/docs/array/arraysort states "Sorts the values in the first dimension of a multidimensional numeric array in the ascending order". When I use this function, my arrays are sorted with Array[0]...
Hello, I have been using WebRequest function to send/receive data to a server and all was running perfectly before updating to MT5 build 1860. After the update the function somehow stopped working. Does anyone have the the same error ? Can anyone please confirm this? Regards, Malacarne
It works even with simple and common indicators, you just have to think in the movements like up, down, up, down, like a snake ... The advantage is that you always have a trade and know the direction of the trade. This picture bellow prove that markets behave like waves
  GBP/USD forecast  (1033   1 2 3 4 5 ... 103 104)
I’m having a little loss right now, but I think I’ll close the deal with profit.  
  USD/JPY Analysis  (716   1 2 3 4 5 ... 71 72)
Well, the asset moves as I’ve predicted. I think that I can earn even more on USD/JPY! Definitely, the show must go on =) 
Good gentlemen of MQL5 regards I want to ask why MT5 increases its consumption, but does not lower it, install custom indicators in a couple of pairs, I generate a lot of consumption, because they read a lot of data, but what I want to ask and / or report is that after I eliminate the indicators, I...
Hello I need a indicator that gives 100% buy and sell signals
  Plugin for pips?  (1)
Hello, when I make one trade, I need to write my SL and TP with numbers (for example 1.13441) and it's very annoying. But when I'm on SOFT4X (back-testing) I can put my SL and TP with pips (for example SL = 10 PIPS / TP = 10 PIPS). Exists any plugin for MT4 for this or I need to write to my broker...
  Indonesian Member  (3208   1 2 3 4 5 ... 320 321)
I want to know how many people from Indonesia is joining this forum. If you're from Indonesia, please comment this topic..Thank you..
Hi there,  Can anybody help to close two hedged trades automatically when optimum return of two together reaches at a certain level? there would be a possibility when one would go with loss and other with profit, while overall it hits certain level of profit. For example, crude oil goes in profit...
Hello Friends. ..  I have recently subscribe to a signal, But I am unhappy as automatic Trade copying is not working yet. Can anyone guide me how it will works. Tanveer
Hi guys, Are there any brokers that are using the metaquotes price feed? I've been doing some backtesting using the metaquotes price feed from the History centre, and Metaquotes themselves do not provide a brokerage service. Any advice would be highly appreciated and apologies if this topic has...
Please where can I get a robot or a script that will open multiple positions based on the position I open myself. Say I open a position with 1lot and fixed stop loss and take profit levels, it just takes these parameters and open the same position on the same pair like 10 or more times.
  Ind-TD-Demark-3-1  (75   1 2 3 4 5 ... 7 8)
Hi Alex and everybody, I have this indicator and trade manual w/this.It's based in trendlines and work very well.is it possible convert to EA? Thank's
https://www.metatrader5.com/en/metaeditor/help/mql5storage: 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...
Forex Profit System – MT4 Indicators and Template 780 pips profit – last two week results Today we will show you another great trading system, we are test it for two weeks on eur/usd and gbp/usd pairs and archive over 750 pips from eight trades (seven wins, one lose trade). You can download forex...
Hey guys, I have question, it can sounds ridicilious but im new here so please don t hate me.  The question is, can i use EA on real account, like can i use EA with real money account. Thank you very much, kind regards :)
Hi guys, I have been running an EA since the start of May 2018 that has been performing better in the live market than in the strategy tester. I use a broker that averages a EUR/USD spread of 0.1 pips so I set a spread of "1" in the strategy tester. The backtest results for the EA over the past 2...
  What is the best EA to buy?  (23   1 2 3)
I am new to EA's.  Any recommendations for what I should buy for MT4?
5%10%20%30%40%50%50% - 100%
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...
Do this system enough for Trading path ? 
My dream which I would achieve is to develop best FOREX EA in the World. I've created something which earns in every circumstances, instead of crashing in last 2 years.Anyone has idea how to / what to change, fix, improve in the existing EA? What to add/change? Look (those settings are: 1 000 EURO...
I notice ATR is being used to compute the average pip movement for the market, and has been used as a volatility indicator. Anyone knows if there are other indicators that can perform the same function or better? Thanks. Provide links here if you have.
  Gold System  (4)
Does anyone has a gold trading system?
  PANTHERea.....100% win ratio  (96   1 2 3 4 5 ... 9 10)
Ok guys, this is the end of my forex path...... It took me 5 years to make this(coding lasted for few days), but the method itself was developed for years. Bassicaly I took all of my knowledge, mixed it, coded it, optimize it........and done that for last 3 years. This ea is something with the...
  Coding a profitable EA  (13   1 2)
Hi everyone, I've been manually trading for a while and I'd like to start trading by Expert Advisor using moving averages cross. The only thing is I'm new with coding (honestly I don't know about it) and it's quite difficult for me to put logic into coding software. I have tried a couple of...
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...
  Forecast and levels for S&P 500  (368   1 2 3 4 5 ... 36 37)
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...
  Volume and Tick chart  (18   1 2)
Hello, I am currently using MT5 for futures and I was wondering if there would be any updated version where I can use charts based on volume or tick and not time. Ninjatrader, or TradeStation, Sierra all have this capability, but not Metatrader 5. Any help would be appreciated!
Bitcoin vs USD January-March 2017 Forecast: key resistance level at 850.15 to be broken for the bullish trend to be continuing Weekly (W1) price is located above Ichimoku cloud in the bullish area of the chart. The price is on ranging within the following support/resistance levels: 850.15...
  Forecast and levels for Nikkei  (27   1 2 3)
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...
  Bermaui Analysis  (117   1 2 3 4 5 ... 11 12)
A Bullish RSI14 Reversal Signal for Dow Jones Industrial.
  MT5 real FUTURES broker  (20   1 2)
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.
AMP Futures has officially announced the launch of the MetaTrader 5 platform for trading futures. AMP Futures is a US regulated Chicago-based Futures Commission Merchant (FCM) providing access to the global electronic futures markets for individual traders, as well as US and foreign Introducing...
It is very sad that majority of the people that get involved in the forex business end up losing their money but I will explain the major reasons why this happens below: 1. Leverage and Margin - Trading on margin seems like a fast way to make quick profit however, this gives birth to greed as a...
  Forecast and levels for Dax Index  (48   1 2 3 4 5)
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...
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...
Hi, in this topic we discuss our forecast of whether EUR/USD will move strong during the next period, or not. As for now, there is a difficult situation of the EUR/USD. It sticks at its price of 1.154 and has no real ability to reliabely grow up or down. Thus you see that on 29/30.05 we had the same...
Hi, Are there any brokers allow trading both FX and stocks/index for the Hong Kong markets? Thank you in advance
Dears,  so  I had a sell trade that had a SL@133150, it got stopped @1.33151, BUT in the chart it did not touched any the SL level (max level in the cart was 1.13343) . Also, other friends of mine that did exactly the same trade, did not had the same issue. The also have different broker than mine....
The Best Stocks Of 2016: Nvidia (based on the article) The price was increased by 10% just for December only!
Hi, I need to embed some data about positions I open, inside its comment. then on some other parts of code, need to retrieve the comment of OPEN POSITIONS, and modify each open position based on it's comment data (like it's signal category, it's signal reliability etc.) I know position comment is...
Hi, While reviewing the trades executed last week I've noticed that (apparently) one of my EAs initiated a trade on the Live account (at hours 3.00 on 12.07.18)  but it didn't also re-initiated it on the Strategy tester (that I ran today 15.07.18). It seems that one of the criteria was met on the...
Hi everyone, I am new to Metaeditor. I have programmed one strategy (quite simple) for TradingView, and now I would like to make it automatic. I have been fighting with Metaeditor, but so far no luck in programming it. Could any of you help me in coding it? or at least give me some help so I can do...
Hey guys, I am trying to code an EA that takes positions every time the MACD (21, 48, 3) crosses 0. However, this code takes positions when the EMA 21 and EMA 48 cross. I believe my issue is that I incorrectly coded the calculation: EMA 48 - EMA 21. Can anyone please help me solve this issue? I...
I need to know the best trader to copy with just 400 $ fund As i am Novice  in TA?
I have a simple short question. If I run an expert that work on M1 chart(no need very very accurate , no need low accurate) from 1.1.2017 to 1.2.2017 in real account of a broker, Then I do a backtest 99% on 1.1.2017 to 1.2.2017 (tick data of same broker)  IS THE RESULT SAME by 99% accuracy ? (if no...
Hi I need help with coding in EA to 'print margin utilized for symbol'  If I have EAs running on 3 different currency charts, the EA on each of those charts should only print the margin utilized by that chart symbol.  Taking on new orders for that symbol would have EA on its chart to recalculate and...
I have 2 equations written in my code (actually more but just to keep it simple), both should have exactly the same result. When I tested it though it turned out not to be true because when I did : if(value1==value2){ ....... } The code was not executed. So I decided to Print these two values and...
What is the best Expert Martingale?
Hello, I was wondering whether anybody could help with something that's really beginning to wind me up... Whenever I backtest an EA the system runs it, however no results pull through. In the journal it says "failed to open a short/long position" many times over. Admittedly my level of experience...
Hi, I've been working on a EA for some months and got some very interesting results without optimization. Below is a graph using fixed 0.01 lots from 2012 to 2017 on EURUSD: The problem is that in 2012 there was a situation where my account could have easily reached a margin call (I mean, it reached...
  Profit Range EA  (5)
Hi there guys, I'm new to all this and I've been doing okay recently but I always been thinking of something exists (if it doesn't then I'd be willing to pay for it to make it a thing at some point) but basically I want an EA that has a range for profit so imagine if I want whatever currency to hit...
With two trials to get the profit of the last closed position (Hedging account), I am not arriving anywhere. The first trial is personal, and it goes like this: //+------------------------------------------------------------------+//| Ask: MQL4...
  VPS Cancellation  (1)
When I cancel the Server during the month,  can I restart it within the same month without paying again for the same month ?  How do I know when there is no left-over EA in the VPS when I clear all EAs ?
Hello, I'm trying to automatically take screenshots of charts that have Indicators on them but sometimes the indicator windows are empty. I'm guessing it is because the Expert Advisor tries to capture the image the same moment the Indicator is redrawn. For example the two screenshots below were...
  [DL] Trend scanner and Currency index  (100   1 2 3 4 5 ... 9 10)
Here is my contribution to the community...two very useful custom indicators. If someone dont know how to use them feell free to ask.
Hello all, I have an idea :  - hide/show (not delete) objects on the graph (channels, rectangles, lines...etc)  with a same prefix (My_Prefix_Object1, My_Prefix_Object2, My_Prefix_Object3...etc). My question : Is it possible to do it ? Maybe with "ObjectFind" (?) And how hide/show ? .......
Hey there I am trying to find an indicator for MT5 that will alert me when there are x amount of consecutive candles. for ie. if candle = bull; then candleUP = 1 if candle = bull; then candleUp = 2 if candle = bull; then candleUp = 3; if candle = bear then candleUp = 0;(reset) ; candleDown = -1; if...
  RSI Divergence  (1)
I'm planning to ask a Job for an EA based on RSI Divergence, but the procedure of the ea requires the Indicator that analyses Divergence in RSI. Does anyone have and RSI Divergence Indicator for mt5 that i could use as base? Thanks
Dear all Attached is an indicator called HMA Hull moving average i would like to add arrows or alert once the color is changed from buy to sell or vise versa I would like to get an arrows which should be listed in colors windows not in the input one any help and thanks in advanced Mohd  
Hello developers, I have MTF CCI indicato. I need one modification. I want to add color fill option between the levels. i.e. I want to fill blue color between +100 to -100. Can someone help me in this regard? Thanks.
Hi there, does anyone know how I would add a specific start time and end time to this indicator so that it doesn't cover the whole day? //+------------------------------------------------------------------+//|                                                    ColorBars.mq5 |//|...
hi i want to make adjust to object when state is active, but the case happend then didn't adjusted  int x = IndicatorCounted();   if (x < 0) return (-1);        for (int L =1; L<Bars; L++) {   //for (int L = Bars-1; L>= 1; L--) {  // int U= L> MaxHistoryBars;     if (...
Hi I was asking if it's possible to use EA's and custom indicators on my android phone and how?
Hi all, I'm looking for RSI that auto draw trend line to its peaks, min 2. and gives alert when the trend line broke
======================================================================================== formula this indicator input symbol1 = currency 1 input symbol2 = currency 2 SpX2 = Absolute(Close from currency 1 - Close from currency 2)*100,000 and have zero line now Plot "SpX2" to chart same  macd and RSI...
  Multi Timeframe Indicators  (12155   1 2 3 4 5 ... 1215 1216)
Hi all, I've been wanting to have the ability to plot indicators from different timeframes on my chart, but MT doesn't have this capability built in. (Does anyone know of any charting programs that do this natively?) As an example, if you're following the IWCR system, it'd be nice to be able to...
Hi there, I have created this simple alert function : double Alert_Higher_Level =  ObjectGet( "Alert_Lines_Higher", OBJPROP_PRICE1);                  if (Bid > Alert_Higher_Level &&...
  Adding Alert  (5)
Hi Mentors, Would greatly appreciate if anyone could help me to add alert to my indicator //----------------------------------------------------------------------------------------input string __________1__________="xxxxxxxxxxxxxxxxxxxxx";input string __________2__________="=ARROW CODE=";//ARROW...
Hi, I got a csv file with a list of data: Datetime, and values. These are the values of an indicator at certain moments, calculated in excel/mathlab. How can I import these data to appear on my screen (either oin the main window or separate one) ? Thnx in advance for you help ! Twoci
Ozymandias_System: An indicator that colors candlesticks going beyond channel Ozymandias. Author: Nikolay Kositsin
Scale All Charts: Two scripts are included for scaling all of the charts: "Scale Auto All" will set all of the open charts to automatic scaling, "Scale Fix All" will set all of the open charts to use fixed scaling. When switching to fixed scaling one option must be specified "Percent of current...
Schedule: The Schedule class defines a schedule as beginning at a certain day of the week and time, and running until the ending day of the week and time. There are also tests included in "Scripts\Tests\Schedule\ScheduleTests.mq4" that give extensive usage examples and codify the expected...
Tipu CCI: I have modified the original code for Tipu CCI published in the Market by removing the compatibility with Tipu Panel. This version of Tipu CCI is for learning purposes and is open for anyone who is interested in developing an Expert Advisor using this indicator. Here is an example...
  Libraries: JSON Parser  (23   1 2 3)
JSON Parser: This is a Class for the new MQL4 that parses JSON. It requires the Hash.mqh class. Author: ydrol
3 Rules MACD: Almost every trader used or at least took a look at Gerald Appel's MACD. Looking at our Old Bag of Tricks we rescued a technique several traders used/use which is adding additional filters to MACD in order to avoid false or weak entry signals over traditional crossovers. We...
have troubles in compiling the following method: #include <Controls\DatePicker.mqh>CDatePicker CFormDialog::createDate(x1,y1) {   CDatePicker date;   int x1 =10;   int x2 =30;   int y1 =20;   int y2 =40;//--- create   if(!date.Create(m_chart_id,m_name+"Date",m_subwin,x1,y1,x2...
New article How to Test a Trading Robot Before Buying it from MQL5 Market is published: MQL5 Market allows you to test a trading robot and its features before buying it. Every Expert Advisor offered in MQL5 Market comes with a demo version that can be tested in the Strategy Tester. It is quite...
New article Trade Operations in MQL5 - It's Easy is published: Almost all traders come to market to make money but some traders also enjoy the process itself. However, it is not only manual trading that can provide you with an exciting experience. Automated trading systems development can also be...
Lot calculator - risk management tool: This tool allows you to calculate the correct lot size of the next trade by following some simple money management rules. Most of professional traders state that their success is based on strict risk management. This simple tool is designed to show the correct...
  Experts: LotScalp  (29   1 2 3)
LotScalp: EA scalper 1430% = 2011!!! Author: clickpaypal
Expert Advisor 3 Level ZZ Semafor: This Expert Advisor is based on 3_Level_ZZ_Semafor indicators. Author: ultimatefx
Limit orders Pro: This script provides quick work with a large number of pending orders in the market and contains functions for placing, changing, and deleting of orders within the your price range. Author: Yurij Izyumov
Break-Even Master: The Expert Advisor that moves the stop loss to breakeven after reaching certain profit. Author: Il Anokhin
New article Graphical Interfaces V: The List View Element (Chapter 2) has been published: In the previous chapter, we wrote classes for creating vertical and horizontal scrollbars. In this chapter, we will implement them. We will write a class for creating the list view element, a compound part of...
Hi, I am trying to store highest and lowest values of a wave ( from zig zag) and copy into buffers. I am then comparing if it is a highest high and highest low from its previous then alert will display that it is an up trend but problem when I compare them I am not getting any alert, I think I am...
Hey, I have been trying to get my head around for loops in order to store data in an array.  a = (Current>High[i+1] && Current>High[i-1]);           for(a;!a;a++)       {       High_Array[h]=Current;       }// So Current is = High[i]// int a;//double High_Array[];^^^^^^^These have all be clarified...
  Make It No Repaint Please!  (849   1 2 3 4 5 ... 84 85)
I think time has come for this thread...Kindly place your repainters here...and...Voila!...they will become non - repainters, with my Magic touch and my programming skills... P.S.: You can place your decompiled, expired & ex files in here...makes no difference to me...the work will be done...that I...
Hello Coder: I want the indicator to only display buy arrow if the current arrow is higher than previous arrow, and display sell arrow if the arrow lower than previous arrow how to code that ?! please help Thanks in advance
What is the best (no chokes 28 simultaneous forever) way to mine both the Bid and Ask data provided by my broker on MT4 and store it in a file for further analysis? I don't need timestamps (are a plus though if possible with not lagging the thing to not working status) or anything that has to do...
In EA when I make a Variable in the Global Scope it is Initialize only once at the beginning of the program. And it doesn't get reinitialize/its value change to the original value when Time Frames change. But when I try the same concept on an Indicator, I found that the variables in the global scope...
Hello, I am trying to code my system however after compiling it returns the "not all control paths return a value" and when I double click it shows its in the following block, could someone please point out the problem. Thank you in advance bool CalculateCurrentSellOrders(string symbol)  {   int...
EA CODE:       doublem1psar0=NormalizeDouble(iSAR(0,PERIOD_M1,0.02,0.2,0),5);       doublem1psar1=NormalizeDouble(iSAR(0,PERIOD_M1,0.02,0.2,1),5);       doublem1psar2=NormalizeDouble(iSAR(0,PERIOD_M1,0.02,0.2,2),5);       double m1psar3=NormalizeDouble(iSAR(0,PERIOD_M1,0.02,0.2,3),5);...
Imagine Istart trading with 10.000 usd, and after several weeks I have 10.250 in myaccount balance. Andsomebody ask me how many PIPS I have win in this period. Is there aformula to calculate it in base of that 250 usd of profit (in MQL4)? (SupposingI have traded with different symbols and lots)....
Dear Coders: I have a problem and I can not think how to fix thay kindly support, //$------------------------------------------------------------------$//|                                            MA Crossing Magic.mq4 |//|                     Copyright 2018, MohamedEgy...
New article Common Errors in MQL4 Programs and How to Avoid Them has been published: Some older programs can return errors in the new version of the MQL4 of compiler. To avoid critical completion of programs, the previous version compiler handled many errors in the runtime environment. For example,...
Hi everyone. I am trying to program a new trading system (very simple one) which consists of 1 MMA crossover with 2 type of exits. One stop loss based on volatility and another one which is a kind of trailing stop based on the breakout. I.e. if I have a long position, it will be closed when the...
  Reducing RAM  (14   1 2)
Hi Guys... Can any of you give me a few pointers on how to reduce my EA's RAM... specifically Indicators that I use on my GUI (Graphical Interface)... Most of my heavy "lifting" is done with Arrays and Global variables...but,... I have a GUI that is split into 3  - Chart "0" - the main MT4 chart...
  Ichimoku  (373   1 2 3 4 5 ... 37 38)
I started to test some Ishimoku EA and suddenly recognized that it is necessary to have more information about it. Thus we start this thread. I will try to post everything about Ishimoku indicator here.
given the following two arrays: string symbols[]=      {       "USDCHF","GBPUSD","USDJPY","EURUSD","AUDUSD","USDCAD","EURCHF","EURGBP",       "EURJPY","EURCAD","EURAUD","GBPCHF","GBPJPY","CHFJPY","NZDUSD","NZDJPY",       "CADCHF","EURNZD","AUDJPY","AUDCHF","AUDCAD","AUDNZD","CADJPY","USDSGD",...