MQL5 Algo Trading community — forex forum for traders and developers

Good afternoon, everyone, I know that there are machine learning and statistics enthusiasts on the forum. I propose to discuss in this topic (without holivars), share and enrich our own knowledge bank in this interesting field. For beginners and not only there is a good theoretical resource in
Please see photos attached. MT5 restarted and when it came back ALL of my demos had been deleted and half of my favourites have been deleted too WITHOUT my consent. I had 100s of accounts opened. Why has this happened? how can i get all of my accounts back? you can see in my accounts window there is
hello everyone, today I'm asking someone for help in identifying the value of an indicator as soon as a buy/sell stop opens, in order to calculate the difference in present value compared to the value of the indicator when the order was opened. so what i need is, as soon as a buy/sell stop opens the
  Channels inquiry  (2)
Hello every body I saw an advertisement on mql5 website that saying you can make paid channels ... Did any body tried it? Can guide how to do it
  toolbox not fully expanding  (11   1 2)
I am using mt5 on imac. I cannot seem to get the toolbox to expand. I can open it, but its view is really compressed, even when the window is expanded. Any ideas
Hi I hope you are all doing well. I'm new to the concept of Reverse Engineering, I tried to google it online, but it is used in many contexts with different definition that it became really confusing. Can you please give me an easy to understand definition of Reverse Engineering?, in addition can
Question I - dangling pointer, memory leak in MQL4, is it same as C/C++, in terms of definition and their actual behaviors? Question II - citing William's words [ https://www.mql5.com/en/forum/347811 ], does avoid using `new()` will get rid of most if not all memory leaks? From my perspective n his
everytime facing errors
Hi, could anyone give me information if i can delete my old account and create the new one with the same ID ? thank you
What ways are there to get a refund from the Market? Can I report a seller selling scam? How can I prove this? What would be an acceptable proof for "intended scam"? - backtest reports or images which don't come from the sold EA? - EA behaves statistically significant worse after the last Update
Hey guys, I have a problem with "telegram undeclared identifier in the attached code. I've tried every way but I haven't been able to resolve it. If anyone knows and can solve it I would really appreciate it. tks Samuel
  trade assistant  (1)
