MQL5.community forex forum for traders and developers

Hello guys, I need a bit of guidance to learn how to test my strategy. I have made up my own strategy, with know indicators and i want to back test it on MT5. I tried the strategy tester, but it is very weak : 1. It shows the evolution of the price not the conditions 2. it does not allow you to
Can i subscribe to more than one signal? if yes, how you doing?
Hi there? Please inform me how I can solve these 9 errors Line 1: OnCalculate function not found in the custom indicator Line 52: 'AbsMOMBuffer'- undeclared identifier Line:52: ' AbsMOMBuffer'- variable expected Line 52
what is the hihgest pips so far that GU has ever moved before retracing
Hello i recently subscribed to a signal provider who deals in normal pairs like EURUSD, but my broker deals in pairs with m at the end, like EURUSDm. My question is, will it copy the signal automatically or I have to do something about it. Thank you
  Indonesian Member  (5744   1 2 3 4 5 ... 574 575)
I want to know how many people from Indonesia is joining this forum. If you're from Indonesia, please comment this topic..Thank you..
how should I code so that the first order has tp 40 and if it doesn't close it and open another order so that the second order has tp 30 and closes the first one too
Hi, I've coded an algorithm that can enter multiple trades based on several signals from different indicators. I am now trying to figure out how to close half of my open positions when they've reached a target profit range and then add a trailing stop on the other half of those particular trades
  How do you identify a trend  (23   1 2 3)
Can we all gather here as coders and traders to discuss how we identify trends in the trading space. Can we share how you identify trends as almost anything i have tested lags
  Please delete my account  (12   1 2)
Dear admin Please delete my account.I made it by a mistake. Thank you
is it because of the spam being deleted on them
Hi I'm install mt5 both on windows 7 pro on Virtual Machine (VM) hosted in Linux Mint notebook and straigth on linux Mint 17.3 Rosa. On VM it's oll OK, but on Linux it's impossible to install because ask proxy but I don't use a proxy. This problem stop installer. It's know in Internet but I don't...
We have updated the MQL5.com Chat to further enhance the user conversation experience. Check out the new service interface and updated functions, such as the revised friending logic. Create groups on financial topics, join existing channels, discuss current issues with fellow traders in group chats
Hi, I can't change my personal information, why ?  I have erased all the signals that I was selling. Best Regards. Burny
Hello all, Wondering if someone could point me in the right direction vis-a-vis an issue I'm facing with WebRequest() when attempting to download shared files from Google Drive, e.g. sample file linked below: https://drive.google.com/uc?id=1-PtADmc85Tws_RcRF9nGJ0LkkBvv3DWO&export=download Attached
  LabTrend  (275   1 2 3 4 5 ... 27 28)
LabTrend is a complete trading system developed by Igorad and is based on the popular ASCTrend. LabTrend is Forex TSD system because the indicators have origin in our forum. Being a complete trading system it could be traded alone or with the help of some extra indicators. In the following post we...
  Daily Breakout EA  (151   1 2 3 4 5 ... 15 16)
Hello Trading Fellows. First, look on my strategy: - Everyday on 0:00 GMT I make two pending orders: 1. Buy @ yesterday high 2. Sell @ yesterday low TP and SL for example: TP:20pips SL:15pips end. On GBP/USD, TP: 20pips, SL: 15pips in 32 days I have: 8 loss = -120 pips 25 win = +500 pips On another...
  What is your favorite strategy ?  (44   1 2 3 4 5)
MartingaleGridHedgingScalpingNewsTrendOther ( write in comments )
Both “Boom” and “Crash”, “Boom” only (not “Crash”), “Crash” only (not “Boom”), No, but I’m interested in knowing more, Never! I don’t have any interest
Hi, Can any one expert trader help me out to share their experience in hedging on correlated pairs both positevely and negatively. Also tell is their any way to have correlation coefficient on MT4
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
  Something Interesting to Read  (100   1 2 3 4 5 ... 9 10)
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...
Please, help me with this strategy. At H4 TimeFrame, it closes Engulfing in the trend, and at M15 it returns to SR, and then rebounds from it. SL = 18 Pips TP = 75 Pips Is this a good idea? Is it realistic to trade like this
Hello all, I have been reading into 'Latency Arbitrage' recently and I am curious to know what your thoughts and/or experience was like? I am interested in gaining knowledge as to what the pros and cons are to this method of trading, its sustainability, and what is actually required for a
Hi folks! I am student and new in the forex market. I just want to earn 5$ per day because I have not big investment. I got confused by seeing YT video and nothing works for me. If anybody share his/her strategy then I will be very thankful
5%10%20%30%40%50%50% - 100%
  Trading System by Xard777  (3889   1 2 3 4 5 ... 388 389)
