To post a new topic, please log in or register
Hello Traders, How do you solve the problem of over optimization ? i tried the mt5 tester with the forward tester the in sample data was 2 years and the out of sample data was 3 years, 2 of them defined in the tester and the last one year, i test the final forward results on them. when i do that i
I am MT4 userI am MT5 userI use both
  Preventing drawdowns  (30   1 2 3)
Hey everyone, Need ideas on how to prevent drawdowns. Want to maximize profits and keep my trading capital. Please share ideas
Hi all, I am writing an indi on 2 Moving Average-cross and compute the Relative Strength Index (RSI) on the difference between these MAs. Basically it will measure the oscillation of the "Difference" between MovingAverage1 and MovingAverage2 (MaDiffRS). The codes is as below. The idea is to compute
Hi What does it mean exactly the green vertical line after the green vertical bar ? I mean i know both of them belong to the bar but how one is thick and the other is not (why the difference) ? Just asking this because on my example image the vertical line did cross over the Take Profit (TP) line
  Become an Author at!  (140   1 2 3 4 5 ... 13 14)
Thenew MQL5 Community website at keeps developing. Weinvite all of you to make your contribution to this development. Thenew MQL5is the evolutionary continuation of MQL4. The new language ischaracterized by the support of object oriented programming, by ahigher code execution...
I have raised an abitration for the last 3 weeks and the developer is not responding also support is not helping me for my funds to be released so that somebody can help in coding my ea. Please help. Thank you SeneFx
The MetaTrader 5 platform update will be released on Friday, October the 18th, 2019. The update provides improvements and fixes implemented based on the feedback that we received after the previous MetaTrader 5 build 2170 major update: Terminal: Fixed the display order of MQL5 programs in the authorization failed I can't install EA on my MT4 and already send ticket to service desk but no one answer me. How to fix it ? Thank you
Is there anyone who can explain me why I do not see the market tab in tool box? Here are all tabs I see. My Account is correctly setuped as you can see in this picture
Dear MetaQuotes, Could you please clarify what is the proper description of Return filling policy? On the Symbol Properties documentation page in MQL5 Reference one can read: This policy is used only for market orders (Buy and Sell), limit and stop limit orders and only for the symbols with Market
Hi MT5 Community!! I can't set up my stop loss and take profit for ORDER_TYPE_SELL. Below is the code I used, and when I run the EA it says I have invalid stops. Is there something I'm doing wrong, or is my code wrong? ZeroMemory(mrequest); ZeroMemory(mresult);
Hi to all, I am unable to view the Market inside MT5 terminal, also if I try to access to the Purchased tab I receid the following error (seems a JavaScript error). Any idea? Errore: Impossibile recuperare la proprietà "title" di un riferimento nullo o non definito. Clicing on Si (Yes) or No, give
Hello; I am curious to know if either MT4 or MT5 allows me to display an open position per time chart for the same currency as opposed to how it is now: showing all open positions on all time charts. Example: I open a loonie position in a one hour chart (buy or sell ... it doesn't matter). I also
Hello, The indicator I'm using needs to download the certain amount of bars for its working (lookback bars). My question is: when it's downloading it, which candle gets its data last, candle 0 or the oldest (timewise) one
I'm a programmer, working on an algorithm based on a structure of SR lines. Would like to discuss it with somebody who analysed this topic, too. I have a structure of 40 SR lines, generated on multiple timeframes, but it is not very obvious for me when to expire these lines. Some rules which I
Hi guys, I am finishing an EA and I am testing it. So far everything is ok, but there are some situations that I couldn't test and it really worries me. For example: What is the ORDER_STATE of a partially filled order which has the pending part cancelled (IE. By order of 200 AAPL, 100 were executed,...
All (FOK, IOC, Return), Only FOK & IOC, Only FOK, Only IOC, Other than mentioned above
Hello, The strategy tester of the latest terminal uses a lot of memory. The amount of memory used also increases significantly with the length of the Data Period. For example, when optimizing my simple strategy using iMA with Fast Genetic Based Algorithm: - 1 month uses 459 MB per process
What trading Systems utilise Volumes as mentioned in the topic, please provide sources for their study. Thank you
Hello every body; In this thread I shall introduce you to the best system in FOREX world. I shall do this free of charge. Before I do that, please let me allow into these secrets (if I may call them): 1- FOREX trading is one big lie. It is a gambling game. No more no less. It has nothing to do with...
It involves mean renko bars and bollinger bands. Please help if you are an expert
Hi! Non coder newbie here so it may be simple to do this.....sorry. I want to create an ea based on a candlestick pattern and an ea cross but I need the timing for the cross to be flexible in timing (as in within say 5 candles of the pattern). Is this possible? I must confess I use EAbuilder
Hi, I have a question if you can answer. I Would like to develop EA that should receives Email alerts/messages and execute the order at market price for a particular FX/ commodity pair. The EA Should include; 1) Risk management rules 2) Martingale strategy -------IS IT POSSIBLE
Hello guys, I think im a bit confused of the result that my ea is giving me in the strategy tester. I have wrote specific entry rules in my EA so that: Buy when : rsi[0]>=50, +di[1]>-di[1], 0bv[0[>obv[1]>obv[2]. Although I know those conditions are met at least 5 times a week, the ea sometimes open
  Trend indicator  (15   1 2)
Hello everyone i saw this indicator in the internet and it's for ninjatrader i don't know what it's name i think <deleted> or math formula!! So it's been while i didn't find anything familiar to it !! If anyone can help
Hello everyone, first time here, I need some help. I'm subscribing to a Signal, and this is what is showing on his history right now: And this is from my account right now: I know that might be some delay between copied transactions, but this is very very different. Besides the volume being
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...
I just started this thread as a continuation of the talking made on this topic (we can read it). Or 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...
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...
Hello, do you have in your forum also topics where people share actual market outlook for a underlying, if yes let me know the link to GBPUSD topic, otherwise i would like to use this new topic to share sometimes my outlook. For today, GBP price seems to find resistance and at around 1.2902 we have
  Apple  (32   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...
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...
  Forecast and levels for Dax Index  (58   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...
Just curious about anyone trading preferences, I mean what do you prefer to trade Forex, Stocks, Futures? Is well known that Forex is the greatest market hands down, but unfortunately it doesn't offer certain analysis tools such as true volume, the book or TRIN, TICK, VIX tools which can be very...
Good day everyone, I am new to this business of Forex and Binary and in a short time I have incurred some losses and currently looking for the best approach to this market. I am particularly interested in Binary Tick Trade. Does anyone here know if there is any indicator or strategy applicable to...
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...
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...
Hi Been trading forex for a while and understand how to work out the pips, but do not understand with the USDX CFD. Could someone please assist. Regards Shaun
Hi there everyone, I hope I am posting this in the right thread. Please let me know if I should place this in another area of the forum. I’ve been getting to know MetaTrader for a couple of weeks now. I have looked into the general concept. I would like to build an automated strategy, which also
The Worst Stocks Of 2016: First Solar It was decreased from 72 to 28 for this 2016!
At the end of the last year, we informed you about the first MetaTrader 5 launched in Thailand. One of the leading Thailand brokers Apple Wealth started offering the terminal in demo mode. Recently, the company has undertaken yet another step - now, its clients trade shares at SET (Stock Exchange of...
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...
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...
Please, can someone give a simple example of how to send a buyLimit order for a symbol in Iranian Stock Market. I had have a lot of problems doing it. I need a sample code. Thanks in advance.
Hi guys, I get zero values in the Strategy Tester result page: Did anyone ever face such a "funny" result page? What I did: 1. Select ranges for the parameters of the EA so I get 20 combinations. 2. Press "Start test" and watch the progress bar working slowly through all 20 combinations. Checking
The Forbidden Fruit EA This EA is very profitable when the market is ranging. It can achieve more than 95% to 100% win rate (long & short). This is a semi automatic EA. The user must manually enter in two prices inside a range (highest price range, lowest price range) for EA to trade. I just
  VPS and EAs  (6)
Hi all, I am rather new to this activity and I have a fondamental question here. In order to trade with fully automated expert advisers, is it absolutely necessary to use a VPS? Turning this around, is it possible to be profitable from home with a computer running 24/7 and a latency of about 110-120
Hello everyone. I'd like to learn how to set a signal's expiry in EA's. Such that the signal is nolonger traded after, say four bars. I will appreciate your help. Mt5 user
I have managed to read this thread: and not know how slippage for the OrderSend() function is defined in index points since it's about currency pairs in there. For example: with my broker I am able to trade 2 symbols for the german DAX index (or Ger30, if you...
I can't understand why tutorial about custom module of trade signals works and can be found in the wizard, but my module can't. This is my custom module of trade signals. Include\Expert\MySignals\KeltnerChannelSignal.mqh //+------------------------------------------------------------------+//|
I'm trying to test my code but I keep getting the below errors/messages which prevents me from buying or selling. Thoughts? 2017.05.08 08:46:29.749    2017.04.02 21:08:59   current account state: Balance: 10000.00, Credit: 0.00, Commission: 0.00, Accumulated: 0.00, Assets: 0.00, Liabilities: 0.00,...
Hi to All, I've been starting to use the Metatrader VPS to run my EA 24/24 for few days and all seems to work fine. However, I noticed a strange behavior of my EA that is not related to it but to the server. My EA prints a "EA START" message at the beginning and a "EA STOP" message at the end, i.e
Hi all, is there any way to access the built-in economic calendar during backtest? I tried CalendarValueHistory and while it does give proper results when executing the code on a live chart, it returns no results during backtest. Thank you in advance
Dear MQL community please help me out we build an EA bridge for binary options and it should be working fine but after each first contract it closes down the EA and says array out of range in (1962,24) I hope anyone can help me out... Thank you in advanced <ex5 File Deleted>
somebody help me with the code of an ea based on two EMA where they meet on an uptred a buy order is placed and on their next crossover the buy order is crossed and a sell order is open and vice versa
Hi, I have an EA that I bought from MQL5 market but it isn't placing any live trades. The EA shows the smiley face and auto trading is enable. There are no errors that appear in the journal. When I conduct a backtest the EA registers the history of trades but doesn't execute any on my live account
  See the orders open  (26   1 2 3)
Hi, I´m trying to understand how I can now if I have one position open like. Because If I have a open position I will wating the stoploss or takeprofit close the order before open a new. I´m using this code in the backtest to see the result, but all the time the PositionsTotal show 0. Example: void
  trendline alert  (2)
Please assist, I want to get a notification if the price touches the trendline If anyone knows a script to help please assist thank you
//+------------------------------------------------------------------+//| Global Variables |//+------------------------------------------------------------------+#include <Trade\Trade.mqh>CTrade
I have been studying the buffers section of the documentation. It appears that they are only used to draw lines (or maybe text also) to the screen. Is this a correct assumption
I have an indicator that creates several chart objects as part of the indicator, OBJ_TREND, OBJ_HLINE, etc. I then create a template of a chart using this indicator. I then open a new chart on the same or different timeframe and load this template. The chart objects saved as part of the template are
Hello :) I am searching for a possibility to set free alerts in metatrader 5 for the stoch indicator. I have used the forum and google but only managed to find several examples for metatrader 4. Can anyone help me please
There is a setting in the client terminal to limit the number of bars on the chart. Mine is currently set to 100,000. How does this affect rates_total, prev_calculated and the time series arrays passed to OnCalculate? For most on the calls, rates_total and the time series arrays will grow in size as
I have a request, that to use the indicator functions in the reverse direction of what it should be. For eg. 'I want to place a buy limit order where iRSI(14) = 20. Currently, the RSI is above 20. What is the price I should place it on?' 'I want to place the stop loss value where MACD signal line
Hi! Can someone send me an MTF MA that is not wrong? Without exception all the defects that are above .. most indis write this error: Not all data of ExtHandle1 is calculated (-1bars). Error4806 and this averages _-_ mtf (# GDAXI, H1) array out of range in 'averages _-_ mtf.mq5' (170,48) as wrote
hi i have this indicator to export MA and ATR, but after adding BID and ASK price it stops working. copied it from code base. what am i missing? thank you very much
  Candles  (330   1 2 3 4 5 ... 32 33)
Very interesting indicator. D1 timeframe. Candles. See image.
If you close the client terminal with a chart and indicator open and then re-open the client terminal, the chart with indicator will appear as expected. The indicator will receive its first call to OnCalculate with prev_calculated = 0 as expected. However, on the next call OnCalculate will pass 0 a
  need basic help  (2)
I have no clue how to create an Indicator but i am looking for something very simple that will just place lines for certain times of the day colour coated, as well as notifications when price is reaching a specific point. if you can help please reply
hello Can You Help Me For Convert This Indicator From Mq4 To Mq5 ! Thank You
  Stochastic Oscillator, the beginning  (1285   1 2 3 4 5 ... 128 129)
I tryed to collect everything about one indicator: Stochastic Oscillator. "Technical Analysis from A to Z": OverviewSto.chas.tic (sto kas'tik) adj. 2. Math. designating a process having an infinite progression of jointly distributed random variables. --- Webster's New World Dictionary The Stochastic...
Hi, I am looking for an indicator that will mark / highlight a candle on TF H1 at the time indicated by me
Please how do I add the Hilo oscillator to my iPhone MT5 trading app
  Net Profit Line  (1)
Hello, I have been looking for an indicator that draws a line where the net profit line should be, lets say i have two orders in on the same pair, somewhere in between the two is the net profit line, I would greatly appreciate any help with this. Thanks
CCI - EMA based: CCI (Commodity Channel Index) is normally calculated using Simple Moving Average and mean deviation based on that same Simple Moving Average. This version of CCI is changing that. Instead of using Simple Moving Average it uses EMA (Exponential Moving Average), and instead of...
  Indicators: iFibonacci  (12   1 2)
iFibonacci: This indicator will Draw Fibonacci Tools such as Retracement, Arc, Fan, Expansion, Time Zones. Based on ZigZag indicator. Author: awran5
Demarker Martingale: This Martingale EA trades with "Demarker" indicator, it is considered relatively safe because it takes a single trade at a time. Author: Aharon Tzadik
Reversing Grid on Limit orders: Grid system with limit orders. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: Author: Andrey Barinov
Change SL/TP on chart drop off: This script will change the SL and TP of all open trades of the symbol to the price where the script is dropped off. Author: Fernando Morales
VR Moving Average: The classic Moving Average indicator with a color change depending on the direction. Author: Vladimir Pastushak
New article How to Prepare a Trading Account for Migration to Virtual Hosting has been published: MetaTrader client terminal is perfect for automating trading strategies. It has all tools necessary for trading robot developers ‒ powerful C++ based MQL4/MQL5 programming language, convenient...
Scalp All: This script opens random position at market price on all symbols having spread below specified value. Author: Mokara
Multi Forex Scanner: Instead of having to analyze each pair individually, you can see at a glance what are the most promising pairs according to your own criteria. Author: Carlos Oliveira 
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....
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...
Simple Pip Value Calculator: "How much is a 1 pip movement on EURUSD (or any pair) worth in my currency???" It's a question we see asked frequently on the MQL forums and other forex websites. Knowing how much a 1 pip or 1 point move on a currency is going to make you (or cost you) is one of the...
Lyapunov_HP: The oscillator indicator based on Lyapunov stability theory, with the Hodrick-Prescott filter. The indicator has two input parameters: Filter - filter calculation period, Applied price - price used for calculation Due to the use of the HP filter, the indicator has the following feature...
SHI Channel true: Indicator SHI_Channel_true shows Barishpolts dynamic moving channels in the chart in automated mode. Author: Collector
Overlay Chart Modified to not repaint on each bar: Used to compare 2 currencies on one chart, the Original indicator will recenter its calculation on every bar, and hence the price will keep shifting up and down and so the historical relative values do not remain constant. This indicator was...
Hi all, I am writing an indi on 2 Moving Average-cross and compute the Relative Strength Index (RSI) on the difference between these MAs. Basically it will measure the oscillation of the "Difference" between MovingAverage1 and MovingAverage2 (MaDiffRS). The codes is as below. The idea is to compute
Hello, Just stopped by a great indicator IFibonacci and I have a question; is there a way to make arcs starting from the previous Zz value not the most recent one. (Or if I can manually move the central point for arcs calculations to choose previous top or bottom Zz value) Thanks in advance
Hi experts, when recompiling an indicator I see a couple of (red triangle) messages in the Experts log about x number of objects of my program class undeleted/left from the previous version's deinit I never used class pointers nor the new operator, I just declare variables of that class, I was
  Trend following EA  (63   1 2 3 4 5 6 7)
I'd like to open up my latest development idea to other members of the forum. I started out with a simple EMA Cross EA and started chopping and changing it. What I now have is an EA that checks the current trend my confirming up or down trend against M5, M15, M30 and H1 timeframes. When al four TF...
nt MagicNumara01=20;int MagicNumara02=330;int MagicNumara03=3044;//... // i wanr to this way for(int ig=40;ig>=1;ig--) { if(OrderMagicNumber() =="MagicNumara"+DoubleToStr(ig); } // orjinal codes
Hello. There'a a few years i paid a freelancer to build an indicator. It worked fine but now, i try to compile it and i have an error on this line : for (index=nCountedBars + NB -1, int ptr =0 ;index >= nCountedBars ; index--, ptr++) flow[ptr] = (High[index] + Low[index]) / 2; Can you help
Hi, I need a help, I'm still learning MQL4, but I Stuck. how to code this in MQL4 "if total opened positions = 2, set sell stop position" ? I use this code but not working properly! for(int i=OrdersTotal()-1; i>=0; i--) { if(!OrderSelect(2,SELECT_BY_POS,MODE_TRADES)) continue;
Hi: Testing using MT4 on tick using major pairs. I program EAs so if I use a standard indicator (example Awesome Osc) then no problem. I have very slow back tests using Custom Indicators. Any idea of what I could do to speed up the testing for the EAs using Custom Indicators?. Thanks for any
  Traders joking, the beginning  (7685   1 2 3 4 5 ... 768 769)
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...
Hi there, Currently I am running a function to modify a time string: string timeDB(string timeIn){ // 01234567890123456789012 // timeIN: YYYY.MM.DD HH:MM:ss //timeOUT: YYYY-MM-DD HH:MM:ss.000 string timeOut, timeHMS, timeDate; timeDate = StringSubstr(TimeToStr(StrToInteger(StrToTime(timeIn))
Hi there, I startet to write my own set of classes to create a own panel. Everything is (almost) fine so far, but those classes, which are derived from CWndContainer simply don't want to work. These are CComboBox, CListView and CSpinEdit. The controls are shown, but there is no interaction/reaction...
l have tried many code , but still can't find way to get today date. Example Today = 10-Sep-2017 When l doing backtest on = 1-Jan-2015 How to get today date? Thank you. Best regards.
  Usefull links/threads/tools  (48   1 2 3 4 5)
The thread about threads: what's going around the forum everywhere    ============ MT5, mql5, suggestions for improvement thread ============ Requests & Ideas The beginning Requests & Ideas, the beginning - the thread   Suggestions for Trading System thread  After Requests &...
I've created an EA for 30Min chart which is supposed to open trades base on RSI values and Donchian Channel. I guess the problem is with "iCustom" function calling, cause it doesn't print the indicator when I back test it. I appreciate if someone kindly debug this code for me. Below are trading
Comments that do not relate to the "Spread filter for EA", have been moved into this topic.