MQL5 Algo Trading community — forex forum for traders and developers

Hi, I purchased an indicator on MT4 on my old computer. When I try to install it from the Market place, I was asked to purchase it again as no activation left. The thing is I only use for max 2 computers in the past. Why is it so? How can I resolve this
The MetaTrader 5 platform update will be released on Friday, May 31, 2024. In this update, we have introduced new analytical objects to the web platform. Now, you can utilize the ruler to measure time and prices, draw shapes (rectangle, ellipse, triangle, and circle), and add labels to your charts
All lessons of Codersguru: https://www.mql5.com/en/forum/175653 Mql - Metatrader Development Course | www.metatrader.info https://www.mql5.com/en/forum/172885 All Codersguru lessons + questions/replies and so on are on this section Metatrader 4 mql 4 - Development course - Forex-TSD Book: https...
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
I'm trying to automatically set a large number of input parameters using ParameterSetRange. I initialized all inputs in the EA code as I normally would for manual inputs. I added the OnTesterInit() and OnTesterDeinit() functions as follows: (refer to first image) When I run the optimizer, the log
Hi, When i'm using MetaTrader 5, when the timeframe is over the chart hangs, the timer doesn't show and the new candle doesn't form and even the current rate doesn't show. Sometime I have to wait for a minute to see next candle. I'm trading in shorter timeframe 1, 5 & 15 minute and if the next
The Main Study MetaTrader module for integration with Python - documentation Python Releases for Windows - website MetaTrader5 : Python Package - website ---------------- The Article MetaTrader 5 and Python integration: receiving and sending data - the article Seasonality Filtering and time
Hello everyone, I hope you are all doing well. I have been executing the following code to collect information from various currency pairs. However, I've noticed that the resulting data shows values with a 3-hour delay. Could this delay be due to the fact that I am using a Demo account, or do I
So, i have made this code to print the list of all trades made in the backtest. But it does't print anything, there is trades (i did't shared the strategy code, but there is roughly 40 trades executed in the backtest). Could someone please help me fix my code
Hello, Is there anyone know solution of this kind of issue I am facing? In order to widen candle there are only 6 scales. The 1st is the most thinner candle. The 6th is the most wider candle. Is it possible to show candles more wider than 4th scale and more thinner than 5th scale at metatrader5? My
  Signals  (3)
