To post a new topic, please log in or register
For EA, when i should use property strict and when i should not use it? PS: What is recommended by a programmer?
Would an EA based on tranding signals be possible? that is to say an ea that is collecting information of how to trade with my signals so that he can automatically be intelligent and can use my tendency to learn and execute his own signals and every time I can go giving him more parameters of...
Hello everyone. I've been having a problem and wanted to ask for some backup. So, I have been running the strategy tester using multiple cores in my computer, but also using other 3 computers in my network to accelerate the process. The problem is that, when using the function FileWrite(), this csv...
I finished a EA job have some minutes, must I send it on the commentaries?
//+------------------------------------------------------------------+ //|                                                          ROC.mq5 | //|                   Copyright 2009-2017, MetaQuotes Software Corp. | //|                                              http://www.mql5.com |...
Articles Strategy Tester: Modes of Modeling during Testing MetaQuotes Software Corp., 2005.09.13 13:10 Many programs of technical analysis allow to test trading strategies on history data. In the most cases, the testing is conducted on already completed data without any attempts to model the trends...
  About volatility  (2)
By what is caused the increase or decrease of volatility? (microscopically and macroscopically) Today, is the volatility higher or lower than in the past in the Forex market? What we could say about how the volatility will be in the future (higher or lower than today)?
Hello Dear Mql5 Community. In my account one of closed jobs still remain as in progress job.  this job has been canceled by arbitrage and customer recieved his fund but this job remained in my progress job lists and made my box busy. Any one or mql5 admin has any solution ?
It took me a while to figure out the bug in my code, but it boils down to StringToShortArray() function this is the test: void test_strings(){    ushort a[];    int alen = 0;    string s = "michael";    StringToShortArray(s, a);    printf("string '%s' has len %i    array a has len %i", s,...
Hello, I'm doing some backtesting and while before the backtest is says "downloading history" (I suppose is doing just that, meaning downloading the minute data from Metaquotes and then recalculate for my timefrime). After the backtest is done, checking the graph with the trades I see big "chunks"...
If I pull up mt4 usd/jpy 1m. chart I get a different reading f4om that same chart on mt5. Why? Isnt the market being read the same? Shouldnt it be the same readings on both platforms. I have one going bullish while the other one going bearish. How is that
hello can someone help me in converting this ADX Crossing v.2.0 mq4 indicator to mq5 to work with mt5 platform any help will be Appreciated
Hello, Is it possible to find somewhere Open Interest to download for MT4? Thank you so much in advance.
Any new software inevitably contains bugs that are not alwayspossible to detect even under the most rigorous in-house testing. Wetherefore attach great importance to all user reports about issues inour programs and try to answer each one of them. In order to improve feedback from MetaTrader 5 end...
Hi, I am using MT4, and I ask if is there any possibility to automatically transfer money from the current account to another account ?Thanks
Brain System. 8 indicators in total (see in download area). Some people said that it is great system. I did not try yet. I am very affraid for every great systems. I want to try but I fear. Because of great.
Hi, I want to add new signal (as signal provider) but after adding all the details of account and broker i get an error "invalid broker server". I have typed my broker name and eventried with the server ip but all filed. The broker is <name removed> Sever name: <name removed> Sever address: <name...
Hi guys, Want to open a crypto related topic. Would be good to discuss MT5 possibilities to trade crypto using API.  Lately, Metaquotes released a new MT5 build which supports some functions to ease a crypto trading. Does it mean MT traders and forex investors are getting more interested in crypto?
Why are signal providers allowed to deposit money on their account so often ? This is corrupting the curve ?  MQL5 should allow deposits only as an extreme measure of rescuing the account. And this should be mentioned on the chart with a RED vertical line, because it artificialy pimps the result....
i am a professional trader that have been in the marketplace since 9 years ago . check tens of thousands of EAs , indicators , strategies like price action , ichimuko etc... and can assure you 99% of them not work in long term. because market is unpredictable and full of uncertainty. so no one can...
Hello to everybody, I have a little problem, because of my little knowledge of MQL5 language... Once I open an order, using OrderOpen() of Ctrade class, now I want to know to check its status at every tick; i.e. I want to know if it is still opened or instead closed because of TakeProfit or StopLoss...
Hi everybody I am beginning to think its impossible to predict the future so I thought of a new system and would like to hear your two cents On the daily Find three or four currencies with the lowest spread Buy or sell them It really doesn't matter \ Put a 15 pt stop loss on each one Check them...
  Copying MQL signal  (10)
I plan on copying trades from MQL from a trader, however want to connect 3 accounts to the same trader. Do i have pay individually 3 times separately with 1 MQL account? is that possible? Or i will have to create 3 separately MQL accounts and make the payments from each MQL account separately? 
  Positive Swap  (3)
There is script or AOS. Who is watching . A positive SWAP trader and make up a signal?
i have wanted to test some indicators from the market for MT4. but backtest engine produces error. as shown, it expects "EURUSD5" but correct sintax is "EURUSD,M5" this problem occures during the test of the indicators which is from the market. there is no problem for unprotected indicators. is this...
Hello to everybody, I try to run this chunk of code double price = 0;double sl, tp;price = SymbolInfoDouble(Symbol(),SYMBOL_ASK)+offs*point;sl    = price-stopLoss*point;tp    = price+takeProfit*point;if (m_trade.BuyStop(0.01,m_symbol.Name(),price,sl,tp,ORDER_TIME_GTC,TimeCurrent()+86400)) {...
I was looking for but I didn't find it, so I am turning to you. Expert: When I enter the deal manually. Processes open positions sets TP and SL. After SL is in positive numbers. Shifts SL to positive numbers. Does anyone have it? Thank you
A lot of traders announce that they are able to make $1000 a day. Although I mostly greet them with disbelief, I have decided to raise the issue here to see whether anyone is REALLY making that much per day or its fake? I am waiting your good replies.
  Question on Hedging  (73   1 2 3 4 5 ... 7 8)
Which is the better hedge of the following two options and why? A) 1 lot short of EURJPY, 1 lot of long GBPJPY and 1 lot long of EURGBP B) The volatility of GBPJPY = $1200 per day The volatility of EURJPY = $700 per day The volatility of EURGBP = $450 per day 0.15 lots long GBPJPY, 0.50 short EURJPY...
  Hedge Calculator  (107   1 2 3 4 5 ... 10 11)
Hi! I'm here to share with you a story about a trader journey in search for the holy grail. And also intruduce you to a powerful hedge calculator, incase you haven't heard of it. June last year, a biker friend of mine who is a chief mechanic of our motorcycle association learned that I was engaging...
  Forecast and levels for Dax Index  (52   1 2 3 4 5 6)
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...
There is an opinion that from time to time some great capital, who knows SL in small enterprises, is playing against the market to defeat them and their machines. On mql5.com, I read that in the last days there was a loss of 4 to 5 million baks in the group of salesmen. This is a huge loss of...
Hello all, I am new to this forum and I have recently downloaded MT5. Now I want data for Indian Stocks. Can someone help me who are authorized data vendor for India Exchange NSE for MT5. There are many data vendors for Amibroker and Ninjatrader in India but not for MT5. How I can import historical...
  MT5 real FUTURES broker  (24   1 2 3)
Hello, is anyone aware of any futures broker that offer its client the MT5 trading platform? Is there a list of those? I mean real futures, not CFDs. Futures that trade on CME Globex and Eurex exchanges. Thank you.
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...
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...
Hi, Are there any brokers allow trading both FX and stocks/index for the Hong Kong markets? Thank you in advance
I have been searching for this Index, MSCI Taiwan Index or TWIXUSD, can't find any on MT4 or MT5, anyone know of any brokers that provide them? tks
  Forecast and levels for S&P 500  (459   1 2 3 4 5 ... 45 46)
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...
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...
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...
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...
The international broker has expanded its exchange trading offering. Using the multi-asset platform, traders can invest in securities of global corporations, such as Allianz, BMW, Bayer, Siemens, Heineken and Royal Dutch Shell. This addition to the previously available portfolio of US stocks, brings...
When using MT4 Strategy Tester for CFD strategies, I noticed that the historical data for CFDs went back to only 2015, whereas FX historical data went back to 1980. I tried to download more data from History Centre, but I got the notification 'No new data for this pair' Is MT4s CFD historical data...
Hi all, I have an EA that is checking an indicator every tick to see if an arrow appears. Should an arrow appear it will do something. I am finding that the EA is locking up my system with the amount of RAM and CPU  its using for the task. so clearly my approach is wrong or i am asking too much....
Hello developer's. I really want someone who able to developed my Renko EA. That EA have some awesome logic to place trade also have good exit logic there. Not a single indicator use under this EA. If anyone have awesome knowledge in Renko then most welcome for my upcoming project. Also you not...
Hello all, I'm facing a strange error. The optimization is usually some passes successfully and then it starts returning only zero trade results, as follows: Scrolling down, all of the bellow tests return also 0. After the successful passes, I could see on the Journal that the errors are happening...
Hey, I want to Round the number of an Array of my indicator. I need to Round the numbers to the number of digits of the currency, for example the EURUSD in my broker has 5 digits, while USDJPY have 3 digits. I cannot do it this way. And I want to change Round the numbers as soon as they are created,...
If so - how are you guys auto-trading TradingView alerts in MT4/MT5 ? 
Hello, I would like to implement Websockets in an EA. I have reviewed the following library https://github.com/krisn/lws2mql but I have not compiled. What would be the solution to get the signals from a website as quickly as possible? If you can not use WebSocket, what do you think about...
Hi, is it possible to re-implement iADX() using iCustom() or any other option to have ENUM_APPLIED_PRICE on its call (as it was on MQL4)? MQL4: double  iADX(    string       symbol,        // symbol    int          timeframe,     // timeframe    int          period,        // averaging period...
Greetings. I've coded a simple EA that uses CTrade to buy, sell and modify orders. When buying or selling, I'm using SL / TP to close orders. The issue is that although SL / TP are correctly set, they're completely ignored by Strategy Tester. The prices will reach the SL / TP levels many times, but...
Hi everyone :), I've currently got a freelancer working on an EA for myself and there's one strange bug that I can recreate but they are unable to. Basically when changing variables in the 'input' tab on the strategy tester I find that they get automatically reset if I tab out of the 'input' tab and...
Hello, i want to catch market orders in OnBookEvent(). But all i get are limit orders of the market depth. My Code: //+------------------------------------------------------------------+//|                                                     testbook.mq5...
From what I remember, when I activated an EA on different installs of MT4 (tied to different accounts) on the same computer, I used one activation for each install. According to all the documentation I've read on this, it is one activation PER COMPUTER...meaning I can install the EA on as many...
Hi All, I've been using these forums for a while but not posted before.  I've been digging around but can't seem to find a full resolution to my query so here goes.  I see this as more of a logic problem and not specific code so haven't included any coding. I have an EA that runs on MT4 and runs...
see picture and  i wirte code : if(Ask!=FindOrderOpenPriceByType(MagicNumberBuy,OP_BUY) && (Ask-(GridStep*Point)>=FindOrderOpenPriceByType(MagicNumberBuy,OP_BUY) &&   Ask+(GridStep*Point)<=FindOrderOpenPriceByType(MagicNumberBuy,OP_BUY)))   int buy4=OrderSend(Symbol(),OP_BUY,MinLots,Ask,0,0,0...
Hello everyone! I know how to say " If RSI > x  , then do this" But, how to say     "If  RSI > x when candle is closed then do this" ( I mean the last candle )  Thanks for your help. Have a good day :)
I am searching for a Best Forex Expert Advisor And Profitable FX Trading Robot in mql5 codeBase page .. Help me find out a best profitable robot for a small account .. . Waiting for your kind information 
  Sentiment zone oscillator ...  (43   1 2 3 4 5)
In the May 2012 issue of TASC, Walid Khalil in hid article "Exploiting Extremes Sentiment Zone Oscillator" describes a "Sentiment Zone oscillator" Sentiment zone oscillatorThe sentiment zone oscillator (SZO) is a leading contrary oscillator that measures the extreme emotions of a single market or...
I have an Indicator with Alarm function, which is fixed, so I can't pick another Sound but the Alarm sound. However the Alarm sound goes off as well for different things. I switched it off for all other indicators, but the alarm sounds off at the beginning of every candle. How can I switch that off?...
  How to install MT4 Indicators?  (129   1 2 3 4 5 ... 12 13)
Here is a little guide on how to get the work done NOTE: An indicator can be of 2 format (extensions), .MQ4 and .EX4. MQ4 is the source code, and EX4 is the compiled version of the code. Step By Step 1) Download/Copy/Save the MQ4/EX4 file into your C:\Program Files\MetaTrader 4\experts\indicators...
  StepMA Stoch  (3)