Please help as can’t get signed into MQL5 on my laptop to update trade assistan
Hy guys, simple question and don't know what its wrong here. Please have a look: if( cond1 && cond2){ return 1;} else if(cond3){ return 0;} Warning: '}' - not all control paths
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...
hello everybody I would like to ask if anyone knows if this indicator exists in mql5, or who created the base for it. thanks
int Consecutive( int Count) { //--- int BB = 0 ; for ( int i = 1 ; i <= Count; i++) { if ( iClose ( _Symbol , PERIOD_H1 , i) - iOpen ( _Symbol , PERIOD_H1 , i) > 0 ) { BB++; } else { BB--; } } //--- return (BB); } Besides using
Hi! I'm considering to build a portfolio of diversified forex pairs to be traded with an EA, my account currency being USD ( IC markets and Eightcap as brokers) E.g. I'm thinking of EURUSD, GBPUSD as main pairs and AUDCAD, NZDCHF for diversification purposes as an example. Though, wouldn't this
This thread won't be about a question or problem, but rather about the anouncement of the presentation and documentation of an exciting trading concept. I plan to do a series of postings here in order to keep you guys updated. Anybody who has an opinion on the topic, please don't hesitate to comment...
  Volatility Expansion system!  (160   1 2 3 4 5 ... 15 16)
There are so many systems out here based on indicators and it takes so much time to go through all of them to see which one deserves merit,I simply did not feel like adding one more. However most are indicator based and lagging indicators make it difficult to really simplify trading decisions and
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
Hello, i need create backtest with MA, MACD and Stochastic indicators on daily historical data BTC/USD. I created custom symbol based from EUR/USD and than I changed them to BTC/USD. AFter that I imported the daily historical data to the current symbol. But if I try to make simple backtest than I
Hi everyone, I need support because I'm noticing a problem with my custom indicator. The indicator provides me with a KPI that updates for each new bar. I based an expert on it who, based on the value of the previous bar compared to the current one, must do or not do operations. I had the doubt that
  Something Interesting to Read  (131   1 2 3 4 5 ... 13 14)
This is the thread about books related for stocks, forex, financial market and economics. Please make a post about books with possible cover image, short description and official link to buy (amazon for example). Posts without books' presentation, without official link to buy and with refferal links...
Hello everyone, I am running a python code to trade on mt5 IC markets and Fusion Markets. I want to know what should I do, where to run the code to have the least latency, currently running the code in equinix NY, where they both have a server but still its slow. It shows 0.5ms in the bottom right
  Mr.Nims, Renko Ashi Scalping System.  (3550   1 2 3 4 5 ... 354 355)
Renko Ashi Trading System 2 Please read the pdf manual for this system. Good luck everyone. PS: Reuploaded the fixed ma in applied price indicator. Special thanks to FXchaser PS: Reuploaded the fixed macd alert indicator. Special thanks to Puzzlebird PS: Reuploaded a Special Settings Template for...
hi I would like to know if there is a good strategy when forecasting highs and lows (ohlc), any links that can help
Hello, I want to copy the signal but whiles I find it on the MQL5 website, it is not on my list of signals of the MT4 Terminal. There are copiers of that signal so it should be available somehow. Does anybody know how to copy that signal ? May be one of the subscribers ? Regards, Stephan
I have a question. As it possible to make backtesting strategy for the past I am wondering if its possible viceversa. So that you put trades in and take out the strategy? Thanks for ansvers
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...
SMC (The Smart Money Concept) is different way of market analyzing. I have a SMC strategy which is similar to the bellow example. All I want to know is can I code this thing into an EA or something else to trade automatically? I'm curious to know what is that technology / coding method. Honestly
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 S&P 500  (474   1 2 3 4 5 ... 47 48)
S&P 500 January-March 2017 Forecast: long-term bullish ranging within the narrow s/r levels for direction W1 price is located far above Ichimoku cloud in the bullish area of the chart. The price is on ranging within the following narrow support/resistance levels for the bullish trend to be resumed...
On which MT5 platform can I find the S&P 500, Nasdaq, and Dow Jones index? It's not the type of CFD, it's the real S&P 500, Nasdaq, and Dow Jones indices on the exchange
Hello all, I have a few questions for anyone with knowledge and/or experience trading futures. Any input would be greatly appreciated. From experience scalping in live market conditions, how does slippage and spread compare to trading CFD in markets such as FX? Is there a notable difference, and
how to know which of the trade/stock has the highest volume/most gain
  Forecast and levels for Dax Index  (76   1 2 3 4 5 ... 7 8)
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...
The indices market is extremely slow these days and I'm not seeing many trading opportunities... The VIX is at 12.25 right now, what do you do when VIX is this low? Do you switch to other markets or do you just take a break? Also curious about Forex traders, are you seeing a similar problem
  Forecast and levels for CAC 40  (31   1 2 3 4)
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...
  HFT Stock Manipulation In Action  (125   1 2 3 4 5 ... 12 13)
Trading has a few simple rules - do the opposite of Goldman's Thomas Stolper; don't fight the Fed; and buy low, sell high. However, as this series of charts from Nanex shows, it is the latter rule that is the easiest to comprehend and yet - thanks to massive and obvious HFT manipulation - is an...
I would like to build futures trading mql robot (mostly focus on oil but other commodities interesting also). Unfortunately it's problem to gain hist. futures data, what's necessary for backtesting. So, I wish to ask: perhaps somebody knows where to receive ticks expired futures
Hi, I have recently started learning MQL5 language and all the tutorials are only focused on Forex market. I have been trading Futures contracts(manually) with <Deleted>. So, my question is If i keep learning Mql5 language, will I be able to develop EA for Futures market(with <Deleted>)? Thank you
  Welcome to the new section!  (15   1 2)
Inspired by comments and reviews received from MQL5.community 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...
  Forecast and levels for Nikkei  (44   1 2 3 4 5)
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...
I want to demo Options board on MT5 but cant find ANY one who offers it? Where can i try the MT5 options board? Who is currently demo/ real trading with MT5 options platform? its ridiculous i cant find ANY information on how to actually do it/ who offers it. Its almost as if it doesnt exist/ noone
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
  ExpertMAPSARSizeOptimized  (11   1 2)
Hi, does any artical talk about MT5 build in EA Sample ExpertMAPSARSizeOptimized? It is wriiten in pure OO style, but metaeditor is not excellent enough as Eclips or VS studio now. Sometimes i feel reading MQ5 OO program using metaeditor is just like using Notepad. :) I cant get the point of the...
Can you tell me if this is a realistic tester figure? And is this a good or bad result for a year with a deposit of $3,000
Please help How to copy from one dimension array directly into the second dimension array of multi-dimension array, without using looping ?? Or is it possible to copybuffer from indicator result into the second dimension of multi-dimension array ?? Thank you
I have an EA based partly on a martingale system. The issue I have seen whilst testing on some platforms, e.g. ICMarkets is that orders can be triggered incorrectly on receipt of an "Old Tick". Here is an example from a debug comment I placed in the code: As you can see here the Ask is completely
I want to control the timeframes that an object would be visible on, however the timeframes are not fixed. Normally I would write: ObjectSetInteger ( 0 , name, OBJPROP_TIMEFRAMES , false , OBJ_PERIOD_H1 | OBJ_PERIOD_M15 ); But now, the system might require the object to become visible in 3 or 4
Hello Friends I am stuck with a following if condition!!! if (!(cCPRM15.rangeR2_R1(CPRD01,j,k) || cCPRM15.rangeR1_Top(CPRD01,j,k))) return ( false ); I want to return(true), if either one condition is true, else return(false). I have tried using && operator too, but it is always returning [false]
Hello everyone. I do optimization based on real ticks. When it finishes I try running single tests and compare with results I see in optimization table. They are not the same. What could the problem be
greeting to all please i want very simple code when price go up for 5 points place a buy order take profit after 20 points and stop after 15 points when price go down for 5 points place a sell order take profit after 20 points and stop after 15 points without indicator ***
Can an EA be able to completely halt trading from all sources ? Signals, other EAs, manual trading, etc. If so, can it resume trading from all the previously halted sources ? Such EA would have complete power over the account so I don't know if it's possible
Hello everyone, I am currently trying to develop a panel that requires aligning text with the right edge of a graphical background layer. I have been using the TextGetSize() function to calculate the width of the text and attempting to position the text by subtracting this width from the right
  Fastest broker  (2)
