MQL5 Algo Trading community — forex forum for traders and developers

We have updated the MQL5.com Chat to further enhance the user conversation experience. Check out the new service interface and updated functions, such as the revised friending logic. Create groups on financial topics, join existing channels, discuss current issues with fellow traders in group chats
Hi guys i try to mod this script, this program cerate a square colored in middle of chart i want a simply rectangle colored but without color inside i try to substitute DRAW_FILLING with DRAW_LINE but deform session and asian and europ start at the same time o_O i mod only DRAWline how can fix
  Reference to an Indicator  (30   1 2 3)
Hi I have an indicator(A.ex5) and I want to reference it in an include file (C.mqh) or another indicator (B.ex5) But I always receive error code 4806 and 4802 As I'm new in MQL5, at first I want to know the procedure of referencing an indicator (to be sure I have done it correct) then what's the
In MQL5 I have written this indicator, or more accurately, three indicators in one. It is two 4-period moving averages (one positive and one negative) and a histogram of the difference between those two moving averages. When debugging in MetaEditor, for the most part it works right. However, when I
This will be used to see if the slave account (myfxbook) has the same performance as the master one (mql5). This allow you to spot any significant difference between the two accounts. In case the discrepancy is too big and not in your favor you might want to stop copying the signal. The only purpose
for example I need steps going from 50 de 1000, but need more steps between 50 and 200 ... Am I clear? please add this (if it's possible)
  MetaTrader PC...  (5)
Hej there, since more than an hour I am trying to simply login my account and use the program instead of the web browser.... But it doesnt even show me any charts... I use a demo account, but if i Login inside the program, it shows nothing.... I can not select a server and I dont want to create a
Hi all, could you tell me if memory and CPU usage are the same between these two options? - run the same expert on 10 different charts - run the expert on a single chart, but in this case the expert can trade on 10 symbols indicated as input string. So I can open only 1 chart. Is CPU and memory
Hi, anyone else out there having the same issue whereby thepassword sent does not allow entry please
  Vps  (11   1 2)
I have been using mql5 vps for 1 month and it is about to run out. I want to extend more, how to do
Getting problem with both Mt4 and Mt5, when i have installed it in new operting system. The arrow in the indicators are showing in form of a box, please help with a solution
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
Is this a bug? I have a ryzen 7950x so I believe it should say avx512. Print ( "Architecture: " + TerminalInfoString (TERMINAL_CPU_ARCHITECTURE)); //Prints "Architecture: " Also maybe another bug: ( vectorf vec( 10 )) vec = 2 /vec; compiles ( matrixf mat( 1 , 10 )) mat= 2 +mat; compiles ( matrixf
Hi guys, I have the following code, which retrieves the rates using python from MT5. But the information is not the same as the broker. In this example I'm using Pepperstone. For timeframes like different than H2,H3,H4,H5,H6,H8 and H12 are correct. Please see attached image with the difference. They
[Deleted]
  Golden Ratio  (68   1 2 3 4 5 6 7)
There is a TS (Expert Advisor) that trades and catches various large and small movements. On average it picks up a movement of 38 pips. Takeprofit in TS is used fixed. Optimal takeprofit in TS 62 points. My Expert Advisor has been observed for over a year. The most interesting thing I noticed is
Is it possible to sell Trading System? I want to sell mine. Backtest : DAX April 2024 DD 5% Profit 60% Gold April 2024 DD 2.4% Profit 107% TRADING 2 SESSIONS LONDON AND NY Easy Trading System with easy rules. Could you post how much it could be worth. FTMO would give you back around 50k to 100k in
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
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
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...
  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...
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
Hi everyone, System: Windows / MT5 Environnement: Python Script + Socket Server (Python) + Socket Client (MQL5) Problem: After few hours (around 25-26hrs) the EA stop sending any data through the socket or the Socket Server stop receiving data I'm a fresh python coder, and for the last few days I'm
i have a setup,which i trade manually, but now i want to make an expert advisor about it. but i do not have an knowledge about it, how can i do it please guide
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
what do you think about this: I'm doing it for other days .... but think I've hit hard with this one... I'm now testing with other symbols and random days (its all from a random day). This result is for 1 h time frame for 1 day
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
  Better NN EA development  (860   1 2 3 4 5 ... 85 86)
Hello everyone, I will start this thread by first stating that if you are a beginner and have no high level programming experience you are better off reading other threads. I intend this thread to be for the very experienced programmers with some Artificial Intelligence background. I am attaching...
  Neural network  (4)
Where can I learn neural network in mql5? Or which book can I use to learn neural network in mql5 or mql4
Hi, Can an Expert Advisor manage copytrading services (mql5, signalstart, etc.) ? For instance, one of its function could be to suspend/stop copytrading when a specific DrawDown is reached and then resume it after a specific time period. I know we'll likely need DLL imports in order to handle such
Can someone share an EA that will send alerts every time when price stop moving within one minute
Hello everyone, I am testing a strategy on a demo account and something strange happened. The expert advisor executed a position at a price that did not exist at that time. How can this be possible? attached image. Thank you
Hello to all and thanks from now. My code can send "Buy Market Orders" to Binace (SPOT) successfully, but only this. I'm trying to do the same for Sell, Limit, StopLimit, Getting Current account Info, etc. But I could not. I need the URL structure for the mentioned other actions. Is there anyone
  EA demo  (2)
I am looking for good EA. I see that I can download demo. Can I use it on real account? How long
Hi everyone, I am looking for a trailing stop loss which is activated after after reaching a certain value and it moves repetitively. I try to explain with an example: I buy XAU/USD from 2025.0, SL to 2023.0 (20PIPS) and traling stop loss from 2028.1 (30 PIPS). When the profit reach 31 PIPS (2028.1)
I created several Expert Advisors and want to upload them to the market for subscription signals. They use several indicators in unison to detect reversals, break out and perfect buying and selling opportunities on Gold and Dogecoin. I have one version that strictly buys and sells, and another
Hello everybody, I would have a simple question about backtest... Is there a way to know the total of traded lots ? It is possible to know the number of trades, but I cant see the number of lots... that's all.. :) bye bye
Good Morning Please I would like to know what code to type for putting a MA on Stochastic indicator . I want a MA that will be in the second indicator windows with the stochastic indicator. And when the MA will crossover and close below the sell zone or the buy zone of the stochastic indicator it
Hi every body, I have wrote an custom Indicator (A) like zigzag, and it works fine, however the problem is when I call it in to another custom Indicator(B) it refers "2.781888206090574e-308" for empty values. As an example, A(10)= empty values, means the value of Indicator "A" in candle "10" is
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 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
I have attached two order block scripts that I coded. Any kind soul willing to help turn it into a indicator. Am sure the community will benefit from such kindness
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
  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...
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
Convert iExposure.mq4 From MetaQuotes : iExposure will show the opening of trading positions in tabular form in the sub-window below the main window. This allows the trader to see at a glance the positions in the market including the profit value and the amount of risk for each position. The
Check out the new article: Building A Candlestick Trend Constraint Model(Part 2): Merging Native Indicators . This article focuses on taking advantage of in-built meta trader 5 indicators to screen out off-trend signals. Advancing from the previous article we will explore how to do it using MQL5
Check out the new article: Introduction to MQL5 (Part 7): Beginner's Guide to Building Expert Advisors and Utilizing AI-Generated Code in MQL5 . Discover the ultimate beginner's guide to building Expert Advisors (EAs) with MQL5 in our comprehensive article. Learn step-by-step how to construct EAs
Check out the new article: MQL5 Wizard Techniques you should know (Part 18): Neural Architecture Search with Eigen Vectors . Neural Architecture Search, an automated approach at determining the ideal neural network settings can be a plus when facing many options and large test data sets. We examine
Count consecutive no. of bull or bear bars : Sample code to count consecutive no. of bull or bear bars. Author: Sardion Maranatha
New article Swaps (Part I): Locking and Synthetic Positions has been published: In this article I will try to expand the classic concept of swap trading methods. I will explain why I have come to the conclusion that this concept deserves special attention and is absolutely recommended for study. I
send a trade position to telegram channel : hi, this code need your telegram token and telegram chat id . you can make robot by BotFather and then search in google how you can find telegram token and chat id then attach them to this code . now every trade would be signals on your telegram channel
Indicator of Equity and Balance: The indicator draws the charts of equity and balance by the data of accounts history, it uses the current opened positions for updating the charts in the real time mode as well. Author: Игорь Корепин
New article Learn how to design a trading system by Envelopes has been published: In this article, I will share with you one of the methods of how to trade bands. This time we will consider Envelopes and will see how easy it is to create some strategies based on the Envelopes. As this indicator is a
New article Developing a trading Expert Advisor from scratch (Part 7): Adding Volume at Price (I) has been published: This is one of the most powerful indicators currently existing. Anyone who trades trying to have a certain degree of confidence must have this indicator on their chart. Most often
Candle Closing Time Remaining (CCTR) MT5: Candle Closing Time Remaining (CCTR) MT5 is an indicator which displays the remaining time for an open candle to be closed. Features Changeable color and size....
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
Harmonic AI Pattern : HarmonicEA is an Expert Advisor (EA) developed for MetaTrader 4 (MT4) that utilizes harmonic pattern recognition and RSI-based signals to identify potential trading opportunities in the forex market. The EA is designed to detect various bullish and bearish harmonic patterns
Check out the new article: Data Science and ML (Part 22): Leveraging Autoencoders Neural Networks for Smarter Trades by Moving from Noise to Signal . In the fast-paced world of financial markets, separating meaningful signals from the noise is crucial for successful trading. By employing
Hello, I've got a problem. I created an EA which trades the data of a range bar EA. Everything is working fine when I have both of the EAs operating on my computer MT4 terminal. I basically open up a M1 chart and place the range bar EA on it. After that I open up the offline chart which was created...
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
Been working on an EA based on the 5-13-62 trading system. need help trying to get the EA completed and working. Would appreciate any assistance in helping to get this EA completed. I've attached file that I have developed thus far.
Hi coders, hope you can help a non-programmer myself ... I have 2 strategies written in 2 EAs. Currently, I load the 2 EAs into 2 different charts but with different coded conditions (same magic), in other words, at any point of time, only one EA is trading and the other EA is in dormant state (both
I am writing an EA that uses crossing moving averages . I tell the crossing of moving averages in the following way: // if shift5MA > shift0MA if (shift5MAArray[ 1 ] > shift0MAArray[ 1 ]) { //if shift5MA < shift0MA VALID SELL if (shift5MAArray[ 2 ] < shift0MAArray[ 2 ]) {
  there are no trading operations  (66   1 2 3 4 5 6 7)
I test me EA on my own broker it works okay. But when I send in for validation I get the following : test on EURUSD,H1 there are no trading operations test on NZDUSD,H1 there are no trading operations test on GBPUSDcheck,M30 there are no trading operations test on XAUUSDcheck,Daily there are no...
  Good Indis =)  (15   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
Hi, I would like to have the following structure: template < typename T> class RingBuffer { public : class AccessResult { public : bool valid; T item; }; AccessResult getAt(idx i) const; }; With this, I can declare a RingBuffer like this: RingBuffer<SomeFancyElement> elems; and
Hi all, I'm new to MT5/trading in general, still using a demo account. I was entering a trade into my trading log and looking at the the history tab it reads "Price: 153.837" on the left, then further along it states "Price: 154.475", now I went short on this trade so I understand it moved against
Hi all, i have developed a forex trading strategy that works on a daily pattern of events as well as signals, yes it is true!!, the problem is is that windows 10 does not like offline charts in a simulator and simply freezes when advancing backtesting speed. Windows 7 on the other hand will run the
Hello, Anyone knows the location of MT4's data folder for build 1417 released on 1 May 2024 ? For a M1 MacBook Thanks
Hello community, unfortunately, I'm too stupid to find out whether, and if so, how, I can achieve the following: Suppose I have a basket of positions: - USDCAD, Sell, 0.05 lots @1.36300 - USDCAD, Sell, 0.08 lots @1.36600 - USDCAD, Buy, 0.05 lots @1.36900 Is there a way to calculate at what price
Hi everyone, I'm Matteo, I have a question about backtesting on MT4. I need to backtest an EA on different cross at the same time... ...for example an EA on EURUSD and the same EA on USDCHF starting from 01.01.2024 to 01.02.2024 with the same capital. Is it possible? Or, maybe, is possible make two
I'm got a C# DLL that calculates my trades for MT4. It is compiled as x86 and uses RGiesecke.DllExport for unmanaged code. So far so good, but I'm not able to call any other class libraries from it. As soon as I instantiate a class in an external dll file (which I manually copy into the Libraries...
Goor afternoon guys, I am currently coding an Expert Advisor to automagically trade for me. I already got the indicators, their respective buffers, the names and all of them are on the correct folder. I am using the iCustom() function to read out the buffer values and perform calculations. So far so