MQL5 Algo Trading community — forex forum for traders and developers

See attached images . The USD amounts shown for TP and SL have got to be wrong, and so there must be some kind of bug in the calculation, right? This 0.1 position on the USDJPY equals a 10000 USD investment, and so if the price of USD in JPY went to 0 that should mean a complete loss of the initial
Hi, I'm new to MT (I am using MT5) and was wondering if someone with experience can help me with a layout question. I'm currently setting up my trading windows and was wondering if there is a way of grouping multiple chart windows / chart tabs under a single tab? I will try to explain, I currently
Hello, Could someone tell me how to remove these borders from the graph windows indicated in the image? Thanks in advance, Juan
How can I know how many activations I have left with an EA? Thanks in advance
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
Hi everyone, I am experiencing a persistent issue with logging into MQL5 from a VPS rented from a provider under ASN AS197540 . The problem: When trying to log in via the MQL5 terminal, I receive a 403 error (forbidden). Using a SOCKS proxy in a browser , I can access the site without issues. Using
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
  Support contact?  (9)
Hi All, How can I join the support
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
Hello. Hope that somebody can help me. Since yesterday i can not load MT5 any more. I open a Terminal in the morning and everything seems to work well. But after like 5 minutes it ask me to restart because a new version was available. After confirmation both Terminal and Metaeditor cant load. I try
is any one will guide me, how to install free robot in mt5 or mt4? I will appreciate
This stems from the various issues i've had recently with developers in the freelance section. For me, it's always a gamble for picking someone right to do your work for you and to ensure that the EA is bespoke. But recently i'm having trouble with developers who do not understand simple
Since there exist now (free) tools ( EA/Script) in codebase and/or MQL market place that can create candles for sub minute timeframe, i.e. candle by seconds. Would Metaquotes please show "seconds" on candle's tooltip ? I don't think this small but useful additional feature would slow your MT5
I have tried everything to get my algo to trade for me from tradingview, to pineconnector to metatrader 5. I simply can not find someone to just help walk me thru it. Ill even pay someone if you can help me! And the latest thing is now that picture is popping up
How to get in touch to Service Desk about incorrect data on Economic Calendar ? Please, don't send me to Service Desk , there is no sense to speak with MQL5 Helper . Incorrect time of events on mql5.com: 1. Bank of Canada (BoC) Interest Rate Decision - correct time of release is at 13:45 GMT, not
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
  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!!!
  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
  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
  All About Price Action  (26   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...
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...
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
  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...
  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...
Hello, Can any one please suggest me the best indicator for binary options trading? Thanks...
I found a solution for the many charts that the strategy tester opens automatically in MT5. Till now I closed them one by one with Ctrl F4 and than clicking on the next chart tab. But this goes faster: On your keyboard: Alt W ... this opens the Windows List. Now select the first of the charts you
One of my MT5 installations is downloaded directly from Metaquotes, and the latest updated Build is 4866 from 15 Feb 2025 I noticed that after this latest update, the Strategy Tester now shows "Indicator" instead of "Expert" at the top in the Settings tab. Is this a bug in this Build of MT5? If
HistorySelect ( 0 , TimeCurrent ()); for ( int i = 0 ;i< HistoryDealsTotal ();i++) { ulong ticket = HistoryDealGetTicket (i); Print ( " i = " +i + " ticket = " + ticket+ " total = " + HistoryDealsTotal ()); int err = GetLastError (); Print (err); } this is my EA's little
Hi, I need some help to resolve the error I'm getting from from function HistoryDealGetInteger. With the following code I'm trying to determine two things when a new position opened and when one closed. HistoryDealGetInteger keeps returning 0 no matter the entry type. Also when I add an if not
Hello. I uploaded my EA for verification but even though I coded it properly and incorporated the necessary checks it still failed the verification with "no trading operations " error. Any guidance is much appreciated
  VPS Question  (2)
I've been running an MT5 at home and at work using the same account I thought that getting a VPS and loading the charts and EAs on there would be a central spot - so i could update settings on say USDCAD EA - change the lot size or take or entry point or what ever and life would be grand i could
MQL5: Market - Can you sell an expert advisor that uses custom indicator? I want to sell an expert advisor but can't really understand how it will work/upload if its uses or calls a custom indicator.
Hi guys like tittle i find a pluguin or similar to have a market replay for test my startegy i want know if exist somthing i try fx blue replay but i cant change my time frame anyone have somthing to suggest? thanks
Hi everyone, I'm on my first EA (with mql5) and I have some trouble. My goal: Get new datas from Calendar event after maximum 5sec. Unforthunetly I get new data sometimes after 1 minutes, sometimes 4 minutes.. It's too long ! I don't understand why, I use EventTimer() to launch the trigger who check
Hello Community, when you attach a dialog to the chart, for instance, the Contorls Dialog located in folder Expert Advisor / Examples and Chart on foreground is s witched off, the dialog is in z order "on surface", so that the trade lines (of order history) are behind the dialog. So the dialog is in
I've written code that captures the signals of an indicator for different inputs and at various timeframes. In version 4, this was straightforward, and obtaining the indicator's output was possible with a single command. in MQL4 I also draw a table for 10 symbols and 8 TF and 5 indicator for each of
Hi There, Can anyone please advise why i have this message when i start my MT5 software? Tester: "cloud servers switched off". I cannot use the strategy tester because of this issue. Thanks
Hello guys, I'm using CopyTicksRange function in my EA to get MqlTick data for some calculations, but CopyTicksRange doesn't work when back-testing. Any solutions
I had it working a moment ago but then it stopped working there isnt even the buttons to stop or play the algo trade its just a fast forward button and I tried the expert advisors that are downloaded and nothing. also, why is metatrader so horribly optimized for anything? I added a picture of what
Hi Folks, 6 hours later and I am done... to get the profit from an opened Position you can do this: if ( PositionSelectByTicket (ticket)) { return ( PositionGetDouble ( POSITION_PROFIT )); } Works like a charme... BUT, if I want to get the profit from an closed Position, nothing
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
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
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
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
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
hey. last night I installed the indicator on a device, today I realized that it does not work. in order to fix the problem I uninstalled the meta trader 4 and reinstalled it and installed the indicator again. this time it worked but it counted as a new device on the indicator install limitation. the
Equidistant ChannelStandard Deviations ChannelLinear Regression ChannelAndrew's Pitchfork (let it be too)Another channel. Will write about it in the commentsNoneI do not have an opinion on the topicI just want to see the answer
Hello, I'm programming several indicators for an expert advisor. Looking at other expert advisors I use as reference, I noticed that indicator signals usually happen only after the bar is closed, not during open bars. I could only reproduce this behavior using 'rates_total-1' in the loop I use for
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
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
divergence and rsi : macd divergence and rsi Author: Playerone
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: How to develop any type of Trailing Stop and connect it to an EA . In this article, we will look at classes for convenient creation of various trailings, as well as learn how to connect a trailing stop to any EA. Continuing the topic about trailing stop started in the
Print massive information (PrintXYZ) from the terminal : PrintXYZ() library to print massive information from the terminal. Author: amrali
Engulfing Indicator : This is an indicator that helps identify Engulfing candle patterns. Author: Minh Hieu Hoang
Zero Lag TEMA Crosses: This indicator is actually a combination of two values: it shows the crosses of fast and slow Zero Lag TEMA, and that cross determines the current market trend. Since Zero Lag TEMA is from a family of fast averages, this indicator is very responsive to sudden market...
Smart Trend Follower : This EA is designed to automatically follow market trends using signals from the Moving Average and Stochastic Oscillator indicators. The EA detects buy and sell signals by utilizing MA crossovers and confirms the trend with Stochastic. Additionally, the EA includes automatic
Check out the new article: From Basic to Intermediate: Variables (III) . Today we will look at how to use predefined MQL5 language variables and constants. In addition, we will analyze another special type of variables: functions. Knowing how to properly work with these variables can mean the
Check out the new article: Creating a Trading Administrator Panel in MQL5 (Part IX): Code Organization (II): Modularization . In this discussion, we take a step further in breaking down our MQL5 program into smaller, more manageable modules. These modular components will then be integrated into the
Check out the new article: Developing a Replay System (Part 59): A New Future . Having a proper understanding of different ideas allows us to do more with less effort. In this article, we'll look at why it's necessary to configure a template before the service can interact with the chart. Also, what
  Indicators: Better Volume  (12   1 2)
Better Volume: Easy and visual way to check abnormal changes in Volume. Author: Minions Labs
Alchem STP Smart ATR : Smooth & smart multiplier to manage scaling and risk. Author: starsseccus2011
Check out the new article: Deconstructing examples of trading strategies in the client terminal . The article uses block diagrams to examine the logic of the candlestick-based training EAs located in the Experts\Free Robots folder of the terminal. For some time now, a new Free Robots folder has
  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.    
  Good Indis =)  (26   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
In MetaEditor, "Edit" menu, "Advanced" option, there are 'Comment' and 'Uncomment' options. They work for me, but only from that menu. Can I use those tools from the keyboard? Next to the 'Comment' option, there is an indication of key combination Ctrl+'. I am not sure what character is that. Is it
Hi Gurus, Can I get a chart event, when I click on mouse button (BEFORE I release the button)? As I experienced, the event occurs when I release the button. Thanks
Hello my friends, I want to build an indicator that show the close for the last X numberof candles only. Therefore, I wrote the attached indicator. //+------------------------------------------------------------------+//|                              Close Oscillator I.mq4...
I am used to Tradingview where dragging the mouse moves the chart horizontally, and the mouse wheel scrolls in/out. I am considering using MT4 for strategy automation but I can't get over this little hiccup. To make matters worse, the mousewheel is even inverted. Why is there no option in the
Hi coders, please advise how to get the iTime automatically for other respective timeframe's datetime ? datetime iTm= iTime (sym, PERIOD_M1 , 15 ); // Shift=15 Print (TimeToStr(iTm)); // Output : 2025.02.14 18:57 Note that the above example of "PERIOD_M1" is not fixed, I may use
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
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 morning, on the mt4 platform I have an expert and an indicator attached to a chart (both without source code). My expert shows two buttons on the chart, one buy and one sell, which are activated and deactivated with a mouse click. I would like to understand if it is possible to simulate an
[Deleted]
Hi, I'm trying to get the number of decimal digits from a number. for example 0.1234 ---> 4 0.465 ---> 3 0.51 ---> 2   So far, I can only a similar function from this function MarketInfo(Symbol(),MODE_DIGITS); But that doesn't really help me. I need to get the number of decimal digits which I get...
hello MQL5 team, as my EA code using iCustom() for importing indi buffers, I want to clear my doubt : every Ontick events, ea re-calculate the indi buffer by iCustom() from the beginning of whole time series , I want to know if I place the indi on chart, whether it reducing the amount of computation