MQL5 Algo Trading community — forex forum for traders and developers
EA validation completed with errors, but there aren't any error on the report. What should I do?
(12 1 2)
any idea on what I should fix
Is it possible to access the buffers of indicators loaded on the chart from an EA
I started coding the EA in MQL4 but decided it was time to switch to MQL5. I want to write an EA which will take trades off support and resistance levels , but will also use protective hedges to guard against loss in case the trade doesn't go the direction it is supposed to. The protective hedge
How can I Share my Personal contact to sell my products this is Legal to share my any kind of link if any one have idea so please tell which link I will provide or Website in my mql5 channel
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
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
Why in addition to taking advantage of computing power (CPU), don't you upgrade MetaTrader 5 Agents Manager to also take advantage of the computing power of computer GPUs ? It would be a great opportunity for the community to offer more computational power to those who need it, and at the same time
i want to do ENUM_TIMEFRAMES xTF; // some logic to set xTF bool listOfIsNewCandle[ 6 ] ; if (someBoolCondition) { if (xTF == PERIOD_M1 ) listOfIsNewCandle = {isNewCandle_6min,isNewCandle_5min,isNewCandle_4min,isNewCandle_3min,isNewCandle_2min, false };
im tring to write a mql5 code based of rsi... i want the EA to only take two trades max a day even when more siginal criteria still pop up... further more, a max of one sell order and one buy order. How do i go about that... my code apparanently takes as many trades as possible as long as the
I have Mql5 channel but when I will post my channel link so suddenly my Mql5 is no more please update me how to get permission to provide channel link in Mql5 thanks
Records more winning trades than losing ones Records more losing trades than winning ones but profits equally overall Trades atleast 5 times daily Trades 5 times a month but is equally profitable Makes very high profit with high risk of margin call Makes small profits with very low risk of margin...
Does anyone knows why, in the web-page of MQL5 there is an offer of renting VPS for 12 months, but in MQL5 VPS that offer does not appear? The largest available is 6 month
Hi I am having an isssue with migrating my Deriv account onto a VPS Error message that i get and when i check the logs i see this
There is potentially an issue with decrementing loops whereby the value of an unsigned value can go to -1. It's easy enough to work around though. for ( ulong r = 2 ; r >= 0 ; r--) { PrintFormat ( "r= %d" , r); // Workaround MQL5 bug if (r==- 1 ) break ; // do stuff } Results
Hello I uses below function for calculate lot size in MQL5 for use simple OrderSend (symbol EURUSD_i and Alpari broker). double dblLotsRisk( double dbStopLoss, double dbRiskRatio ) { double dbLotsMinimum = SymbolInfoDouble ( _Symbol , SYMBOL_VOLUME_MIN ), dbLotsMaximum =
Market Condition Evaluation based on standard indicators in Metatrader 5
(2369 1 2 3 4 5 ... 236 237)
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
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...
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, 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
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...
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...
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
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
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...
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
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...
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
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
I want to convert this code from mql4 to mql5. Please write the code for me. OrderSend(Symbol(),OP_BUY,0.1,Ask,5,Ask-(50*Point),Ask+(TP*Point),"My Comment",00018,0,clrGreen);
Hello and thanks for you time! I would like to me a question about the the OnTick function, the goal is to open 10 buy, then put 10 sell stop, if buy hit tp close the sell stop, if close sell stop open 10 sell, any idea how can i achive that? Like this now i can not beacuse all ifs stucks
test on EURUSD,H1 (netting) 2021.02 . 04 20 : 00 : 00 failed instant buy 0.05 EURUSD at 1.19607 sl: 1.19407 tp: 1.20607 [Invalid volume] 2021.02 . 04 20 : 15 : 20 failed instant buy 0.05 EURUSD at 1.19642 sl: 1.19442 tp: 1.20642 [Invalid volume] 2021.02 . 04 20 : 30 : 40 failed instant buy
#include <Controls\Dialog.mqh> #include <Controls\Button.mqh> #include <Controls\Label.mqh> #include <Controls\Edit.mqh> #include <Controls\CheckBox.mqh> #include <Controls\MyDialogApp.mqh> #include <Controls\RadioGroup.mqh> CAppDialog *MyDialog; void OnInit () { MyDialog = new CMyAppDialog; if
While performing optimization of input parameters via backtesting feature in metatrader 5, I wish to use some condition to stop the agents run of a particular combination of input parameter early. On reaching a certain condition while the agent is performing one such run, i wish to quit that run
Hi all, I want to do the following: -Step 1- catch information about a trade when a position (whether its direct market order or when price hits limit order) opens eg ticket, trade spread, slippage, price requested , price received attribute X value (eg X = 5, this is artificial attribute, not
Can an EA (with or without DLL imports) manage diverse copytrading services such as MQL5, SignalStart and Duplikium for instance ? If yes, how ? If no, what are the other automated solutions to manage the risk while following multiples distinct signals from various services/websites
I was traying to make an EA for triangular arbitrage ... and end up with this one 20 Sharpe Ratio
(15 1 2)
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
Hi, I have a EA which has a struct defined in it (because there are variables of its type in the EA mql file) and the struct type is being used to declare a variable in the header file too. // within mql EA file struct LLevel { ..... } // within mqh file LLevel expiredLLevel[]; After i include
Hello ya'll.....Question, is there an effective EA that can make tight scalps at relatively high frequency that you can turn on and off manually as well as choose the side to trade? On MT4 as well... Sounds simple, but I know it's really asking a lot. Thank you
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)
Can someone share an EA that will send alerts every time when price stop moving within one minute
What is MQL5 Wizard : The MetaTrader 5 Trading Platform includes the MQL5 Wizard , which allows to quickly generate code of an Expert Advisor (Expert Advisor builder). With MQL5 Wizard, knowledge of programming languages is no longer a prerequisite for creating trading robots . In the past, it
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
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
For an indicator that was not how it was described I have politely asked the seller ... no response
I have made an indicator that will show me valid highs and lows following a certain logic. But when after a while (maybe some hours) when i have it on the chart it will start to do weird things, draw lines that shouldn't be drawn, or delete certain line without any logic behind it. I have used the
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
Hello, By reading through this website i am trying to make a (hopefully) very simple indicator. This is for learning purposes as I am a total beginner. My first step is that I want to store the closing price in a variable at a specific time. Later on I want to compare this closing price to a closing
I've got two indicators I'm experimenting with, having not plotted a histogram before. The first one works but was just fooling around to make sure I got the color side of things right. The second one is set up just like the first one in the relevant areas, but doesn't work. Code for the one that
This one is for those that use metatrader 5 Metatrader 5, unfortunately, did some things that hardly are logical. One of the things done by it is that builtin averages (and all the other builtin indicators) are not functions any more. That is as big a nonsense as it can get. Instead of making...
I have noticed that this level indicator on chart causes bad price lagging when US market opens and trading activity steps in. How to reduce the number of lines so that lines are drawn only in the active screen? At the moment lot of lines will be drawn. #property indicator_chart_window #property
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
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
pivots calculation based on pine script v4 : This is the exact conversion of pivotshigh and pivotslow functions from pine script v4 as an mql5 indicator. Author: Yashar Seyyedin
Discussion of article "Improve Your Trading Charts With Interactive GUI's in MQL5 (Part I): Movable GUI"
(12 1 2)
New article Improve Your Trading Charts With Interactive GUI's in MQL5 (Part I): Movable GUI has been published: Unleash the power of dynamic data representation in your trading strategies or utilities with our comprehensive guide on creating movable GUI in MQL5. Dive into the core concept of chart
Check out the new article: MQL5 Wizard Techniques you should know (Part 11): Number Walls . Number Walls are a variant of Linear Shift Back Registers that prescreen sequences for predictability by checking for convergence. We look at how these ideas could be of use in MQL5. For a few time-series, it
Check out the new article: Introduction to MQL5 (Part 2): Navigating Predefined Variables, Common Functions, and Control Flow Statements . Embark on an illuminating journey with Part Two of our MQL5 series. These articles are not just tutorials, they're doorways to an enchanted realm where
RSI adaptive EMA: RSI adaptive EMA Author: Mladen Rakic
Close biggest winning / losing trade in MT4 : This script will scan all the open trades and then will close the biggest winning/losing trade Author: Biswarup Banerjee
New article How to create bots for Telegram in MQL5 has been published:
This article contains step-by-step instructions for creating bots for Telegram in MQL5. This information may prove useful for users who wish to synchronize their trading robot with a mobile device. There are samples of bots in...
Basic Library to Create Volume Profiles : Basic library to create Volume Profiles on chart. Author: Yashar Seyyedin
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
Breakout Strategy with Prop Firm Helper Functions : This is an update of the "Simple Yet Effective Breakout Strategy". In this code, I have added some helper functions for prop firm challenges. Author: Anh Quan Duong
Click on the market chart to create a price alert : This is a first for MetaTrader 5. Now you can click on the chart to create price alerts. Author: Conor Mcnamara
Ilan iMA: Ilan based on indicator iMA (Moving Average, MA) Author: Vladimir Karputov
Lesson 4 Price Action and MA Filter : This is a tutorial on price action trading combined with a moving average filter Author: Dao Thanh Tan
Lesson 3_Price Action : This is a guide to trading using the price action method Author: Dao Thanh Tan
Lesson 2_ Trading RSI Pattern Confirmation two Bottom : This is a tutorial on how to confirm double bottom & RSI patterns Author: Dao Thanh Tan
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
Hi, some good indis found in the internet (4shared) in this topic! First, a smoothed non-repaint version of macd indicator coded by igorad and mladen. Cheer´s
I am hoping you can help fix my code. I am trying to code a MT4 indicator to indicate a powerful downward bar. No matter what I do, I still get :1 errors, 1 warnings OnCalculate function declared with wrong type or/and parameters line 42 column 6 OnCalculate function not found in custom indicator
Good day or night to my fellow coders, I would the clear help of someone to check these codes I think i have a few errors in them and can't find them myself. So I would like the clear Assistance, I do thank you all for your time and pleas DM me, if you're willing to help me on them
Greetings, I am new to metatrader and I am wondering if its possible to place manual test orders in strategy tester? This feature have to exist but I can not find it =(
Good evening everyone, I'm looking for an indicator that shows me all open positions + Long/Short + Magic No. in MT4. Similar to the attached image (unfortunately the indicator shown doesn't work for me). Does anyone know something like that? Would be grateful for any help ;) Thank you very much
Hello There I I am new to coding ! I`ve been developing my EA But I`m geting this error 'Ask' - function not defined ! The code is This if(OrderSelect(s,SELECT_BY_POS,MODE_TRADES)) if(OrderMagicNumber()== MagicNumber) if(OrderType()==OP_SELL) if(OrderOpenPrice()-Ask> MoveToBreakeven*pips)
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
HH = iHigh ( Symbol (), TimeFrame, iHighest ( NULL , 0 , MODE_HIGH ,NoOfBars,StartingBar)); LL = iLow ( Symbol (), TimeFrame, iLowest ( NULL , 0 , MODE_LOW ,NoOfBars,StartingBar)); Please, is it possible to use a formula to find out which bar had highest high and lowest low or the time when it
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
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
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
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
Hello, Anyone knows the location of MT4's data folder for build 1417 released on 1 May 2024 ? For a M1 MacBook Thanks
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...
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.