I’m in need of a really fast broker and vps. Today I’m using mql vps hosting and has about 0.7ms ping. Is there any way to get the ping down even more with no other broker
Hello,   does anyone know how does the experation function fo pending orders Works in MQL5?   i found there is an Void https://www.mql5.com/en/docs/standardlibrary/expertclasses/expertbaseclasses/cexpertsignal/cexpertsignalexpiration    but also you have the constant from the order Send Function...
Hi, I'm using the Strategy Tester to debug an MQL5 EA strategy that inadvertently issues many PositionModify commands - the journal gets full of server messages and its hard to see the wood from the trees. When using the Strategy Tester, is it possible to (temporarily) block server messages - I just
Would anyone know how to incorporate into a breakeven price calculation the swaps of the given positions? I am working on the function below, which calculate the BE price of positions of a given pair in a given direction, but I have not figure out a simple way to add the losses from swaps into that
Hi, I have a EA which has a struct defined in it (because there are variables of its type in the EA mql file) and the struct type is being used to declare a variable in the header file too. // within mql EA file struct LLevel { ..... } // within mqh file LLevel expiredLLevel[]; After i include
  Dynamic zone indicators ...  (1585   1 2 3 4 5 ... 158 159)
It seems that David Stendahl can not help him self Where his name appears "attached" to some indicator or TA way, it sure is worth trying it out and studying it. The basis for these were originally published in the Stocks & Commodities July 1996 issue (attached the original article here). Do not be...
Hi everyone. I am currently using Supertrend on TradingView and a similar indicator in MQL5 with the same formula, but the middle line between the two is different. Can someone help me verify which formula is correct to display the middle line similar to the indicator on TradingView? Thank you
Problem ObjectName() does not work as per the object list index. I wrote a script to display the names of all objects on the chart in the new order on the terminal, referring to the documentation of ObjectName(), but it does not work in the order of the object list. What I want to do I want to know
Hi Writing my first EA, steep learning curve but managed to get so far with it using various online sources to sort through most issues. Come across a few issues when using the PVT indicator that I can't explain or find the answers to. EA is running ok but results are not correct and what I have
how do I backtest an indicator, it doesn't work for me
Hi everyone, before you throw the handbook on me and send me away, please, I confirm that I have tried and done all the research possible. Maybe I have a simple misunderstanding in my edited code, but I can't figure it out alone. 1.) i took the ALMA Indicator V2 and all I wanted to do is to add the
hi. i want to calculate iStdDev on excel, so i tried to compare iStdDev value and my calculated value. at first, simply period=2 and increases 3, 4... SMA is no problem, but LWMA is not equal. (there is a correlation) Maybe EMA and SMMA are different too. so I wondered why. *calculation accuracy is
  Need help indentifying indicator  (2704   1 2 3 4 5 ... 270 271)
