MQL5 Algo Trading community — forex forum for traders and developers

👉🏻 In any instrument, you cannot enter short trade because the price is too high or enter long trade because the price is too low. 👉🏻 If the price is too high, it means that there is an upside trend and you need to move with the trend or vice versa. You don't need to catch the trend reversal
Please tell me, if a signal account is for 10k$ and order is 0.5, what will be copied on a $6k subscriber
  Off-topic posts  (1505   1 2 3 4 5 ... 150 151)
Comments that do not relate to the " Ask for help ", have been moved into this topic
General rules, enforced by moderators : Rules Please be polite when communicating on this website. Refrain from statements that may offend or insult other users, Negative discussions of any banking, brokerage and other financial institutions are not allowed, Any discussions about personal relations
Hello, We are a VPS Hosting Platform , and most of our clients use our services to run MT5, across several different brokers. Recently we have identified that there is a communication problem between our datacenter and MT5. We are suspecting a blockage on the Metaquotes servers. It seems that the
Hi, i just installed metatrader. I was searching for BTC symbol but I got a lot of instruments that doesn't represent real BTC value. Like Grayscale shares for 44 usd etc. How to see BTC chart in real time? Do I need to pay for some extra market data? thanks for any reply
Hello everyone, Not sure what may have changed but I am unable to connect to my broker's terminal in the past 48 hours. I am operating on a Windows 2019 VPS. Never had this problem before. I have tried to turned off firewall, anti virus, restarted server and still have same issues I was able to
Tried to feed in: - closing prices - difference of closing prices of N candles in a row - difference of closing prices of N candles in a row from all allied pairs on both the euro and dollar sides, on the eurodollar pair - ratios of candles' shadows to their bodies of N candles in a row - ratio of
  Does anyone know how this happened?  (61   1 2 3 4 5 6 7)
Hi. I placed a sell limit order in my real account. But position opened at a level that chart didn't reach to it. Is it possible
If you have any feedback or have experienced the same, help! :) I've tried everything, even re-installed MT5. The odd thing is that click/drag from Market Watch was working fine and then one day, it's doing wired things. I can't even reorder (sort). Tried reset as well, nadda. What sometimes does
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
I'm new to MT5 and I am trying to setup my trading charts for FX. In total I have 22 pairs (chart tabs) that I would like to have for quick access and I am trying to save a different profile for each timeframe (M1, W1, D1, 12, 8, 6, 4, 2 and 1 H). I have a GB fibre connection, 64GB ram and 12 core
Hello guys, I am not sure how to assess if a spread is large or small. I tried to compare it with the average daily range and I also compared the spread to the value of the currency itself. What makes most sense for you? It is not only the points because 3 points are not the same on EURCHF or GBPJPY
Can i change the location of the IDE's temporary files ? During compilation with a 60mb include file the hard drive bloats in size and runs out at which point the ide stops compiling. I changed the location of the swap file to a new drive , restarted , but the same small system drive keeps getting
MetaQuotes has launched new MQL5.community information channels on Facebook, X.com (Twitter), and Telegram. These channels provide daily publications of relevant technical materials from the MQL5.com Articles and CodeBase sections. They are designed to promptly update developers on algorithmic
  Advanced trading lessons  (793   1 2 3 4 5 ... 79 80)
I have gotten a few request from different traders from time to time who want to learn about trading. so i decided to do this thread to help traders with their trading as group. feel free to ask questions at any time. thanks, and lets get started!!!
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
  All About Price Action  (27   1 2 3)
Dear friends/Brothers/Sisters, I want to start this post regarding Price Action. I want people to help about what I know. Please Respond this post, Share the way you know and learn the way I know. I am not a master but a trader like others and also like to know how others doing. Reply and Keep in...
  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
I have been a professional for years, I've run commodity pools/small investment organizations, multi-city enterprises. Our returns were consistently above 50% per month. I have won and lost like the rest of us. I am at the top of the game right now, yet am facing the end of my days possibly so I
  Harmonic Trading  (5989   1 2 3 4 5 ... 598 599)