Here is a suggestion for a possible trading system... System one is MT4-Xard777.rar and System two is XARD-BOX.rar Enjoy... All the best Xard777
Hello Scalpers, I am wondering if scalping can be profitably due to slippage using one of the major CFD brokers out there scalping indices such as the SP500 or the NASDAQ on a 5 seconds timeframe? Any experiences? Also, if one is using BuyStop orders do they really have a chance to be executed at
do you have a strategy that you would like to share..? Test, or for any reason for that matter. this is the place to show off your talent
Do you have a simple solution to check cryptocurrency charts in Metatrader5? For example, how to open the Dogecoin chart for analysis in Metatrader5
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
Hello, so i wanna scalp on binance like this guy on https://youtu.be/GmTxWxhiC2c?t=903 he is using ninja trader it's called " ATM Strategy " and as he places an order automatically are placed two more orders for stop loss and take profit on a pre defined ratio. Sadly binance don't support this
  MT5 real FUTURES broker  (26   1 2 3)
Hello, is anyone aware of any futures broker that offer its client the MT5 trading platform ? Is there a list of those? I mean real futures, not CFDs. Futures that trade on CME Globex and Eurex exchanges. Thank you
Dear all, Please let me know which broker offers Crash300 Index as instrument to trade ? I open many forex accounts but cannot find this symbol. Thank you
Hi Starting to look into MT5, have some experience with MT4 for FOREX but would like to start to use EA for stocks. As how, I cant really find if MT5 can help me to achieve what I have been looking for. I want to (and I have some basic programming skills, so I intend to do it myself) an EA that can
If anyone here expert in crypto currencies and having any idea of pi coin's future then please share
  futures  (4)
As I know if I buy a futures instrumentum on the stock exchange, as the expiration date approaches, it converges more and more to the price of the original instrument, but this is not the case at my brokerage company. Can anyone tell me what is the reason for this
  Forecast and levels for CAC 40  (26   1 2 3)
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...
Which Stock Brokers offer MetaTrader 5 platform? Anybody know
Stock Market A To Z: 26 Names, Themes And Trends To Watch (based on the article ) A is for Apple " The stock trailed the broader market in 2016, but there may be tailwinds in 2017. Tax reform may include a provision that incentivizes the company to deploy its billions in foreign cash back to
  Crypto Currencies  (26   1 2 3)