sisi: 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 I hope you could attach your EA so...
  Everything about RSI  (1460   1 2 3 4 5 ... 145 146)
RSI indicator We are continuing discussion about the indicators. We have the following thread: Parabolic SAR indicator Momentum indicator Stochastic Oscillator Divergence Indicator Now we are talking about RSI. "Technical Analysis from A to Z": Overview The Relative Strength Index ("RSI") is a
I made a simple candlestick chart in the separate window (DRAW_COLOR_CANDLES). I wanted to make a moving average in the same window, but when the buffers have very different values it causes the candlestick chart to scaled down so much that you can't see it anymore. Is it not possible to do what I'm
Hello, Dear sir or madam, Can someone modify this indicator to work with the current build of MT4? Thank you! Chris
  Issue to fix please in mq5  (11   1 2)
Hello i am coding indicator for mt5 And 1.after i launch it the buffers draws out of their values that i didnt load in code this is the first question 2.when i call time value in oncalcuulate indicator freez dont respod to other duals like onchert events or ontimer..etc 3.when i run this function it
  Indicators with alerts/signal  (15924   1 2 3 4 5 ... 1592 1593)
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...
I have a simple indicator that I use a lot in coding and testing, called BarID. Its intent is: for any bar you point to on a chart, to give you both its AsSeries = true and AsSeries = false index values, along with the best I could do to show its date and time, given all that's available are type
  Multi pair indicators  (570   1 2 3 4 5 ... 56 57)
Something I have been working some time ago. Multi pair MACD Multi pair CoeffOfLine
Check out the new article: Ready-made templates for including indicators to Expert Advisors (Part 2): Volume and Bill Williams indicators . In this article, we will look at standard indicators of the Volume and Bill Williams' indicators category. We will create ready-to-use templates for indicator
Custom Bollinger Bands : Standard Bollinger Bands indicator with averaging features added Author: Lucas Moura Vidal Da Silva
Get Nth Closed Trade from the end in MT5 : This EA will scan all the closed trades and then print the nth trade from the end Author: Biswarup Banerjee
Get Nth Active Trade from the end in MT5 : This EA will scan all the open trades and then print the nth trade from the end Author: Biswarup Banerjee
Get Nth Closed Trade from the end in MT4 : This EA will scan all the closed trades and then print the nth trade from the end Author: Biswarup Banerjee
Get Nth Trade from the end in MT4 : This EA will scan all the open trades and then print the nth trade from the end Author: Biswarup Banerjee
Total Active / Closed orders by order type in MT4 : This script will calculate the total active and closed orders based on order types Author: Biswarup Banerjee
Check trading day end is reached : This script will detect an end-of-trading day and notify Author: Biswarup Banerjee
DailyLines: DailyLines Vertical lines starting new Day with above name of the DAY. Period Separators with options to choose different styles. Like period Separator each new day will gets its line at starting. Above this line you can read the text what day of the week is starting. The lines can...
New article The Indicators of the Micro, Middle and Main Trends is published: The aim of this article is to investigate the possibilities of trade automation and the analysis, on the basis of some ideas from a book by James Hyerczyk "Pattern, Price & Time: Using Gann Theory in Trading Systems" in...
New article Econometric approach to finding market patterns: Autocorrelation, Heat Maps and Scatter Plots has been published: The article presents an extended study of seasonal characteristics: autocorrelation heat maps and scatter plots. The purpose of the article is to show that "market memory" is
Close biggest winning / losing trade in MT4 : This script will scan all the open trades and then will close the biggest winning/losing trade Author: Biswarup Banerjee
Place Hedge Order of unbalanced positions in MT4 : This script will place hedge trade of unbalanced type in MT4. Author: Biswarup Banerjee
Close or delete orders based on type in MT4 : This script will close all active trades and delete pending orders based on the order type passed on the input. Author: Biswarup Banerjee
Sequentially Close all trades in MT4 : This script will close all active trades sequentially. following the order in which they were opened Author: Biswarup Banerjee
Dear friends I wrote an expert advisor in mql4, when I run in live account the expert put pending positions at wrong prices. I want to put two limit pending with 100pip distances to each other. in live account most of a time its work fine but some times it put both of them in same price. when I run
If you have questions about MQL4, MT4, MetaTrader 4, please post in this thread. Especially when your questions are related to trading functions
In this thread I want to begin to help those who really want to understand and learn programming in the new MQL4 and want to easily switch to MQL5 - the languages are very similar. This blog will be a good place to discuss tasks, algorithms of their solution and any other questions concerning MT
Hi, I'm trying to build my own EA using EMA. When the program starts it will buy/sell according to the relative position of slow and fast EMA. Then the program should close the trade at the next EMA crossover. My first obstacle was to find a way to calculate EMA at the closing of candlestick, so I
  MySIMPLE trading system  (670   1 2 3 4 5 ... 66 67)