Hello all I have tested many strategies and many other stuff but i did not found them more accurant then basic analysis of the market. i mean,the Price Patterns. 1. harmony indicators : here and here. 2. candelsticks reversal patterns is here. 3. Price Patterns : - Price Patterns
Hi, i got a few strategies developed and coded by me, i test them to be profitable for the last 7 years (2018-2024 included). i now have a strategy in my hands that is decently profitable 2016-2024 but is not profitable 2012-2015, is that a reason to not take it into consideration? In my mind is the
As from the title, I mean which method has the best ratio safety/profitability for you (support resistance based, atr based, range based, time based etc etc.) Share your opinion...
  Jurik  (458   1 2 3 4 5 ... 45 46)
Jurik Moving Average . About this indicator and some others read https://www.forex-tsd.com/forum/debates-discussions/197-laguerre-indicator-description
  Breakout Strategy  (17   1 2)
The way I trade breakouts is to first look for an area of resistance or support that has at least two touch points and when there is a break of this area I wait for a retest to enter. I am wondering if it would be a possible strategy to trade simple breaks of structure and changes of character the
i want to show you and suggest you this simple and proper way of trading that i have ever seen.i mean price pattern.ofcourse many of you have heard about it but i am trading with this system and it is very practical and profitable forthermore very simple.wihout any indicator just Fib
  Mr.Nims, Renko Ashi Scalping System.  (3551   1 2 3 4 5 ... 355 356)
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...
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
  Nfp 06-12-2024  (5)
Hey all! im trying with creating an EA thats place positions based on the news! So far so good! On this moment im backtesting the nfp data. if actual is better then the forecast then buy USD, if actual is worser than forecast , the Sell. Its a very simple strategy what i working for now, but there
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...
  Trading Futures  (4)
Hello all, I am new to the MT5 platform & my background is in trading E-Mini S&P500 futures. Of course, I am interested in algorithmic trading but I have not been able to find any source code for this particular instrument. I would appreciate any guidance or assistance in finding some expert
  Who are the resistance?  (12   1 2)
If BTC/USD has support at $68,000 and resistance at $70,000, what type of group or person would keep dumping at $70,000 when they make very little profit from a buy at $69,000
Hey guys, dumb questions from a noob I just created a demo account on AMP Global to try their MT5 and I'm trying to find the emini futures in there (S&P 500) but I simply can't. Their website says they support it, but I just can't find it. I wonder if I'm doing something wrong here
Hi @ all, i´m new with MT 5 and wanted to know if its possible to trade on sim/demo account other markets than forex? For instance, NQ, SP500, etc. For now i only see forex markets to choose from. Any ideas? Thanks
Newbie question I know..trying to place a leveraged buy order for stock RNG.N. Current ask price is at 32,950. Account balance is 103€ with the same free margin (no other open positions) and a 1:200 leverage. For 50 stocks this should be enough, right? Stop loss is not set. Still getting the "not
Hi, I have data export from NT8 and need to import it in MT5 but the formats compatible with the two platforms are clearly different. Is there a process/tool to automate this
good day. I'm new here, and I can't find an answer. Please advise: I downloaded a couple of "free" EAs to MT5 and I need to backtest them via "test". But I have a problem that it is counting my profit as a few dollars. I have something set up wrong. I need to set it up for back-testing on stocks and
Hello all, I'm a software engineer with a C++ background and have been using metatrader for a long time. I've been importing chart data into custom symbols successfully however, I lately have been needing to import historic prices; and in this area, MT5 is limited. The issue --seems to-- lie in the
Dear all, I am trying to import historical data (M1) to MT5 from my Tradestation account. I have export the data in csv format and below there are some rows as example: "Date","Time","Open","High","Low","Close","TotalVolume" 1/2/2008,03:01:00,3841.00,3842.25,3840.25,3841.75,184
[Deleted]
MetaQuotes Software and oneZero Financial Systems announce a new connectivity gateway for integration with Interactive Brokers Group, Inc., available through the oneZero Hub product. The gateway provides the possibility to trade stocks, futures and other exchange traded instruments on the largest...
  Futures Rollover  (1)