Very nice indicator I found elsewhere. I'm not sure what the 'official' way of trading it is following the direction of the blue or yellow line (depending on timeframe) looks very nice. And ofcource the xovers.
Hello. This indicator doesn't repaint with higher settings (length 8-9), but with length setting at 1 it repaints (on current candle if open price is used), but it's with that lower settings (1) that it "does the trick"... Is there an error in the code that can be corrected making the indicator non...
Hello I would like to hear advice from somebody who has experience with my problem. I have indicator and it has 4 buffers. Each buffers has own color. Its classic histogram with 4 colors. 2 color for rising and falling and 2 colors for values are above or bellow 0. When I run with cursor over bars...
Hello, I have an Indicator which calls an another CPU heavy custom indicator (on 7 different currencies). So, in the Init function I create the 7 handles and within OnCalculate I use CopyBuffer to get the data.  Sometimes this indicator starts normally but sometimes it seems the buffers are not...
Hello everybodies, A new version about my chart clock As always transpareny and move it with a simple mouse click . better synch with the Pc timer and automatic synch with it  check the code if you want to change any parts of that clock Hope that will give you a nice help in your trading :) If you...
Hello everyone, I find this indicator intriguing and with great potential. The only thing that's missing is an explanation for the settings. What do the parameters mean: "leftbars", "rightbars"? What do the numbers above the signals mean? How does the indicator show the trend, not just the points?...
I'm pretty new to mql5 and are trying to create an indicator, what i want is simple, but i seem to be missing something from it. I want to compare the close price of the 2 bars by the minute, if it is more than a certain value, it adds 1 to a indicator (Array?) So Say Bar A-1 closes at 1.555 Bar A...
i had coded an indicator that works fine but it want not work on a affline chart like renko or range chart i dont know why and what is the solution ?
  Zigzag indicators  (624   1 2 3 4 5 ... 62 63)