********************************** New IDEA in MySiMPLE trading system : Scalp with RSI on Major Pairs :: indicator : +JoGET_MultiPairs+ :: ********************************** Hi, this is MySIMPLE Trading System, thanks to administrator and all master, I used your great indicators. --------HOW TO USE...
  Elite indicators :)  (15188   1 2 3 4 5 ... 1518 1519)
Hello, Does anyone know where I can find an indicator that takes in price values, which when reached or surpassed will cause the indicator to send a sound alert
  Leaked memory  (6)
Hello, when running the code below MT4 prints: 2020.07.28 11:42:00.097 Class EURUSD,M1: 16 bytes of leaked memory 2020.07.28 11:42:00.097 Class EURUSD,M1: 1 object of type test left 2020.07.28 11:42:00.097 Class EURUSD,M1: 1 undeleted objects left #property strict void OnStart (){ test t =
Hello, I have a custom EA that works fine in the live market, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell
Using a Mac First post and I am sorry if this is in the wrong place. My Navigator window and Market Watch have become undocked.....sure it was my fault. Now, I can't get either back docked?? Does anyone know how to fit this? It is a really silly problem to have without any way to get it back
For a long-term investment purposes and with a profit factor of 2. in M1, with 120 operations during one year. EURUSD only. Time from 2am to 9pm (Helsinki time). Yes or no? Thanks a lot
  Good Indis =)  (11   1 2)
Hi, some good indis found in the internet (4shared) in this topic! First, a smoothed non-repaint version of macd indicator coded by igorad and mladen. Cheer´s
I am developing a kind of grid system on MT4. The lot sizes will be distributed in one area, increasing the lots for every new position. Requirements: 1) The system knows that can open at maximum x positions. ( x = 5 in the example below) 2) The system shall use a multiplier Z to increase the lot
Wondering if anyone has successfully made an EA that runs on the ByBit MT4 platform. I'm having issues using strategy tester with crypto pairs, getting the following errors: Tester: exchange rate cannot be calculated Tester: margin exchange rate cannot be calculated I'm guessing the issue has to do
Hi all, Im wondering if anyone can help, i have attached screenshots for reference however i am using the exact same account with the exact same data feed and have different fractals on my mobile app compared to my desktop app and im using the exact same indicator, can someone explain why this
Hello. Is it possible to create a button that when pressed behave like when you press the "draw rectangle" button but it gives you a rectangle of a certain color? Like create a button called "white" rectangle and when you press it then you can draw a white rectangle with your cursor, without having