MQL5.community forex forum for traders and developers

Hey guys, I'm trying to create an expert advisor based on an indicator. I've created it using iCustom but I have no idea how to get values from it. Can you guys help me
i am a beginner to coding mql5 language. i was able to get the positionclosepartial to work but it keep running on the same position each time a new position opens. please can anyone help me fix this problem? //+------------------------------------------------------------------+ //|
when i need to open an real account it not allowed me to join with broker metaquotes software corp. please any one tell what i have to do? mention i bridge the account with interactive brokers
  signals  (5)
my own signal does not allow subscription what's the problem please help
I just regis signal. Why my record trade show DD -100%? What wrong i do? pls see attact pic
Does MQL5 offer the opportunity to become a promoted seller/listing at all? I saw an email that went out today that had a few listings and I wondered if they were random items or if they were selected for a reason
I bought a signal and it appears on my mt4 account but I am not receiving the signals what to do
hi guys Doji or Star pattern equals to how many pips can be in maximum? I love you all
Hi , I am new to trading: can anyone help me with my concern mentioned bellow I have a demo account with a broker and they provide with Meta Trader 4 and 5 but I am comfortable with trading view , How can I swish the flat form and keeping same broker and can I do the same thing with ta live account
Forgot I was already logged in to mql5 on my laptop. Had then tried to login with my android phone and received "error 403" on phone. When I opened my laptop, it also shows same error message. How can I reset everything? Had tried turning off and on modem, clear cache but did not work. Can anyone
Hi its been months im having this issue, my MT5 wont update to the new version and it seems stuck at the old version......Everytime a pop up appear for a live update, and when i restart it still wont update....Does somebody know how to fix this issue
Hey! Can you share with us what is the capital you started with in a first time
Hello I need help with how to lock my EA/Script based on my login account number ? example: my login number in my broker is 12345, and I want my EA/Script can run only in that login number. also how to lock the EA/Script that can run in one broker only? (example: my EA/Script can run only in FXDD)
Hello wondering if there is a profitable EA on the MQL market or have they all got a alternative motive. I mean lets face it, if someone had a EA that was profitable, why would they sell it. Very basic discussion but funny enough it may raise some concerns. I have had many EA's from over a period of
MetaTrader Virtual Hosting is designed for round-the-clock operation of trading robots and signal subscriptions even when your computer is turned off. A Virtual Private Server (VPS) can be rented directly from the MetaTrader platform. Our hosting service is a more efficient solution than ordinary
A lot of traders announce that they are able to make $1000 a day. Although I mostly greet them with disbelief, I have decided to raise the issue here to see whether anyone is REALLY making that much per day or its fake? I am waiting your good replies.
I'm experiencing a very strange behaviour on MT5 with trade.PositionModify() calls. I have an EA that automatically sets SL and TP for every new order, no matter whether stoplimit(= order) or market order(= position). The strange thing is, it works fine for 3 times or so, sometimes only once, then
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...
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...
Currencies Relationship: Best Regards, Philip Pankaj
  "No loss" recovery hedging system  (144   1 2 3 4 5 ... 14 15)
Question: Would you be willing to trade any system or strategy you want on your $10000 account and turn every trade you take into a win trade (of $200 or $20) or a breakeven trade and have only a small theoretical chance of losing let's say $600 in worst case scenario? Some traders would probably...
  Daily Breakout EA  (134   1 2 3 4 5 ... 13 14)
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...
Hi, Totally newbie here so sorry for this clueless question -- Is it possible to use mql5 for stock charts? Those youtube videos that I saw use some tool that pretty close to what mql5 is showing but they use it for stock charts. But I've poked around in mql5 and wasn't able to find such capability
  Can you say forex is gambling?  (40   1 2 3 4)
Joshua Brown, vice president of investments in a renowned New York asset-management firm once said that the forex from his perspective is too risk fraught for an individual investor to engage in preferring to label forex trading as gambling with retail investors in ignorance throwing money into...
  How does a broker work?  (12   1 2)