Different zigzag's indicators please post here.
All Arrow Buy/Sell with Alert, but only arrow without oscilator etc. ?! Pure chart with alert arrows, points ;). Stoch comeback cross arrow with alert ? RSI comeback cross arrow with alert ? CCI comeback cross arrow with alert ? ASI comeback cross arrow with alert ? Williams comeback cross arrow...
Nonrepaint RSI indicator that will assess and display trade recommendations.Alert will sound when trend changes to up down or sideways.Do not have to worry about this one repainting.
  Experts: TREND FINDER  (11   1 2)
TREND FINDER: " TREND FINDER" EA Trades when there is a breakout from historical minimum/maximum. Author: Aharon Tzadik
Daily Chart Trader: This is strictly for daily chart and any symbol with spread low enough for its operation. Author: Gbenga Ayodele
HTTP requests for new MQL4 (tested in build 600): Simple library that allows sending requests via HTTP protocol from new MQL4 Author: Sergey
New article Implementing a Scalping Market Depth Using the CGraphic Library has been published: In this article, we will create the basic functionality of a scalping Market Depth tool. Also, we will develop a tick chart based on the CGraphic library and integrate it with the order book. Using the...
  Indicators: Inside Bar  (15   1 2)
Inside Bar: Indicator detects the Inside Bars and marks them high/low (no redraw). Author: Taras Slobodyanik
MQL 5 Wizard - Simpler Intraday Time Filter: Filter based on the Intraday time filter offered by the standard library. Author: Genes Luna
3D_Ma: Buffer-free indicator implemented on iCanvas Author: Nikolai Semko
MT5 to MT4 Set File Converter: This script converts multiple .set files from MT5 format to MT4 format. This is a necessary step for optimizing and running cross-compatible EAs. MetaTrader 5 is able to load .set files created in MT4, however, the format it saves set files in is not compatible...
Gann Grid: "Gann Grid" EA draws Gann Grid lines on chart and trades with price breakthrough,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ. Author: Aharon Tzadik
New article How to Access the MySQL Database from MQL5 (MQL4) has been published: The article describes the development of an interface between MQL and the MySQL database. It discusses existing practical solutions and offers a more convenient way to implement a library for working with databases....
Price Percentage and Times on cursor crosshair: This indicator enhance the functionality of the standard crosshair of MetaTrader adding the difference in Percentage and the time span in a human readable form (not in bars, but in Hours, minutes, days, etc) Author: ludoz
  Libraries: JSON Parser  (30   1 2 3)
