MQL5.community forex forum for traders and developers

  3-line strike EA  (2)
I have a scanner that looks for the 3-line strike candle pattern, up to 30 instruments on 8 timeframes. When it gives an alert, I would like an EA to open a trade automatically with a set SL and TP. Can someone code that for me? I was hoping that when you get the alert on MT4 with the pop up
Hello How can I enable the immediate closing of a trade with I click on the X ? Currently when I click here: https://prnt.sc/KpGuG-kTiPs8 this window appears: https://prnt.sc/VDRShKpYUnqe But this started to happen from today after I updated MT5. Until yesterday the positions were closed
Hello, I was using the MQL5 cloud network to do some testing and tuning of my Expert Advisor. Everything was working fine and I had no issues when I had only one VPS. Then when I was ready to turn on the software I created a new account and subscribed to a second VPS. The reason why I needed to
  iCustom function  (12   1 2)
Good afternoon colleagues, I have tried to use the iCustom function to read the V 75 Super indicator 1 indicator but I have not been able to get the values ​​I want, maybe I am entering the parameters wrong, but I have tried it in several ways and it always returns a value out of 10 when I print
I can't install mt4 on my computer
  Equity Protector  (2)
Hello, Anyone have recommendations on an equity protector? Maximum 30$ dollars. Something have limits drawdown based on equity % in the account and removes EAs once that equity amount is hit
Trading robots, also known as Expert Advisors (EAs) in the MQL5 language, have become increasingly popular in the financial markets. With the advancement of artificial intelligence and machine learning techniques, trading robots can now incorporate sophisticated algorithms that can learn from data
Running the attached (and other) EA(s) in the debugger fails to load the Calendar - or am I missing something? This call: if ( CalendarValueHistory (evCurr1,tC-(FXOneWeek+FXOneWeek),tC+FXOneWeek, NULL ,Curr1)) { // causes err 4014 = ERR_FUNCTION_NOT_ALLOWED: Function is not allowed for call or URL
If a signal I'm subscribed to has open position on my account and I withdraw funds, will my position automatically close and readjust to account for the new balance, or will the positions remain open, but just new positions will be smaller? I'm trying to withdraw funds without closing open
My crosshair tool only shows "Points" but not pips. My positions are calculated with pips so I need to set my Stop Loss distance based on a number of pips. Like 40 pips for example. However when dragging with the crosshair tool it only shows me Bars, Points and %. Is there a setting I can change or
How do I fix this problem
Hi there, I've been seeing this problem for quite some time now on windows and I don't see much improvement, so I revive it anyway. So this panel ( windows button icons ) looks like a bit shifted down and left side also with a few pixels on MT5. It is possible to solve how to make it disappear
Hello guys, I have two questions about this code: 1) why do I receive two notifications? 2) instead of the order comment I get nothing. Why? //+------------------------------------------------------------------+ //| TradeTransaction function |
HELLO. I`ve been trading quiet long time now, but still haven`t solved one of problems I have with charts of MT5 setup: I don`t know how to vertically compress - move position of chart lower or higher when there`s not enough of space to see where your indicators show possible targets that are above...
Hello, I am attempting to use the MQL5 Strategy tester cloud to do some testing and I also have my computer registered on the cloud for others to use. However I am not connected to the cloud for some reason. I used to use the cloud network a lot but for some reason it is now disconnected. Using the
After studying pivot points i started trading however in my trading research, it is the worst thing i came across because Its based on previous day hlc/3 information, but after deep study in technical analysis I found that market does not majorly move based on pivots but yes it follow up for sure
Based on your experineces, what huge impact factors can contribute to profit ? (please choose priority only one and give the reason) A. Risk Management B. Trading Strategy C. Technical Analysis D. Fundamental Analysis E. Discipline F. Constant Learning G. Other factor (please writed) I hope your
I was affraid to open this thread. Why? because it is difficult to manage many threads on one forum. Anyway - I will try :) So, we are talking about SIGNAL SYSTEMS
  Something Interesting to Read  (120   1 2 3 4 5 ... 11 12)
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...
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...
How many currency pairs can be traded at the same time, with the same EA
  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...
  Join the Dots.  (666   1 2 3 4 5 ... 66 67)