Please suggest me a good book in these areas: ECN/STP, A Book/B Book, Bridge&nbsp, Interbank / Intermarket, Trading managment system and How does a broker work?
Good afternoon, could anyone recommend me where I find en efficient trading system, or a platform that provides graphic proof of the efficiency. Any suggestions? I generally operate intraday or with short to medium time trades. Thank you
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...
Hi Traders, Cut story short: my history showing that majority of trades which went down 20 pip or more are still hitting TP afterwards! Great! So I would like to open second position (when 20 pip in loss) with same SL, same LOT size, same TP or may be @ Entry Point of original trade. Is there a name
Hi everyone I would like to know if avatrade has a fixed spread on the EURUSD pair . I find conflicting information on the internet. So does Avatrade have the right conditions to make my robot go on EURUSD
  Self-trained MA cross!  (77   1 2 3 4 5 ... 7 8)
Hi folks! I have an idea that I didn't work in yet and want to hear your comments! Moving Average crossing system in my opinion one of the best trading system if it optimized well. My idea is creating self-trained MA cross expert advisor that could learn what the best prameters to use: 1- slow...
Bitcoin vs USD January-March 2017 Forecast: key resistance level at 850.15 to be broken for the bullish trend to be continuing Weekly (W1) price is located above Ichimoku cloud in the bullish area of the chart. The price is on ranging within the following support/resistance levels: 850.15...
Forecast and levels for Currency Hello Friends This is Currency Forecast Levels for Next Week and This Month March 2021 it's work as a Support and Resistance Levels. If you have any question or Quarry Please let me Know with your Comment if you want to daily and 4 Hourly , Hourly, 15M Projection
I really appreciate tesla and it is possible that it could see a lot of growth in Q2 2021
I was doing a research for low risk and high reward crypto investing ideas and someone suggested Arbtrage<Deleted>.com looks good, anyone got any other suggestions
  The CHOP  (2)
Hi Guys question what indicator is best for recognizing the CHOP, sideways price action, other people call it consolidation or accumalation for all time frames? Thanks
  We use Bitcoin ;)  (479   1 2 3 4 5 ... 47 48)
Seems we need a Bitcoin thread to discuss about due the growing popularity of this virtual money. Forex-TSD is studying the idea of take Bitcoins as payment method and having our thread to discuss about pros and cons sounds as good approach. You will find more information on the official Bitcoin...
hello, how can we subscribe to this live data
Problem: User (me) is unable to place futures orders from MT5 Windows/Android platforms, both Android mobile and Windows Desktop attempted. Can the user place orders using a different platform? Yes, User can place orders using Multicharts and any CQG platform. these orders filled as expected. Can
  Apple  (41   1 2 3 4 5)