Where can I find the Crypto Currencies like 'Ethereum, Ripple and Bitcoin' ??
Forum on trading, automated trading systems and testing trading strategies Press review Sergey Golubev, 2016.12.25 06:50 Hang Seng Index Q1 2017 Forecast (based on the article) "Underlying sentiment surrounding Hong Kong stocks has remained negative with underlying concerns surrounding...
  Forecast and levels for S&P 500  (471   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...
Yes, No, Interested, Not anymore
Hi, I'm new to this and I'm stuck. My code does not seem to execute at all. Here my very simple code : void OnTick() { //--- Print("OnTick"); } Nothing appears in the "Experts" log when I run my EA. I don't know where to look or what to look for
I find these errors test on EURUSD,H1 (netting) there are no trading operations test on XAUUSD,D1 (netting) strategy tester report 162 total trades test on GBPUSD,M30 (netting) strategy tester report 1 total trades test on EURUSD,M1 (netting) 2020.02 . 18 23 : 09 : 40 current account state
  EA expired  (5)
Hi everybody i have download one EA in somewhere, for me is good because i follow his work and sometimes i close or i move TP in manual ..problem is this : at the end of the 2017 EA is expired there is someone that can do reverse engineering and cut off or move foward the date of expiring ?? I have
Hi all, the example is generic, since I have no idea how to overload the indexed assignment ... does anyone know how to do? class CIntArray { int array[]; ... public : void Set( int index, int value ) { array[index]= value ;
Hello,  How can I set fixed spreads in MT5 backtesting ? It's always floating? Thank you.
Quick question. I am trading with MT5, and i am looking for a way to close all open positions at once. Is this function in MT5? I have looked everywhere in the platform and cant find it. If it isnt, why not? It really seems like this otion should be there as default
Hello everyone, I'm new to forex, can you advise me which free advisors are available that are suitable for small deposits
Good afternoon, I would like to know the information if I have unclosed orders on Friday, can I turn off the computer and reopen on Monday without losing the orders that are still open. Thanks
Hi, Is there any tool/EA for MQL5 which controls Equity and Drawdown for all EAs in use? For example if I want to close all open trades and stop algo trading (for all EAs) once Drawdown is above certain level (in amount or %). Thanks
Hi, I'm testing an EA on Strategy Tester with the debugging mode on MT5. I put a break point somewhere and wait for it to trigger. Then, I store the value of PositionsTotal() on a variable to debug it. While on my trading tab, I can see two open positions, the PositionsTotal() is returning only one
Hello everyone, hope everyone is doing amazing. I open all my trades by hand and was wondering if someone has an EA for mt5 that will close all open positions right when two moving averages cross. The two moving averages which need to cross in order to close all the open positions have to be the 1
Hi im trying to get the total number of contracts traded per ticket so i can use it in my EA. I have gotten the ticket number and the current volume, but cannot get the initial volume
Hi, I am toying with MQL5 and wanted to print some info to the journal. This should happen in OnInit() Print(" Symbol selected: " + Symbol()); Now my expectation is that this msg is printed in the journal when I attach the EA. However, nothing happens other than: 2020.09.20 13:26:23.209 Experts
When I want to test my trailing strategy. I found that turning point of the curve was at around May when I use " Every tick based on real ticks". And when I switch to "Every Tick" mode, the curve keeps the uptrend. In MT4, it just doesn't trade when it's out of tick data. But in MT5, it switches to
I'm getting complete opposite result when testing on every tick or 1min OHLC. the EA and input parameters are exactly the same but in the case of 1min ohlc I get 50000 profit while in every tick I get -7000 losses. this happens on many pairs testing on a period of 2 years 0811-0813 someone have had
Why is this happening? do I need to re-install Metatrader/MetaEditor completely from scratch? Am I supposed to add an #include file? What's going on here? I searched the internet and I can't seem to find a similar issue anywhere. I'm using it in the OnCalculate area. I've tried typing it in other
For example, I want to connect any two points of the A/D indicator (my purpose is to detect divergence), but if there is a dip/top that exceeds the "trendline" between these two points, this drawing should not be accepted. Same goes for both prices. What I am trying to do is to create a trendline
Can anyone teach me how to change the source code below so that Moving Average crossover alert happens once the cross has happened instead of on a current candle? I know that this must be a simple problem for most of you probably but not for me since I am struggling with coding. Thank you in
Please how can I fix the following errors in the below code? 1.'if' expressions are not allowed on a global scope. 2.'}'expressions are not allowed on a global scope. 3.'if'open parentheses expected. 4.'first'-undeclared identifier 5.'}'-not all control paths return a value
I used the default MetaTrader Parabolic SAR and ADX in an EA but wasn’t working. Then I backtests each indicator and observed that neither of the indicators are reading data. The data window is blank even the ADX didn’t load at all only the ADXW did. What could be wrong
im trying to add this value of the indicator: speed as buffer , please help! i did SetIndexBuffer , but then what i have to do ? //+------------------------------------------------------------------+ //| Speedometr.mq5 | //|
This indicator will simply be a list of 5-6 different indicator values, each followed by a Green up arrow or a Red down arrow. This indicator should show in the window below the chart
  beginner  (2)
Hello I start in programming mode under mql5 I look at the following code https://www.mql5.com/en/code/491 and I look for the line number where the program draws the blue or pink point in the function int OnCalculate(const int... thanks
Hi, I use daily timeframe to display indicators like MACD etc. For this purpose the iMACD-function uses the daily bars of the underlying equity. How do I calculate a new MACD that uses daily bars (24h) where the bar starts at an arbitrary hour, e.g. 10:00 and lasts until 09:59 the next day? Thanks
Good Day all, So I've plotted an RSI indicator to the main chart and on the same window (of the RSI), I've plotted several MA's. Anyone know if there's a way of getting the MA values relative to the subwindow? I was able to get the MA handles from the subwindow but when retrieving the values, I get
#property strict #property indicator_chart_window #property indicator_buffers 10 #property indicator_plots 4 #property indicator_label1 "Start FVG Bull" #property indicator_label2 "End FVG Bull" #property indicator_label3 "Low FVG Bull" #property indicator_type3 DRAW_ARROW #property indicator_color3
Hey! Thanks for taking some time out of your day to read my question. So in my script I am calculating a few EMA's. With these EMA values I have to do some further calculations, but how would I do calculations with these values that are stored inside this array (buffer)? input int UMAPeriod = 9 ;
Hi I am trying to change the following code so it does outputs (like in picture) symbols that satisfy the adx cross and/or ma cross If a symbol just satisfies one condtion it will put 1 after them like in the picture If the symbol satisfies both it will put 2 after the symbol . x number for x number
Hi guys, I used iRSI function in following format int iRSI( string symbol, // symbol name ENUM_TIMEFRAMES period, // period int ma_period, // averaging period ENUM_APPLIED_PRICE applied_price // type of price or...
  Chaikin Money Flow for MT5?  (11   1 2)
I'm looking for the chaikin money flow for MT5, but I didn't find anything here. If exist, can you share the link to download it
Radix sort (The fastest numeric sort) : Sorts the values of a one-dimensional numeric array in the ascending order. It is 3-10 times faster than any other sorting algorithm. Author: amrali
Rapid Doji EA: The Rapid Doji EA is a fully functional MetaTrader 5 Expert Advisor that uses pending orders (one BUY and one STOP) around each Doji candlestick on the Daily (PERIOD_D1) time frame.This is a great introduction to how to build a simple, profitable EA.You can watch, step-by-step, how
Flat_Trend: A market state indicator. Author: Scriptor
New article Neural networks made easy (Part 29): Advantage Actor-Critic algorithm has been published: In the previous articles of this series, we have seen two reinforced learning algorithms. Each of them has its own advantages and disadvantages. As often happens in such cases, next comes the idea
PriceChannel Signal: This indicator is the conversion of famous Igorad's indicator namely PriceChannel_Signal_v1 with re-enter feature. Author: Sergey Golubev
Binary DOT Signal 60 second expired : Binary Option Signal Author: Denis Adha
New article Use MQL5.community channels and group chats has been published: The MQL5.com website brings together traders from all over the world. Users publish articles, share free codes, sell products in the Market, perform Freelance orders and copy trading signals. You can communicate with them on
Binance Spot Library : Short description. Author: Hadil Mutaqin SE
Detecting the start of a new bar or candle : Detecting the start of a new bar or candle, in the OnTick() event handler of an expert advisor. Author: Fernando Carreiro
Detecting the start of a new bar or candle : Detecting the start of a new bar or candle, in the OnTick() event handler of an expert advisor. Author: Fernando Carreiro
The Roofing Filter : The Roofing Filter Indicator was created by John Ehlers ("Cycle Analytics for Traders" pg. 80 - 82). Author: Andrei Novichkov
New article Tips for an Effective Product Presentation on the Market has been published: Selling programs to traders effectively does not only require writing an efficient and useful product and then publishing it on the Market. It is vital to provide a comprehensive, detailed description and good...
X-bars Fractals: The X-bars Fractals indicator allows to set the number of bars on the left and the right from fractal. It is good as for local, so for global extremums. Author: Serhii Ivanenko
Sample check pending order : Check exists pending order prevent duplicate create pending order Author: Mr Anucha Maneeyotin
New article Processing of trade events in Expert Advisor using the OnTrade() function is published: MQL5 gave a mass of innovations, including work with events of various types (timer events, trade events, custom events, etc.). Ability to handle events allows you to create completely new type of...
  Coding help  (7866   1 2 3 4 5 ... 786 787)
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
When placing my trendline EA, no trendlines appear on my chart. When back testing they appear, why is that? If you know the problem to this please assist. //+------------------------------------------------------------------+ //| Expert deinitialization function |
Hi all, I would like to get the source code for mt4 for the vwap indicator, but not all the ones that are on the internet, I would like the one like in trading view, applied to hlc3. The code in trading view is: // This source code is subject to the terms of the Mozilla Public License 2.0 at
Hello, I am trying to make my script runs on a certain point (past not future) but all the functions I see is current or checking cyclically for a future point. Any idea how to do so? For example if today is 25th Nov 2022 and I want my script to run in a certain time in date 20th Nov 2021
If you have questions about MQL4, MT4, MetaTrader 4, please post in this thread. Especially when your questions are related to trading functions
  Trading Bots  (4)
Hey Guys, can anyone help with explaining how to load a trading bot onto the MT4 Platform
It doesn't happen often, but MT5 on the same machine seems to work fine. I don't know what caused it
I have placed a couple of pending orders. Buy stop and sell stop. They are created fine but after a short time they disappear from my trade list. They appear in history but only as potential trades with no profit or loss. I am not sure what is going on. Any advice will be kindly appreciated. Paul
I am looking for a tool for mt4 that allows me to build orders so that they move according to the rate. I want to be able to double the order with a click, as well as add the desired lot quantity. Is there something like this for mt4
Hello everyone! I need help, I have made an Expert Advisor, and in my opinion it should not have problems but when I go through Backtesting, it gives me some errors that I am not aware of and that I cannot find in Metacuotes to solve it either. Could someone help me
Hi, Can someone tell me if is it possible to run 2 or 3 different MT4 accounts on the same MT4 platform (For example all on ICMarkets) but i want to use different EA for each account. Please tell me how. Thank you
I have a need to use an indicator value in my EA. I know about iCustom but that requires that the parameters for the indicator be available in the EA and passed to the indicator. What I need is a way to let the user change the indicator properties independently and read the indicator value in the...
Can someone add push notifications to this indicator please!! <Ex4 file deleted>
int start() { if (AccountEquity()>AccountBalance()) CloseOrders(); so this will close all orders as soon as any there is any profit its just an example in mt4 but what i want is time resume ,,like after this closes all orders i want to resume in lets say 5 minutes how do we do that
  Buffer Query  (2)
Hello everyone! I have a question, can someone tell me? My question is about buffers and arrays and it is: Can Buffers be used in Expert Advisors or just Arrays. Thank you very much Manuel