Hi Folks Please understand that this system makes money as a manual trading system and I have no wish to pay a coder to code one of my systems and then still make money from it. If that offends anyone, so be it, but at least it has been said right up front. This originated after following the...
Now let me make this clear. What I'm about to share is not the Holly grail. In my 2 years of trading, using indicator combinations, and learning different strategies. I've finally come to the réalisations that the fundamental force driving the markets is liquidity. It can further be broken down but
Hi, I need to use the same ATR calculation from trading view in Metatrader 5. This is the code I have so far, it work, but is not getting similar results with Trading View. I know the data is slightly different, but my results in the strategy are very different and I have checked everything, the...
Hi All, I need help in fixing errors and warnings on an AI EA. The AI EA is based on Bollinger bands BB_NONE, // no BB strategy BB_SQUEEZE, // BB squeeze strategy BB_BREAKOUT, // BB breakout strategy BB_TREND, // BB trend strategy BB_REVERSAL, // BB reversal strategy
I use #MTF Brain Trading 4H in my 1H chart... it's easy to entry.. but for optimum exit i need advise from senior member please take a look at my system thx
Good morning, I will have a Robot to code but before describing my need to Freelance programmers I wanted to know if MT4 or MT5 were able to do this: Roll out a strategy (such as an entry on the crossing of the short and long moving averages) With a TP determined from the last 40 trades made
  Chaos Theory by Bill Williams  (82   1 2 3 4 5 ... 8 9)