does the future contracts on mt5 automatically rollover? Like ES, YM, NQ
Hi I have been trading UNLEVERAGED ETFs on non metatrader broker of Indices (NASDAQ100,S&P500) and Metals(Gold, Silver) . I was always buying .Long The reason for this choice was because no Swap is being charged and I can hold a position for months without much stress. I will now seek MT5 brokers
I have a custom symbol for heating oil futures. At times, historical prices have dropped below zero. It seems that MT5 will not accept negative numbers for prices (see image). Is there any way to load negative values or is this not supported
Last Friday, the new MetaTrader 5 trading platform build 1375 with the Time & Sales option was officially released. The Time & Sales feature in the Market Depth window enables users to view the real-time list of all exchange transactions. The Time & Sales list provides...
Hi guys, I am trying to find initial Balance of account working with Deals history and simply made a code to take and Print Deals data like this: void FindInitialBalance() { if (! HistorySelect (EAStartTime, TimeCurrent ())) {initialBalance= 0 ; return ;} datetime Day0 = iTime ( Symbol ()
Hi.........one of my EAs is producing the following error WSFR3: BUY not taken!!! - No Hedge, or FIFO restriction ... the broker says he has no restriction at his end.......and EA provider says it is the problem with the broker having FIFO restriction. Any clue on how to catch on the real trouble
Hello, So, when the price gets to your limited order price , but the limited order is not executed. Every day I see a few of them. I am assuming my order is far back in the book queue and never gets a chance to be executed. But, how do you handle this condition in your EA ? I see some options: 1)
Hello, I am experiencing an issue during the verification process for publishing my Expert Advisor (EA) on the market. The strategy tester is showing the following error message: test on EURUSD,H1 (netting) 2022.02.04 18:00:00 failed instant buy 3.4 EURUSD at 1.14423 [Volume limit reached]
Hello. I'm using latest MT5 terminal. (5.0.0 build 4620) I'm trying to use this function with strategy tester. Symbol: BTCUSD Account size: 10000 Leverage: 1:1 Here's an example output when I'm trying to debug it inside Trade\AccountInfo.mqh (the MaxLotCheck function): if (! OrderCalcMargin
Hi, I got "Internal Compiler Error" message when trying build a large EA containing millions of lines of code (for testing purpose, I get tired of having to read files every test). Total data is about 4-500mb. But when I reduced the data size to ~50mb it built successfully. Is there a maximum size
test on EURUSD,H1 (netting) 2019.04.09 01:00:00 failed cancel order #21 buy limit 0.2 EURUSD at 1.12594 sl: 1.11994 tp: 1.12626 [Invalid stops] 2019.04.09 01:00:01 failed cancel order #21 buy limit 0.2 EURUSD at 1.12594 sl: 1.11994 tp: 1.12626 [Invalid stops] 2019.04.09 01:00:02 failed cancel order
If I have ten accounts with a broker and I put them in algo trading, do I also have the option for 10 VPS subscriptio
#property copyright "Copyright 2024, MetaQuotes Ltd." #property link "https://www.mql5.com" #property version "1.00" #include <Trade/Trade.mqh> CTrade trade; CPositionInfo pos; COrderInfo ord; input group "=== Trading inputs ===" input double RiskPercent =
Let's say you like the performance of an EA over a certain period, but you are unwilling to use it because of the fact that it lacks any risk management features. In this case you could code another EA which applies the desired risk management and have both running on separate charts. But you are
I want to test some code I just wrote but I can't because automated trading has been disabled. Thoughts
I try send EA for validate. its Validation completed with errors test on EURUSD,H1 (netting) 2021.02 . 04 20 : 00 : 00 position stop out triggered at 45.98 % [ # 2 buy 5 EURUSD 1.2104456 tp: 1.22345 ] stop out occurred on 2 % of testing interval strategy tester report 1 total trades I try fix its
Is anyone able to use the cloud protector as of February 16 2025? It can’t connect to it. Thank you
I want to enter the trade when current candle crosses high of previous candle. But issue there's something wrong that `high` is always less than previous candle high. In attached screenshot you can see it's printing high less than previous high even bullish candles are forming. void OnTick () { if
Hello, I find an Error during backtesting as shown in this pic While: void ModifyBuy ( string Symboll , double StopLoss, double TakeProfit ) { for ( int posIndex= PositionsTotal ()- 1 ; posIndex>= 0 ; posIndex-- )
Hello MQL5 Community, I would like to know if there is any risk reward indicator for download in Metatrader 5, or a way to calculate the risk reward ratio easily without having to compute it manually. Please let me know :)
Hello Coders, I am using MACD Oscillator which Envelope insteads of MA line in MT4 platform. Currently, I want to continue using this Oscillator in MT5 but I don't know how to code Envelope-On-Array with MQL5, I hope Coders will guide me to code this tool with MQL5, thank you
  Everything about RSI  (1465   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
Hi, I copied a Donchian channel indicator from online resources. I want to plot the Upper and Lower at US market open. The values should only change at US market open. Then remain the same value after 16:30(IC market server time at US open). But I failed to do so. #property indicator_chart_window
Hello, I'm developing a Bollinger Bands indicator with sound alerts, and I'm facing an issue with custom sound playback. Issue: 1. In MT5's default price alerts (Tools > Options > Events), we can select and play ANY .wav file from the Sounds folder 2. However, in my custom indicator , I can only
I am relatively new to metatrader and have written the attached indicator(EMA_slope-v1.3.mq5). It seems to be ok when running as an indicator, but the performance seems poor when running against a strategy. Can someone give me some advice on how to improve the performance of this
Hi there, I'm just curious as to how to proceed with calculating the EMA for a LinearRegression calculation. So I have adopted a LinearRegression from mladen (credits to the owner). And this seems to be working, what i wish to do next is to calculate the EMA of the resulting LinearRegression. Below
I'm a newbie here, the question is how to add a rounded rectangle, currently I can only add rectangles
Hey, can anyone help me understand how i can draw objects on indicator_separate_window. What i want to draw is a chart graphical object. It displays a mini chart. If i use the ObjectCreate function, it draws it in the main chart not the indicator window. Can anyone help
Hey guys, I will never understand how the loop of an indicator works. It's easy when I calculate the whole indicator with every tick but it should be a bit more efficient. Only the new bars should be calculated. I read many articles about prev_calculated , rates_total and so on. But obviously I am
Hi guys, I've created an indicator with a panel, using CappDialog class.. The problem is that each time i change the time frame on the chart, the panel is like reloaded at its default position and settings. I tried two different approaches, the first one where eveything is on the same file and the
  Max Daily DD  (2)
Hello, Do you know any scripts or indicators to monitor Daily max Drawdown (DD) for MT5? Best, Murat Y
Hello Assume an arrow (draw type) buffer in an indicator. The arrow is drawn by placing the center of the character at the specified time at the price in the buffer. The PLOT_ARROW_SHIFT value that shifts arrows up or down in a plot is specified in pixels while the size of the arrow in the arrow
  Keltner Channel  (75   1 2 3 4 5 ... 7 8)
Hi. Anybody got Keltner Channel with deviation settings? I have keltner channel but unable to set the diviation. Any input would be grateful. Thanks
  Code problem!  (3)
I have a problem that I don't know how to solve. I have code for an indicator, one of its functions is to show what the price is at a specific point - in this case, the value at the last closed bar. The problem is that the indicator recognizes the start and end trend-line coordinates as the same and
New article Payments and payment methods is published: MQL5.community built-in services offer great opportunities both to MQL5 developers and ordinary traders with no programming skills. But all these features can't be implemented without in-house secure payment system, that provides a convenient
Check out the new article: Price Action Analysis Toolkit Development (Part 13): RSI Sentinel Tool . Price action can be effectively analyzed by identifying divergences, with technical indicators such as the RSI providing crucial confirmation signals. In the article below, we explain how automated
Economic Calendar Monitor and Cache for Backtesting on History : This indicator displays current events on the chart and allows you to export the calendar to archives for backtesting, automatically fixing time discrepancies between the history of bars and the history of events. This is an improved
Check out the new article: Introduction to MQL5 (Part 11): A Beginner's Guide to Working with Built-in Indicators in MQL5 (II) . Discover how to develop an Expert Advisor (EA) in MQL5 using multiple indicators like RSI, MA, and Stochastic Oscillator to detect hidden bullish and bearish divergences
Collect Data (Date, Time and Close Price) : A simple starting-point script to collect data and send to a CSV in oldest-newest ordering. In this example only the close price data is collected. Author: samuk1000
Check out the new article: Master MQL5 from beginner to pro (Part IV): About Arrays, Functions and Global Terminal Variables . The article is a continuation of the series for beginners. It covers in detail data arrays, the interaction of data and functions, as well as global terminal variables that
Check out the new article: Automating Trading Strategies in MQL5 (Part 5): Developing the Adaptive Crossover RSI Trading Suite Strategy . In this article, we develop the Adaptive Crossover RSI Trading Suite System, which uses 14- and 50-period moving average crossovers for signals, confirmed by a
Check out the new article: Animal Migration Optimization (AMO) algorithm . The article is devoted to the AMO algorithm, which models the seasonal migration of animals in search of optimal conditions for life and reproduction. The main features of AMO include the use of topological neighborhood and a
Breakout: An indicator of levels. The indicator allows setting:the hour and minute of the beginning of the "period" zone, the hour and minute of the end of the "period" zone, the hour and minute of the end of the "area" The "area" zone begins right after the end of the "period" zone It has five...
Check out the new article: Automating Trading Strategies in MQL5 (Part 7): Building a Grid Trading EA with Dynamic Lot Scaling . In this article, we build a grid trading expert advisor in MQL5 that uses dynamic lot scaling. We cover the strategy design, code implementation, and backtesting process
Trend Two Lines : The indicator in the subwindow shows a comparison of High and Low prices Author: Vladimir Karputov
Print massive information (PrintXYZ) from the terminal : PrintXYZ() library to print massive information from the terminal. Author: amrali
Check out the new article: Reimagining Classic Strategies (Part IV): SP500 and US Treasury Notes . In this series of articles, we analyze classical trading strategies using modern algorithms to determine whether we can improve the strategy using AI. In today's article, we revisit a classical
Intraday Currencies Performance : A simple observatory of individual currencies. Author: Pueblo
BB-Xtreme MT4 EA : BB-Xtreme EA is a powerful Bollinger Bands breakout system with dynamic lot sizing, stop loss, take profit, slippage control, drawdown protection, and smart risk management. Author: Kommoju Sahityananda Devi
How do you fix this issue? I have a Live account with a broker but can't place a New Order. All of the markets are showing as disabled
The MetaTrader 4 update will be released on Friday, February 21, 2025. This version provides important security improvements, error fixes, and platform stability enhancements. The update will be available through the Live Update system
Hey guys, I am a bit stuck and need help. I am currently coding a semi-automatic MT4 EA for order placement and management. The idea is, that I insert these variables: 1) Order direction (buy/sell) 2) Start price (e.g. 2800) 3) End price (e.g. 2798) 4) SL (e.g. 2802) 5) TP1 (2796) 6) TP2 (2794) 7)
  Good Indis =)  (29   1 2 3)
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
  Download history in MQL4 EA  (53   1 2 3 4 5 6)