AAPL Technical AnalysisL daily bullsh with 120.35 resistance to be testing for the bullish trend to be resumed Daily share price is located far above 200 SMA in the bullish area of the chart: the price is on testing resistance level at 120.35 to above for the bullsh trend to be continuing. If the...
Dear Community, I just wanted to ask where I could find a history for US30. I need like at least 10 years old date. Please advise and thank you. Cheers, Mazen
Hi, Do you guys know any broker which have at least the last 2 years of US500 history data with Real Volume
Hello guys Is it possible to connect Nest trader to MT4 for real time data... for technical analysis in mt4? Please help
I've searched Google and this forum but found no straightforward answer to this question. It seems like some U.S. stocks can be traded with CFD only. It seems like there's a IB plugin to use but it doesn't look like historical data is provided to backtest. Has someone ever tried it with success? I
Hi all stock traders using MT4/MT5 im new to trading stocks on MT4/MT5,, Im looking for few EAs that can check How stocks are working to study & then code one for myself Could anyone give me some or direct me to the right place to take it/ learn how to code it please
Hello, Where can I find an example of EA to trade stocks or ETFs? An EA based on a moving average would be fine. Thanks in advance, Pierre
Hi, I have an EA that I wrote around 5 years ago, that I was using on a real account. I stopped trading when the SNB removed the cap on the Euro and my broker, Alpari, went bust. That spooked me for a while but I have recently been wanting to give it another go. I have forward tested my EA on a demo
CopyBuffer function not work when prev_calculated =0 and Handle in other TimeFrame which different Current TimeFrame First I creat Indicator with two Handle in two timeframe: one in Curent TF exp: H1 and one in Orther TF exp: H4 Handle_Current_TF = iMA ( _Symbol , _Period , 14 , 0 , MODE_SMA
Hello, is anyone can convert mql4 to mql5 ?? It seems cannot use OrderSelect with Mode_Histroy.. here is a MQL4 code. Best regards, bool NoTradesToday() { datetime today = iTime ( NULL , PERIOD_D1 , 0 ); for ( int i=OrdersHistoryTotal()- 1 ; i>= 0 ; i--) { if (! OrderSelect
Hello folks, I'm developing a complex trading panel for more than 20 symbols. Do you know if is there any kind of limited of the number of objects per Panel? It looks like it is stucked in 350 CButtons or CLabels
  Access ATR Value  (2)
HI. I want to build an expert advisor that will automatically set my SL to 2xATR of the position I'm in Tried a few things but they didn't work Any kind of help is much appreciated
Hey all, I am coming up with a new system for an EA that implements martingale. Tp is 5 pips multiplier = 1.2 However, I am not sure when to apply the martingale. I do not wish to use the grid method! Thanks
Hi, Is there any possible way to replay trade history (that saved manually or using script into .csv) and playback it in the strategy tester ? The reason I want to do this is because I want to do revision on how well I performed in the past XX weeks. Please direct me the market product if you have
i can not change the account of my VP subscription. it gives me no error messages and does not changes the account also
Hello friends! I wrote a script in which I used the following code Print("111"); x= iTime ( _Symbol , PERIOD_MN1 , 0 ); Print("222"); When the execution of the code reaches this part, the execution of the script stops So that the print is executed before it but the print is not executed after it
Hello Guys, I want to build a EA for my Strategy and found nearly everything I need for it, but i can't put everything together to a running EA. For example I want to use the Fractals Indicator and found finally the code for it, but don't know how to include all other "filters" (moving averages
hi Everyone ! Can you help me to find an EA that closes all orders of specific magic number when the sum of all those trades are +x$ Thanks
I need an EA that can track multiple symbols' prices (around 10) , and open/close positions when certain prices meet certain conditions. I know that if the EA is attached to one symbol, then the OnTick() function will notify the EA when the bid/ask price of the symbol changes. I basically need the
Hello Experts, Been trying to google the answer and look into documentations, but I cant seems to find the answer. I am trying to understand whether CMoneyFixedRisk works on different account currency from symbol? E.g. Trading EURUSD but my Account Currency is SGD. Will the 1% fixed risk be
Hello. If I buy a ea and use all free activation is it possible to get more activations? Is it possible to buy the ea a second time to get the activation again
Hi, Mql5 EA that is rented, and running on MT4 VPS is making errors. See attached. The EA says open 0.02 Lots, VPS opens 0.01 Lot, then opens another x2 0.01 lots??? Can anybody help here. Thank you
Imagine the input timeframe for the indicator is PERIOD_H4 and indicator is placed on the M15 timeframe. Inside the OnCalculate() I'd need to access the Open/High/Close/Low candles of the input timeframe which is H4 but apparently inside OnCalculate() we only have access to the current timeframe so
Hi Guys, i had an Indicator on MT4 several years ago which allowed me to backtest on several timeframes simultaneously. i'm not able to find it anymore. does anybody kow something similar available now? Thnks
Im a beginner and figuring things out. Apricate if someone help me understand how to add a additional buffer to the below code. Both the divergence buffers gives varying indicator value and i would like a new buffer that has 1 or 0 when the divergence arrow appears
Hello! When chart scale is set to fixed it is possible to drag the chart up and down, however when changing neighborly timeframes (especially the 1, 3 or 5 minutes) the margin to drag is way too little as it is probably calculated as the possible minimum to show the price action on the current...
hi, everybody. I need to put my personalized indicator into my EA to pass the test in mql5. This is problem: foto1 okay photo2 error i thank whoever wants to help me
Hi Guys any idea what this original indicator is called? i cant seem to find one with the exact same settings. many thanks
  Tick counter.  (28   1 2 3)
So , if i understand all this forex terminology correct , a tick is one change of a price. Right i am ? Are there any known tick counters,indicators. ? I think that a thing like that could be interesting, becouse when the price starts to chage , it is changing more and more rapudly. Breakouts for...
Hi everyone, I was wondering if anyone could share a "Currency Strength Indicator" (which measures the strength of a currency's price in relation to other changes) for Metatrader 5. Thanks and have a good day. 
Hello Everyone, I am looking for a particular indicator for MT5 that will allow me to hide all wicks from the candles and just show the bodies (purely open/close body). Could anyone point me in the right direction? Thank you in advance
I would like to have something like this in the screenshot. It's obviously a mock-up I made in an image editor. I don't need candles. Just the moving averages would be fine. The code repository is so large no one can possibly ever see everything in a lifetime. Does anybody here know if such an
Firstly hello to everyone, my first post after much reading of what seems a great community! I'm trying to put a price marker 'gauge' with two halves after the end of the chart (I use candles). I want it to illustrate the necessary price movement to cover my spread (on the left half) and on the
  Dynamic zone indicators ...  (1581   1 2 3 4 5 ... 158 159)
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...
I am attempting to create an mql5 heiken ashi indicator smoothed and corrected using the attached mq4 version. It seems it is calculating the values correctly as it prints out reasonable numbers, but the values are not painting on the chart. Is there anything obvious I'm missing wrong with the
I'm attempting to convert this WAE (Waddah Attar Explosion) to MT5. I ran it through the fxdreema converter and it looks run and paint new candles, but it isn't painting previous candles and it runs extremely slow. Am I missing something obvious? I'm new to mql5
I am using Haiken Ashi indicator with metatrader4, when I try to use Haiken Ashi indicator on metatrader5 it does not follow the candlesticks buts standing still in the background on scaled fix chart window. Is there problem with my installation or should it working like that on metatrader5? Is the
New article How to Post a Product in the Market is published: Publish your interesting applications in the Market, and they will be immediately available to all traders who use MetaTrader 5 worldwide. The Market is a great opportunity to earn, with an immediate transfer to the account and convenient...
Volume with MA and color of candle: Volume indicator as modified by RonT, but histogram bar color will be red on a down candle, green on an up candle Author: Robert Rice
New article Developing a self-adapting algorithm (Part II): Improving efficiency has been published: In this article, I will continue the development of the topic by improving the flexibility of the previously created algorithm. The algorithm became more stable with an increase in the number of
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
Reversing Grid on Limit orders: Grid system with limit orders. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: https://www.mql5.com/en/articles/4951 Author: Andrey Barinov
New article How to Subscribe to Trading Signals is published: "Signals" in MetaTrader 5 trading platform allow traders to connect to any signal issued by providers. Select and subscribe to any trading signals provider to copy all his or her deals on your account. How to become an investor and...
New article Improving Panels: Adding transparency, changing background color and inheriting from CAppDialog/CWndClient has been published: In this article, we continue studying the use of CAppDialog. Now we will learn how to set color for the background, borders and header of the dialog box. Also,...
The colored volumes (English Version) : Colored volumes at the bottom of the chart Author: ROMAN KIVERIN
Indicator Arrows II: The indicator plots up/down buffer arrows in the chart window when conditions are met on one or two of the following indicators: Moving Average;Moving Average Convergence/Divergence (MACD);Oscillator of Moving Averages (OsMA);Stochastic Oscillator;Relative Strength Index...
New article Using Self-Organizing Feature Maps (Kohonen Maps) in MetaTrader 5 is published: One of the most interesting aspects of Self-Organizing Feature Maps (Kohonen maps) is that they learn to classify data without supervision. In its basic form it produces a similarity map of input data...
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...
  Indicators: MA_BBands_YXF  (33   1 2 3 4)
MA_BBands_YXF: The indicator is a combination of MA channels and Bollinger Bands. Author: johnsun888
DR Caco Maia : Double breakage of MA8 and MA20 means with stochastic and trix filters, as described by Caco Maia. Author: PequenoMinor
New article Grid and martingale: what are they and how to use them? has been published: In this article, I will try to explain in detail what grid and martingale are, as well as what they have in common. Besides, I will try to analyze how viable these strategies really are. The article features
MR FIBONACCI ROBOT : Fibonacci PRO ⭐️⭐️⭐️⭐️⭐️ You want to become a constantly profitable 5-star forex trader? ⭐️⭐️⭐️⭐️⭐️ FIBONACCI PRO is a professional expert for trading according to the Fibonacci Retracement method. 1. MANUAL_CONFIRMATION - manual confirmation of transactions; 2. FIBO_CLOSE_PRICE
wondering whether someone may be able to point out what I'm doing wrong here. Just for background I am very new to MQL4 (or coding at all) I wrote the following code to act as a virtual trailing stop loss. I am trying to lock in HH (Highest High) and LL (Lowest Low) based on the below loop. However
I can see my orders being made in the Account History but they do not show up in the Trade tab. I'm totally new at this, trying to figure out what's wrong. Googled around and doesn't seem like a normal issue, thinking I'm not clicking something right. Any thoughts? Thanks
  SL and TP system  (19   1 2)
Hi I'm wondering how I can make a TP and SL system based on EMA crosses I attached my code it compiles but does not work. Any help is much appreciated. if (GetTotalOpenTrades() < MaxTrades) { if (FastEMA > SlowEMA){ LongSetup = True; }
Hello,   I managed to change the default templates so every new chart I open I have the right colors, but when I'm testing my EA and custom indicators I still get the old default template.   How can I change that?   thanks, Giulio 
Hi everybody, I'm trying to write an indicator that should place a grid starting from a line at given price. It works, kind of. Actually the grid is generated correctly but I want it to be redrawn when the Level_0 line (an horizontal selectable line) is moved. I've used some of my knowledge and some
  change in coding.  (12   1 2)
Hello Everybody; I have a robot program below. I want to make changes but couldn't succeed. Working system of the robot; trading in daily candles. When the daily candle is closed, the next day when the candle is opened, it opens both buy and sell. Puts 10 pips of profit. I do not want it that way
I wonder if anyone can tell me how to code an alert (audio and message) so that it keeps repeating until I dismiss it or stop it. I have no idea and have been all over the internet with no results. Please help if you can. Thanks Fred
I have tried both MT4 "Ichimoku Kinko Hyo " indicator and custom "Ichimoku" indicator in an EA, keep getting 0 (zero) as a return for the Chikou Span value.... All the other 4 values return correct chart data MT4 Ichimoku Kinko Hyo double IChLast = iIchimoku(NULL,0,9,26,52,MODE_CHIKOUSPAN,BarShift);
Hello everybody. I heard there is a way to cancel all open trades in mt4. This is because Ive run out of funds with many trades still open. I dont want to deposit any more as these are large trades and will eat my money. Is there aaaaaaan indicator or something to multi close all trades in MT4
Hello, I am writing a custom indicator (MQL4). Initially, I had: #property indicator_buffers 10 I want to re-size it to 8 (don't need the last two). My code does not refer to the last two buffers in any way (i.e. no bubber declaration, no SetIndexBuffer, etc.) When changing to: #property
I made a MT4 EA, it has been working on back tests and as well as on live accounts. But whenever I try to submit my EA to the market, it always shows error "No trading operations". I'm not sure what the reason could be if it works normally on live accounts. I hope someone could help me, I could send
Hello, I want to use following indicator on EA to open buy/sell orders.. https://www.mql5.com/en/code/7116 I tried it using Icustom function stated on this indicator comments but it doesn't work. Could you please help?? Thank you in advance
I have been trying to add a custom BB_PRC-1 indicator in my Ea, it gets displayed but the values of the lines are empty. Indicator works fine, and displays correct values in data window. But when i try to get values with iCustom i get 0 or EMPTY values for both lines... can you help me? My code is
Hello! having downloaded and compiled accurate history data, MT4 turns them into a gigantic file when importing it via the history centre. So large in fact that it easily eats up the free 80 GB on my system HDD. So I tried reinstalling a copy of MT4 on an external HDD with 2 TB of free space. That
Hello, I actually encounter a problem with the iHigh and iLow functions. I would like to get the higher and lower prices of a predefined period. Here you can see the code I made : The problem is that returned prices have sometimes too much digits (underlined in red on the picture below), but I don't