http://www.alpari.co.uk/en/market-analysis-guide/chaos-theory/index.html I had a quick read through and it sounds very impressive. what do other people think? is it good? has an AE been done before based on this theory?
Heiken-Ashi candlesticks are great because they smooth the price action. As a result, much of the noise shown in traditional Japanese Candlesticks is eliminated with Heikin Ashi charting, and it helps make the trade entry and exit decision simpler
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
I have been trading price action for over 14 years and in this YouTube course I am sharing my most important tips and provide a step-by-step approach to mastering any price chart. ►Timestamps: 0:00 Start 2:28 Chapter 1: Candlesticks 15:37 Chapter 2: Chart Patterns 32:51 Chapter 3: Trend Analysis
New article Creating a trading robot for Moscow Exchange. Where to start? has been published: Many traders on Moscow Exchange would like to automate their trading algorithms, but they do not know where to start. The MQL5 language offers a huge range of trading functions, and it additionally...
At the 19th of October Ak Investment,one of Turkey's largest brokers, officially launched the MetaTrader 4 platform for Forex and CFD trading. The companynow offers its traders access to the rich functionality of thepopular platform — everything traders need from trading and analytical functions, to...
  Forecast and levels for S&P 500  (472   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...
  Forecast and levels for Dax Index  (71   1 2 3 4 5 ... 7 8)
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...
Which Stock Brokers offer MetaTrader 5 platform? Anybody know
New article How to Secure Your Expert Advisor While Trading on the Moscow Exchange has been published: The article delves into the trading methods ensuring the security of trading operations at the stock and low-liquidity markets through the example of Moscow Exchange's Derivatives Market. It...
Live Trading With 50+ years of combined trading experience, TRADERS trade real money for real profits and sometimes losses. Our multi-million dollar TV studio broadcasts the first and only professional Trading Show on YouTube Live. Join us on YouTube Live every weekday from 8:30am to 4:00pm EST to
  Forecast and levels for Nikkei  (41   1 2 3 4 5)
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...
Dear ALL I find that if I use MT5 for trading the futures, I can't separate multi-strategies independent in the futures symbol. For example: I have 5 strategies with five different magicnumber but all trading in s&p 500. In MT5, it will combine the order to one. And it will rewrite the magicnumber
  MT5 real FUTURES broker  (27   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
In this episode, we spoke about stock predictions, Tesla, lessons form 2022, stock sectors, artificial intelligence, and more. We also went over how the wealthy using life insurance to avoid paying taxes. #taxes #lifeinsurance #stocks
Hi,I have a problem after installation of EA . I cannot trigger a trade using EA. There's a display on the Chart that shows " Turn on algorithmic trading in Expert properties". There's none in my old set-ups. Kindly see attached photo with file name 'trade problem'. There's also a different labels
How do I make an EA from an elephant bar setup? and how can i handle the candle size issue? for example consider a 100p or 50p elephant bar vary depending on the chart I am using
Hi everyone, In my journey in developming a profitable system, I have found some Darwinex video quite helpful for learning about the dangers of over-optimisation and the value of walk forward optimisation. The advice given was that the best approach for making a simple system is to keep the strategy
  Send Error 131  (2)
I am getting a "Send Error 131" on my live MT4 account when running a backtest on my EA. The EA didn't pick up any trades yesterday and should have picked up many. Does anyone know what is going on and how to fix it
hi guys i just want to know whats the ticket of last closed order i wrote this just want to know if this way is correct or not and one more thing why tickets are different in terminal than actual reports or in mql5! tnX for help in advance void OnStart() { HistorySelect(0,TimeCurrent()); ulong
I have no knowledge of coding yet while compiling an ea i managed to reduce the 15 errors to just 2, both are the same '' 'if' - open parenthesis expected '' and when i click on this error it leads me to this point in the code which i cannot rectify void tick22() {if {tick22==true} { and
Hi everyone! When I compile the code below there are 2 errors: '}' - unexpected end of program Hota001.mq5 89 6 '{' - unbalanced parentheses Hota001.mq5 17 3 But when I add an } in the end, the errors jump to 17. Any help? // Define the input parameters input int ema_period = 9 ; // Period for
Dear Moderator, While updating EA get the follow error in specially ZOMRO VPS. MQL4 Market: failed download product 'CAP Strategy Builder EA' [403] Kindly help how to solve it. Regards, Vipul
Hi everyone, I'm trying to better understand how an EA handles asynchronous vs synchronous function calls. I edited this post to simplify my question since I didn't get any replies. Assume I have these lines of code in an EA: void OnInit () { ObjectCreate ( 0 ,obj_name,obj_type, 0 , 0
  EA Code Query  (4)
I tried the code below to close half the open position once my unrealized profits exceed $200. This did not happen to my trades. Can anyone enlighted why so how what went wrong? I get the error message Error Opening order 129. How can i resolve this? THanks
Hello, has anyone ever experienced the following: I was working on running optimizations the other night when suddenly both the optimizer and running single backtests stopped working in MT5. By "stopped working," I mean that the optimizer and single backtest runs takes zero trades on all time frames
hello members, i am trying to count closed trades in a day but it is not working and all the values i am printing in the for loop does not get printed . Any help would be much appreciated thank you. #include <Trade/Trade.mqh> #include <Trade\PositionInfo.mqh> #include <Trade\SymbolInfo.mqh> CTrade
  Want Simple EA  (4)
i want to make an EA based of simple EMA
When subscribing to a signal, how does MT4/5 prevent that the user does a simple copy trading to other own or friends/customers accounts
Hi everyone I'm keeping getting this error and I don't know why. Tried to search in the forum but didn't found a clear answer, hope someone can help. Thank you! test on EURUSD,H1 (netting) there are no trading operations test on XAUUSD,D1 (netting) there are no trading operations test on GBPUSD,M30
A few years ago, I found a very strange phenomenon in the process of writing MT5 indicators ->> Let me first talk about my code entry process: 1. The refresh of controls written by MT5 will flicker. When I started writing the trading assistant panel, I found that when I used the CANVAS sketchpad to
hi did you manage to find an indicator that changes the timeframes to next higher (or lower) timeframe and then back again? I'm having the same issue with an indicator - only refreshes on timeframe change and not with refresh. Appreciate any response. Cheers // script or indicator that would
Hello Im a beginner at MQL5, so im trying to add the first deviation bands to a VWAP indicator code I found, but is not plotting on the chart, i am missing something? //+------------------------------------------------------------------+ //| VWAP
hello all the gurus out there, I am new to mq5. My mql5 file compile with NO error, but won't plot, can someone please tell me what is wrong and help me fix it. thanks. #property copyright "" #property link "" #property version "1.00" #property indicator_chart_window #property indicator_buffers 4
Hi.. i have issues to get the name of object with Pivot Point Indicator The indicator only have Object Label, using PlotIndexSet String : string labels[7] = {"R3","R2","R1","Pivot","S1","S2","S3"}; for ( int i= 0 ; i<steps; i++) { PlotIndexSetInteger (i, PLOT_DRAW_TYPE , DRAW_LINE );
I'm trying to use SetSymbol indicator on MT5. After attaching indicator everything seems to work but then suddenly indicator disappears from the chart. Indicator window still shows indicator and also there is no error showing. SetSymbol.cpp #define PROPERTY_COPYRIGHT "Copyright © by iDiamond @
Hello, to be a little more specific about my request, I would like someone to tell me and mark on the graph where the price must go to reach my overall position tp but the sell and buy each separate their tp thank you
Hello guys, I'm trying to code some ideas in mql5 rather than mql4 in order to better test my multicurrency indicators and experts but I've big issues accessing indicator values (ex. MA) of symbols. I read all documentation deeply and looked also on the forum I'm getting very confused. This is my
I have many indicators which I use in my EA at the moment. Could be very stupid question but what you guys are suggesting? Is there any big difference if I call all indictors in EA or I call all indicators in one indicator and then using this one master indicator for EA
Hi there fam! I've been searching for this all over the place, but couldn't find anything related to it. Maybe someone is willing to share a solution, if there is any. A simplified version of what im trying to do: Create an iMA, then IMAonArray using the first iMA, and an additional iMAonArray using
Hi, I just wanted to know if any experienced developer has made post / topic about best practices and patterns about creating I ndicators. Since information about EA/MQL5/Indicator is spread out across forum posts/articles/MQL5 documentation, I thought someone may already have created post about
Hello, I'm trying to convert this pine script to MQL5. but I can't find the error can someone help me? // Pinscript C_BodyHi = math.max(close, open) C_BodyLo = math.min(close, open) C_Body = C_BodyHi - C_BodyLo pine_ema(src, length) => alpha = 2 / (length + 1 ) sum = 0.0 sum := na(sum[ 1
Hey everyone, I'm coding some Pivot Points for MetaTrader5 but I'm having trouble drawing the lines. The plan is to draw 7 horizontal lines (PP, R1, S1 etc.) however only the PP line is actually being placed on the chart. I've attached the file below. Any and all help is appreciated
I converted this indicator from mt4 to mt5 it compiles with no error but on chart it only shows a buffer and that's all. Doesn't print anything. Below is the actual mt4 source code and MT5. I can't use the code insert button else it would exceed maximum characters
I want to publish in Market an Expert Adviser that I designed for research and education. Its objective is to understand in practice the different strategies of the Awesome Oscillator indicator. I don't want it to work on real accounts because I consider this a bad idea and I don't want some
ATR with Smoothing : ATR with 4 smoothing options : RMA, EMA, WMA, SMA Author: Vitor Palmeira Abbehusen
Painel simples e objetivo : Esse é um codigo bem simples a respeito de um painel de informações. Não utiliza arquivos externos ou algo do tipo! simplesmente, copie e cole no seu codigo da forma que o codigo foi escrito. O painel exibe; Ativo Preço do ativos Sua posição(Comprada ou vendida) Preço max
  Experts: MT5-RingSystemEA  (14   1 2)
MT5-RingSystemEA: It's a triangular arbitrage system (three pairs correlation system) to use 3 currencies to make 3 pairs to open hedge orders on those. The expert starts opening six orders for each ring (3 plus and 3 minus) and wait to move prices in one direction to make a grid of orders. Author
MaDevOsc: Deviation from MA oscillator indicator Author: Scriptor
Multi Stochastic: A multi-currency Expert Advisor based on the iStochastic (Stochastic Oscillator) indicator signals. Author: Vladimir Karputov
News EA Template without DLL: Template EA that downloads news without the use of DLL. Author: Yurij Izyumov
Adaptive grid : Adaptive grid expert for mt4 Author: Kenneth Parling
Japanese Candlestick Patterns: The indicator displays on charts the patterns created by the Japanese candlesticks. It is possible to change colors and also enable or disable alerts.Bearish: SS 2,3,4 = Shooting Star E_star = Evening Star E_Doji = Evening Doji StarDCC = Dark Cloud PatternS_E =...
high and lows : Find what are the highs and the lows that happened the last 60000 ms Author: Fredrick Mwangi Ngichiri
Fisher_org_v1_Sign_Alert: Semaphore arrow signal indicator based on the Fisher_org_v1 oscillator leaving the overbought and oversold areas, which features alerts, sending emails and push-notifications to mobile devices. Author: Nikolay Kositsin
New article Exploring options for creating multicolored candlesticks has been published: In this article I will address the possibilities of creating customized indicators with candlesticks, pointing out their advantages and disadvantages. The great advantage of this last method is that we will have
Ichimoku: The standard Ichimoku indicator, in which the distance between the Tenkan-sen and Kijun-sen lines is filled with a color histogram for for a better visual analysis. Fig.1. The Ichimoku indicator Author: Nikolay Kositsin
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...
Refresh All Open Charts : This Script will Refresh All Open Charts in MT5, Usually custom symbols in MT5 needs to be Refresh sometime so this script will help to refresh all open chart at once. We can also use this Script anywhere where we need to refresh all open charts. Author: Muhammad Ali Akbar
Position Size Calculator : MT5 Indicator for Position Size Calculation Author: ErangaG
I try to disable chart scrolling and scaling by the ChartSetInteger function with the property CHART_KEYBOARD_CONTROL (in MT4). Disabling scrolling is successful in this way, but unfortunately scaling cannot be disabled in this way. Every time you press "+" or "-" on the numeric keypad, the chart
Hello, I read the last date value from a CSV file with the FileReadDatetime function like this: datetime d; while (! FileIsEnding (file_handle)) { d= FileReadDatetime (file_handle); } return d; The last and only row in the file looks like this: 2023.03 . 23 ;- 0.71345 The
Ok so any time I open mt4 the app defaults to eurusd and 5m timeframe and any time I change the colours it does not save and just reverts back, also order history is not showing in the correct order! What is going on? I've never had issues like this until today, I've used mt4 for years. Is anyone
Hi All, i had an error in my simple engulfing EA which i tried almost a week still cant found the error. This EA is when the IF condition is hit then execute the BUY OrderSend() without set the stop loss price because i want to avoid the candlestick shadow hit on my stoploss price while still
  MT4 mobile  (2)
Where can I download older version? I don't like the new one
Hello! I am trying to understand the function ICustom(). The definition I have from MQL4 is that this function ICustom() calculates the specified custom indicator and returns its value. Among the parameters, there is a type string parameter "name" indicating the path/name of the custom indicator
I have tested simple code below and i got Array Out of Range Error. #property strict void OnTick () { Test(); } void Test() { double a[ 500 ]; Print (a[ 10 ]); ArraySetAsSeries (a, true ); double ma = iMAOnArray(a, 0 , 10 , 0 , MODE_EMA , 1 ); } but when i add one variable in
  News Trader EA  (1266   1 2 3 4 5 ... 126 127)
This is News Trader EA created by Igorad. Besides, we may use this EA to draw the lines with text on the chart when the news coming. Explanation of the settings and how to use this EA you may find in the next posts. ---------------------------------------------- Version 2. - Please find attached the
  MT4 Beginner  (3)
Hi everyone, when I Analyse the market and then I colse the window, the Analysis is gone. how can I Change it? thanks martin
I have written the following code and it's working correctly. The problem I am experiencing is to change the logic of the EA so that it can buy after every 20 pips decrease in price and sell after every 20 pips increase in price. Kindly review my code and let me know where the problem is. I've tried
If you have questions about MQL4, MT4, MetaTrader 4, please post in this thread. Especially when your questions are related to trading functions
Hi, recently made a EA with MQL5 iam now recoding it for mql4. Function returns a simple JWT token. I have updated the "WebRequest for listed url" with the url on both. Any ideas? Thanks. CJAVal Login(CJAVal &dataobj) { CJAVal json; string url= "http://127.0.0.1:5000/loginExtension" ; char
  Send Error 131  (1)
I was getting a send error 138 while I was testing my EA. Got the info as to what it was and how to fix it, and did. Now I'm running my EA Live on a VPS and now I'm getting a Send Error 131. Can someone tell me what it means and how to fix it
Hello everyone, I'm recreating a MACD (I know there's dedicated function, just wanted to calcualte by myself) and when I calculate the signal line it makes my platform freeze for a bit, everytime I change signal line period I get a 10sec lag of the platofm. Someone can help point out why that
Hi all, I'm new with MQL4 and I have this indicator which I should embed inside an EA. I know I could use the iCustom function but for several reasons I have to embed the code right inside an EA function. Could you give me some suggestions to avoid modifying whole indicator code? Also some simple