I need 15M 1H 4H 1D 1W  for all 28 pairs for 30 periods back in my EA. I have used a very good tool in MQL5 published  here but is there a way of doing this in MQl4?
Hello, I'm having an issue getting the correct signal from my indicator. Previously the line of code stated ( if x > 1) and it signalled correctly now i want it to signal if x is between 1 and 2, but the back test seem erratic, I'm using the code below if (x > 1 && x < 2) it seems as though it'll
Please guys look at the following code. It is meant to print numbers from 1000 down to 0. But I need to break out of the loop before it hits 0 by the press of a button. How can I achieve that? Control doesn't enter the loop. void OnInit () { ObjectCreate ( 0 , "Run" , OBJ_BUTTON , 0 , 0 , 0 );
hello all. I have created an EA that creates some templates in "files" and moves them into the Templates folder using Windows API (as I can't write into Templates); when I tried to publish in the market, MQL5 rejected it. Some days ago I saw a post where it was provided exactly this recommendation
We trade Forex using an EA (MT4). We found calculation errors in profit calculations at back test as detailed below. We would appreciate system correction because we need accuracy in back test profit and margin forecast before migrating to an real account. Please find attached sample "Results" tab
Hey guys, I've extended the basic Zigzag indicator as following: - peaks on close values (not wicks) - 4 additional arrays: valid highs & valid lows + associated wicks. They save the peaks as soon as they're not changeable anymore - after new valid high it compares with previous high wick + 20 pips
If you have questions about MQL4, MT4, MetaTrader 4, please post in this thread. Especially when your questions are related to trading functions
  Coding help  (7910   1 2 3 4 5 ... 790 791)
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
Who has this indicator mq4 file?
Hi All, Hopefully a quick question.  How do I create a line of comments in the Input Tap of the Property Windows for the input variables. For example if I want to indicate that input variables below a certain line should be changed just in special market conditions? Thanks, MG
Hello,     I'm working on it fibonacci retracement and i want to give names to the horizontal lines with label. How can do that?   Thank you for helping.