How can I create an URL to all my published Signals
In Mt4 we can scale fix and drag the price chart anywhere the cursor can be dragged, however in Mt5 when you scale fix you can drag the chart any direction except down.... This EXTREMELY frustrating, especially when you are trying to place pending orders which may be more than several pips above the
the function as below shows bool CSignalMACD::ExtState( int ind) { //--- operation of this method results in a bit-map of extremums //--- practically, the bit-map of extremums is an "array" of 4-bit fields //--- each "element of the array" definitely describes the ratio //--- of current extremums
  Forecast and levels for USD/CNH  (190   1 2 3 4 5 ... 18 19)
USD/CNH April-June 2017 Forecast: ranging for the bullish to be continuing or for correction to be started W1 price is located above Ichimoku cloud in the bullish area of the chart within the following support/resistance levels: 6.9868 resistance level located in the beginning of the bullish trend...
  Forecast and levels for Dollar Index  (224   1 2 3 4 5 ... 22 23)
Dollar Index April-June 2017 Forecast: ranging correction W1 price is located above Ichimoku cloud in the primary area of the chart. The price is on secondary correction which was started in the beginning of this year by bouncing from 103.80/102.27 resistance levels to below. For now, the price is...
Good day dear forum members. After reading the forum a bit, I came across several threads on arbitrage and pair trading . Judging by the threads, some are interested and some are trying it. I used to dabble in this topic a long time ago, but my knowledge was not enough. Now I am a complete mess in
Hello everyone. 1. Dynamically allocated arrays, objects and instances of classes may hold important data. 2. Reloading the system or bot for any reason causes interruption and loss of those data. How do you fix this issue? Do you just use the static allocation methods and avoid using Objects in
  Chaos Theory by Bill Williams  (83   1 2 3 4 5 ... 8 9)
http://www.alpari.co.uk/en/market-analysis-guide/chaos-theory/index.html I had a quick read through and it sounds very impressive. what do other people think? is it good? has an AE been done before based on this theory?
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
Dear traders. The common belief is reward risk ratio is not enough in evaluating profitability. You also need to know the win rate. I have a theory for myself. I just want to know how you think of this. "You cannot stay profitable in long run with reward risk ratio less than one. Regardless of win
  Signals Trading  (17   1 2)
Hi everybody Before opening this new thread I already red all the FAQ and the forums topic about signals trading.  All I'd like to know why I get an orange icon on the Signal part.  By mistake I first activated it on my personal PC (and I don't remember of which color it was) then I moved everything...
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, In view of the general level of interest and the number of inquiries I've received from many of the folks here, I've decided to start a thread to discuss on a low-risk hedge trade strategy which I've recently developed. The idea behind this strategy is derived partly from the FR/FFS type...
What is the difference Average down forex strategy vs buying coin crypto
I need a false entry script, where can i get one
Is there a proper order in which Include files should be loaded? Some special order to prevent conflicts? Why do I ask? I thought something I was reading mentioned it momentarily. I cannot re-locate the reference, but it left a concern in my mind. Any problem with this
Hi everyone, i tried to build a mql5 function that close an order by a magic number input. Below I insert the code of the function. void Close_Position_MN( ulong magicNumber) { int total = PositionsTotal (); for ( int i
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
Hello house, I am developing a strategy for trading wide intraday gaps on stocks gaps, The type of gaps I am particularly intetested in are the type that appear like minus aigns all over the chart, the price is static for a period of time amd then suddenly takes a leap ans stays put again
How to display extended hour prices on the chart and for the EA? There are large price variations between the end of regular hours and the start of regular hours for a stock. We don't see these variations so my EA and almost all EAs designed for stock trading can't track movements and trends well
I'm trying to figure out if I can have a list of all my trades for the same utensils separate rather than one bulk position in the tool box/terminal box. Is this even possible? Thanks
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...
Hello, idk why my ea work perfectly from my PC but also don't open any position if it run on a vps. MT5 terminals have the same settings, algo trading enabled etc... Anyone can help me please
Good morning, I know that there have been many other discussions on the MQL5 Economic Calendar, but I would like to highlight this fact that I cannot understand. Let me start by saying that I am using IC Markets as a Broker, I know for a fact that the ICM candle times are GMT +2 in standard time
A must ! Before using it or asking any question : please read the Online Help (Also accessible by F1 on your MT5 platform) Strategy Tester For Traders General overview of the possibilities. Overview of results : Visualize a Strategy in the MetaTrader 5 Tester , The general information about
Martingale: The gambler doubles his bet after every loss... There are a few complicated Martingale math papers floating around and even those are mostly about roulette but I thought of a way to make a really simple math based presentation. First of all I am assuming the goal is to make as much
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
Hi everyone, I'm once again in the optimization rabbit hole and I figured you know what, why not post my own process on the forum and let everyone tear it apart lol, who know's maybe i can learn something from it! -Don't hold back i promise i can take it lol! (also i realize i can't describe all the
How to install Set Files provided by the author on EA for specific charts?
Hi, I'm running a code on XAUUSD, and I get this error. I don't know why it tries to modify a position with the same SL/TP level already assigned. Could someone help me to solve this? Thanks I know that is an error to use NormalizeDouble on prices, but I get the same error also with funcion like
Hello, what happened to http://ec.forexprostools.com/ this link is not commercial neither advert I dont see why moderator should delete it. I am trying to access the rss news feed on the link above but I am getting " You don't have permission to access / on this server. " what is the new alternarive
Hello, I am looking for an EA that can Place Buy Stop and Sell Stop Orders on a previous Candle Stick High or Low based on a specific Closing Criteria. Please let me know. Thank You
Hi I'm looking for proper expert which not only support regular features of trade management experts but also support stop-limit orders visually . I'm glad to introduce me best of them...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 there! I'm working on an EA that uses pending orders and I need them to expire x bars after they are created but my broker/symbol doesn´t support GTC or Time Specified Expiration. this is the workaround I´ve created: When conditions are met, it creates a pending order and stores the Expiration
  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
#include <Trade\Trade.mqh> //Instatiate Trades Execution Library CTrade trade; // Trades Info and Executions library void OnTick () { double Ask = NormalizeDouble ( SymbolInfoDouble ( Symbol (), SYMBOL_ASK ), _Digits );
Hello Are you okay? I am looking for ideas for developing indicators for the dummies . These codes will be put in CodeBase and therefore free. These codes will be very simple and therefore a very good support to start learning because that's the goal. The beginner, or the confirmed can very easily
I already have the IndicatorRelease statements in my OnDeinit, and I'd expect the terminal to be smart enough to run that function before completely shutting down the test run, but I guess that's a no. I'm testing an indicator that calls 13 iCustom indicators. The terminal finally does a force
I've got an indicator that's very similar to other indicators I've written, all of them running super-simple algorithms (90% of the code or more is just about getting the data in) that calculate the slope of another indicator's values between two bars, a simple Y2 - Y1 for a user-selectable period
  Everything about RSI  (1461   1 2 3 4 5 ... 146 147)
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
  Need help indentifying indicator  (2705   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...
  Multi pair indicators  (571   1 2 3 4 5 ... 57 58)
Something I have been working some time ago. Multi pair MACD Multi pair CoeffOfLine
I'm just genuinely interested in your opinion. What is it which makes an indicator a freebie, and what is it which makes an indicator have a cost attached to it
  I need help  (2)
This is my first post here. Please forgive me for my weak language. This indicator gives you a signal for the next candle and appears at the end of the candle. I want help with it appearing and disappearing on the same candle it appears on and not after it is closed. Is it possible to help me with
In your opinion...most effective way to find the areas of noise and consolidation by means of technology? What comes to mind is the ATR, and basic volume analysis, but I'd like to know your opinion
[Deleted]
How to use the Accelerator Oscillator in your trading? Accelerator Oscillator is a technical analysis indicator you can find on the MT4. This indicator can help you identify changes in the trend momentum. The most common use of the Accelerator is to view the zero line and it’s interaction with the
Wish all happy beginning of the week. I have following structure and want to use its information in the Indicator Buffer(s). To my understanding indicator buffers are allowed only of 'double' type. Is there any work around to what I want to achieve? struct SFxSession { CENUM_FxSESSION_ID
A few years ago, I found a very strange phenomenon in the process of writing MT5 indicators ->> Let me first talk about my code entry process: 1. The refresh of controls written by MT5 will flicker. When I started writing the trading assistant panel, I found that when I used the CANVAS sketchpad to
Hey guys, I have the following problem and it seem I am not the only one. I cannot change the colors of indicators. I can change text in a text field , but if I double click the color fields, nothing changes. No menu appears. It is with all indicators. What is the solution? Thanks
Hi Does anyone know of an order flow volume indicator for MT4 that shows the buyers and sellers within each bar like this one for Ninjatrader?
Hi all, For some strange reason, the buffer wd[i] returns INF indefinitely. Ive normalized the digits but its still giving an INF value. Can someone pinpoint the error in the code? Will be greatly appreciated. Thank you. int i = ( int ) MathMax (prev_calculated- 1 , 1 ); for (; i<rates_total; i++){
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
XP Forex Trade Manager Grid MT4 : Forex Trade Manager Grid MT4 helps you to managing orders and achieve the goal. You only need to place first order with Take Profit, run EA and set in params profit (pips) you want to get. EA will be managing your positions, as will gather appointed number of pips
New article Neural networks made easy (Part 22): Unsupervised learning of recurrent models has been published: We continue to study unsupervised learning algorithms. This time I suggest that we discuss the features of autoencoders when applied to recurrent model training. The model testing
Check out the new article: MQL5 Wizard Techniques you should know (Part 21): Testing with Economic Calendar Data . Economic Calendar Data is not available for testing with Expert Advisors within Strategy Tester, by default. We look at how Databases could help in providing a work around this
Check out the new article: Modified Grid-Hedge EA in MQL5 (Part I): Making a Simple Hedge EA . We will be creating a simple hedge EA as a base for our more advanced Grid-Hedge EA, which will be a mixture of classic grid and classic hedge strategies. By the end of this article, you will know how to
Check out the new article: Modified Grid-Hedge EA in MQL5 (Part II): Making a Simple Grid EA . In this article, we explored the classic grid strategy, detailing its automation using an Expert Advisor in MQL5 and analyzing initial backtest results. We highlighted the strategy's need for high holding
Check out the new article: Master MQL5 from beginner to pro (Part II): Basic data types and use of variable . This is a continuation of the series for beginners. In this article, we'll look at how to create constants and variables, write dates, colors, and other useful data. We will learn how to
Check out the new article: Data Science and ML (Part 23): Why LightGBM and XGBoost outperform a lot of AI models? . These advanced gradient-=boosted decision tree techniques offer superior performance and flexibility, making them ideal for financial modeling and algorithmic trading. Learn how to
New article Learn how to design a trading system by Volumes has been published: Here is a new article from our series about learning how to design a trading system based on the most popular technical indicators. The current article will be devoted to the Volumes indicator. Volume as a concept is one
Check out the new article: Population optimization algorithms: Artificial Multi-Social Search Objects (MSO) . This is a continuation of the previous article considering the idea of social groups. The article explores the evolution of social groups using movement and memory algorithms. The results
Check out the new article: Combinatorially Symmetric Cross Validation In MQL5 . In this article we present the implementation of Combinatorially Symmetric Cross Validation in pure MQL5, to measure the degree to which a overfitting may occure after optimizing a strategy using the slow complete
A BETTER RSI : Relative Strength Index that completely removes noise, works on all markets! Author: Zoe Nsidibe Udokpan
Hello, I'm new here. Somebody help me with a function to decode JWT into readable JSON. I couldn't find an implementation anywhere. I receive a token from the broker, which I will have to use in requests
Check out the new article: Bill Williams Strategy with and without other Indicators and Predictions . In this article, we will take a look to one the famous strategies of Bill Williams, and discuss it, and try to improve the strategy with other indicators and with predictions. Bill Williams has a
Super Trend Hull Indicator: Super trend indicator that uses hull average for calculation. Author: Mladen Rakic
hi i have a simple indicator which draw a trend line horizontally and to the right , can we get the date of the t2 for that trend line using any code? (even if the trend line extended out the range of the trading bar)? as in the attached pic
  Usefull links/threads/tools  (57   1 2 3 4 5 6)
The thread about threads: what's going around the forum everywhere ============ MT5, mql5, mql5.com suggestions for improvement thread ============ Requests & Ideas The beginning Requests & Ideas, the beginning - the thread Suggestions for Trading System thread After Requests & Ideas (MQL5
The MetaTrader 4 update will be released on Friday, May 24, 2024. This version provides important security improvements, error fixes, and platform stability enhancements. The update will be available through the Live Update system
Hello friends, I would like to recreate this indicator for MT4, or if someone already has it done for MT4, that would be even better :D. Here's a description of the indicator and what I know about it: It's an indicator used to understand when to enter and exit the market in spread trading
  MT4 cannot load EA.ex4  (21   1 2 3)
hello, my case now is I purchased EA from market and cant load it in my mt4, ‘C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal\xxxxxxxxxx\MQL4\Experts\Market\name EA.ex4’ other EAs are fine. Im using MT4 ICmarket. reinstall several times already
Hi, I have purchased a custom EA and there is new version out. i want to update from version 5 to version 6. I cant figire out how to do it. The develpor told me that it should be in Markets and then purchases. when i click on the purchase and the said EA. I dont see any button or tab there to
hi any idea why EA cant load? anyone encounter this? had be uninstall and reinstall again can someone guide me in this
Hello everybody, I have this code for "Expert Advisor", but it doeasn't work by my expectation. I want to open and close order by selected time. When the time is on the same date ex 15:00 to 16:00 it work. But when the close date is on next day it doesnt work ex. 23:50 to 0:30. The order open and
Hello I prepared a video so you can see how it can't connect. https://file.io/qBcf32Kdy58y I used its vpn. I never had this problem before. I can connect to my country's internet on my desktop computer, but I can't with my mobile phone
  Buffer values  (2)
Hello, I'm working with a developer to create a mt4 indicator that reads buffer values on the chart saved by 2 other indicators and uses those values to determine when a trade alert should be given. I want to use the iCustom() function to reference values stored from the other two indicators on the
does anybody know why the EA that work properly a few days befor now does not work in mt4
I am using MT4 and I have used mql5 marketplace from it. It was working well three months ago. Today when I am trying login I am getting the following message "MQL5.community authorization failed". The MT4 version I am using is download from "Octafx" broker website. Please help me solve this
  make a loop  (1)
I want that, in every 15 minute candle, the cobuffer value of the previous 26 candles will be added together Can someone help me in this case
Hi I have built two basic indicators today for my own use but I cannot finish them due to 4/5 red lines that I have tried many scenarios with no avail what do I need to put in the following boxes Copyright Link Version Atrict indicator chart window It may seem obivious to some I know but nothing
Hello, I'm working on an expert advisor created by me; I've actually defined how the program opens a position (sell and buy) but I have some throubles with the exits. I need to code this situation: in case of long position, the EA should exit if: * Bid is less of the first "lowest low" (the most...