JSON Parser: This is a Class for the new MQL4 that parses JSON. It requires the Hash.mqh class. Author: ydrol
All Market Symbols and Data extraction script: Reads all available instruments and their characteristics and generates an HTML report. Positive Swaps are highlighted. Author: mgaforex
Dserg - LinRegression Breakout: The indicator for automatic drawing of consolidation areas and channels based on the linear regression Fig.1 Dserg - LinRegression Breakout Author: Nikolay Kositsin
News EA Template Without DLL From 2 Sources: The functions included in this template use two news sources - Investing.com and Dailyfx.com. The template doesn’t use DLL. Author: Yurij Izyumov
  Coding help  (7770   1 2 3 4 5 ... 776 777)
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
Hello forum, I have my entry and my stop-loss and I want to calculate the lot size according to my risk-management. It works fine and this is how I do it: double pipRisk = MathAbs(orderOpenPrice-orderStoploss);double lotSize  = AccountBalance()*0.01 / pipRisk / (MarketInfo(_Symbol,...
Hello! I wrote an Indicator which works just fine. It has 5 Buffers in total, which are all working fine (i checked in the data-window when applied to a chart and they contain values where they should). Now i created an EA wich reads this indicators buffers. I can read the first 3 Buffers...
Hi All,  Does anyone know how can I export Contract specifications (the one under CTRL + M shortcut) to Excel/.csv or where can i find it in MT4 files? It would be great if there is possibility to download them in a bulk. The most important for me is to get all swap values. Thanks in advance Failaps
Or knows how to fix this error? I can’t commit any code since yesterday.
I want to ask you if it is possible to close all open orders and to delete all pending orders within a unique call to a method. Without the need to iterate over Orders MODE_TRADES. Thanks!
Hi, can someone please advise an EA for GBP USD that would wait for the 1 hour candle to close at 3 am EST, that calculates the high and low of the previous 1 hour candle and then set two pending orders; a buy stop 10 pips above this 2 am EST candle high price and a sell stop 10 pips below...
Hi, sorry if this trivial question have been already answer somewhere in the forum, but I've been unable to find it. Does anyone know how to sort the Market Watch table by Symbol name column?   Thank you very much, Best regards Stefano 
  Traders joking, the beginning  (7442   1 2 3 4 5 ... 744 745)
They say that an average trader can work for about twothree years. Then he has enough money to buy Ferrari and spend the rest of the money on psychoanalyst and antidepressants. Well, drive your Ferrari and save the rest of the money by reading our next column. Making money is one of the funniest...
  Trend Quality indicator(s)  (131   1 2 3 4 5 ... 13 14)
These indicators are all based on a 2004 April issue of Technical Analysis of Stocks & Commodities article by David Sepiashvili. Originally there were only 2 versions developed by the author, but there were some possibilities that were not explored in that article which lead to developing some more...
Hello Guys,  I recently changed the broker and started using the MT4 platform. It's amazing how much is possible with it. But frankly I'm also a bit overwhelmed and searching for something specific is not that easy. So I'd like to ask you for help. Does anyone happen to know if there is an...
Hi all, I have a copy/paste script that can copy trendlines, vertical lines and horizontal lines that I draw on my charts. The ideea to do this is to be able to draw them on naked charts and then copy paste them on the same charts after I apply templates.  The problem is that this copy/paste script...
  Slippage and stop losses  (15   1 2)
For the purpose of reducing the exposure to slippage, is there any difference between using regular stop losses embedded in open orders or using OrderClose() function at the relevant price level? Which method would you advise? Thanks.
Hello  I make an image by WindowScreenShot and I want to copy this image to clipboard and paste in other programs (like telegram desktop or paint) I saw very good code for CopyTextToClipboard in this link : https://www.mql5.com/en/forum/153674#comment_5020915 I'm trying to use copyImageToClipboard...
  Need help to finish my EA  (12   1 2)
I've created an EA which is supposed to open trades base on RSI values and should work on 15min time frame. But it doesn't recognize the 3AM candle on everyday so doesn't open any trade. I appreciate if someone kindly debug this code for me. If the RSI is above 50 at 3:00AM ET (15Min. candle close),...