MQL5 Algo Trading community — forex forum for traders and developers

Hello Everybody, Im trading with EA, but want to show it as Trade Placed by Manual. Like When we placed Cursor on Open or Closed trade It have to Show Trade Placed by Manual. Is it Possible...? Because somewhere I see this, but Tried but, I cant succeed. If anyone knows, Please help...
I was looking for a lot size calculator which could calculate the maximum lot size allowed for my account based on my account leverage. Previously, I could only seem to find lot size calculators which would calculate what lots are left to use based on already having an active trading position with a
Hi, How do I enable/disable other users to add me to groups and channels on mql5
Hi , I am trying to send notifications to my android , I logged in to my account in the device but there is no MQID. why id is null and how can I fix it , I logged into mql5.com account and my Meta-trader demo account , and they are working ok, i have decent internet connection I received emails in
  Help with a VPS  (10)
I bought a VPS in the meta trader platform, am confused how it works, I was expecting to log in like all other VPS providers I have used in the past but I was surprised to stay on my PC and just have to perform some sort of migration which I have done, but am confused, does it mean when I perform
What is the best way to extend rectangles on mql5? Thank you
Hello! I'm still a beginner so I don't really understand why this script doesn't work in all time periods? It only does what it needs to in 1H and 4H. (It is a simple program for marking peaks.) Thanks in advance. int OnInit () { //--- set global variables min_hgt = int (InpMinHeight < 1 ? 1
Can i get any Free Tutorial for Forex Trading ? I am new in Forex trading
Does the metaquotes demo account enable a way to add DJI or US30 to demo account? Its not available by default
I bought a Vhost and it does not work. It does not run the ex5 file, and this has been reported by several people I know, with the same problem. At the moment I cannot use the service. In any case the error is on the server side. Check and fix please. VHOST data : MQL5 New York NY4 31: 6559371
hi guys i need your help. i have to admit that for me the mql5 is something really hard to understand. for this reason i found some code on this forum and i tried to adapt it to my needs with the help of chatgpt.. but it was really frustrated. so, for this reason i'm writing now for ask your help
In the process of making an automated trading bot, code successfully runs but doesn't place and trades after stating new candle founds, I need help with improving the strategy and code. Thank you in advance
  Off-topic posts  (1298   1 2 3 4 5 ... 129 130)
Comments that do not relate to the " Ask for help ", have been moved into this topic
Hi team, The current Currentime() function is getting the time but in seconds not in milliseconds, can anyone help me if I want to get the current time in milliseconds using EA. Thanks
looking for a bot thattrade for me im new to this please
  Economic Events  (6)
Hello everybody ,a very long period of time i triyng to understand how the (economical events) news affect the market , and i never seen some logical effect in this. For example today for GBP is no news at all but he is rising against USD,on USD we have a lot of positive news,why EUR going rise if
Hello, I am finding little difficult in understanding Trailing Stop loss . How does it work, does it take value from Stop Limit, Trade Entry Price or Current Price or Highest Peak in Favorable direction. After reading some blogs about Trailing Stop, This what i understand :- Condition 1: If the
Hello, I'm thinking about new EA. The EA is free, but if customer wants to use it, customer needs license key which is subscription payment. They need buy subscription plan external website and get license key then they can use the EA. Is it OK to that kind of business model in MQL community? Or it
What im looking for are other ways/alternatives of no loss Systems, pls dont get defensiv when hearing the word no loss strategys. The point is im looking for safer alternatives with the same Prinziple, we all know grid or martingale is primitive, just one sided price averaging with exponetiall
Discover 3 swing trading strategies that work so you can profit in bull & bear markets
Has anyone tried setting up algorithms/EA to trade economic data releases depending on whether the release was above or below expectations? Is the MQL5 economic calendar real-time or is there a delay for trading purposes? Which economic calendar do you think is best
  Efficient Trading System  (16   1 2)
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
Do you believe that the strategies have expire time? Is market algorithm train itself to have more losers? Which strategy used to work well but not now? I will be appreciated if you answer theses questions
Hi, I've met this 2 statement that's contradict with each other many many times when reading about trading strategy. Here's the statements: 1. Not all strategy works on all timeframe. And what I take from this statement is that each timeframe act differently to each other. 2. In
  Breakout Strategy  (16   1 2)
The way I trade breakouts is to first look for an area of resistance or support that has at least two touch points and when there is a break of this area I wait for a retest to enter. I am wondering if it would be a possible strategy to trade simple breaks of structure and changes of character the
Good day dear forum members. After reading the forum a bit, I came across several threads on arbitrage and pair trading . Judging by the threads, some are interested and some are trying it. I used to dabble in this topic a long time ago, but my knowledge was not enough. Now I am a complete mess in
Hello, I am new to coding and I cant seems to properly identify the trend direction using below codes. Your inputs is greatly appreciated. Thank you This is the logic: Trend Direction = 1 (if MA50>MA100 and MA50 last 3 candles is "Rising" and MA100 last 3 candles is "Rising" Trend Direction = -1 (if
For instance, if you have $10,000.00 in your account, how much are you comfortable losing in a day? Is a 3% risk, which amounts to $300.00 per day, too risky
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
  modifying HFT EA  (1)
hi, i was wondering if there was any way I would be able to modify a HFT EA to only trade once a minuet so it wouldn't be considered HFT anymore so I would be able to use the EA on prop firms which allow EA"s but not HFT? and what time scale and rules determine if i EA is considered as HFT or not
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
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
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
  Welcome to the new section!  (15   1 2)
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...
  HFT Stock Manipulation In Action  (124   1 2 3 4 5 ... 12 13)
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...
  Forecast and levels for Nikkei  (44   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...
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
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
  Forecast and levels for Dax Index  (75   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...
  Forecast and levels for S&P 500  (474   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 CAC 40  (30   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...
I have recently started using MT5 and am a US resident but I am having difficulty finding a broker that supports MT5. Is there a way around this? I have heard some people using Tradingview and pine connector but looking for the best way to setup MT5 with a US broker. If anyone can help it would be
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
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...
Is there a way to get the MQl5.com user name if the user logged in via MT5
I got several computers here, let me list them down: PC-R = AMD Ryzen 9 5950X 16C32T PC-5 = Intel Core i5-10400 6C12T PC-9 = Intel Core i9-10900F 10C20T The situation is, PC-R can add PC-5 and PC-9 to its Local Network Farm PC-5 can only add PC-9 to its Local Network Farm PC-9 can only add PC-5 to
Good day everyone. Firstly, I appreciate everyone who have contributed on this forum. Thanks a lot I need help with a particular arithmetic. I want to add some values together In mql5 , the value might be currently unknown, But would be known during the execution of the code For example, If want to
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
  Strategy Tester  (15   1 2)
Is there a way to test all time frames in one run, that out puts all results per time frame?
Hi, I wan to ask about buy and sell or entry price. I've heard about the word 'buy at the ask and sell at the bid' but there's no one talking about spread. Using the code below I want to know which one is correct between adding spread or not. void OnStart () { int distance = 100 ; double entry
Good day everyone. I want to use freelance to make an EA But I want to ask if the idea will work before I post it. [broker] has different volatility index with different minimum lot size. Is it possible to make an EA and have all the volatility index with the options to choose lot size for each
  Neural network  (4)
Where can I learn neural network in mql5? Or which book can I use to learn neural network in mql5 or mql4
I used to be able to read news on forexprostools.com, but now getting error 5004, "cant load file"..... has something changed there? Here is my code: string ReadCBOE() { string cookie= NULL ,headers; char post[],result[]; string TXT= "" ; int res; string investingUrl=
Hello, I am scripting an EA to send post request using sockets in mql5. void OnTick () { Print ( "history-->" , HistoryOrdersTotal ()); int socket = SocketCreate (); // Check the handle if (socket != INVALID_HANDLE ) { // Connect if all is well if ( SocketConnect (socket
Is it possible to get a huge slippage during strategy testing? I've been testing an EA on M5 XAUUSD chart and found that the test account was stopped out due to a huge slippage. The stop loss level was about 160 pips, but the filled price was about 1080 pips, which was about 7 times the SL distance
Hi Everyone, I'm developing my EA. The thing is that I want to make only one trade each time. How can I check If the current trade is open in order to avoid the enterTrade functionality while it is opened? And also I've noticed that I had some problems related to "failed market sell 0.1 XAUEUR sl
Hello guys! I created that topic because I am having some issues trying to set an expiration date in my orders. I am using the MT5 Python API, and that´s the structure: request = { 'action': mt5.TRADE_ACTION_PENDING , 'symbol': [stock symbol], 'price': [price] , 'sl'
Hi - is it possible to add more than 1 MQL5 signals to the same MT4 account? If yes, please provide some tips, pls. And can you trade say 90% of the account funds with one signal and say 40% with the other signal? Thanks
I am trying to code my own triple exponential moving average. Here is what I have: tema1ema1 = MathMean(typical); //typical is an array for the last 20 bars where 0 is the most recent for ( int i= 1 ;i< 20 ;i++) { tema1ema1 = typical[ 19 -i] * . 0952 + tema1ema1 * . 948 ;
I am trying to code an expert advisor but I don't really know how good different indicators are. I'll end up throwing a couple in there and seeing how well it does, but if anyone has any suggestions on where to start I'd appreciate it
Hi, I am looking for a regular macd indicator in which I can set an alert in MT5 when the signal line crosses the 0 line. Regardless of the direction of the 0 line crossing. Signal generated after candle closed. It used to be on the forum, but I've been looking for a few days and haven't found it. I
Sir, I created this Volume Indicator but I am getting error " Array out of Range ". I have some wronged this Source code. Please check this 👇 #property indicator_separate_window #property indicator_minimum 0 #property indicator_buffers 3 #property indicator_color1 clrBlack #property
Hey guys! Title says all. The thing is a want to load an indicator to the chart using ChartIndicatorAdd . Some of them are oscillators - but I don't know which ones I'm loading are oscillators and thus should be loaded on a subwindow. How can I do this? I looked into the documentation, but couldn't
#property strict enum EMyCapitalCalculation { FREEMARGIN = 2 , BALANCE = 4 , EQUITY = 8 , }; enum EMyRiskCalculation { ATR_POINTS = 3 , FIXED_POINTS = 9 , }; class CMyToolkit { protected : virtual void _Name() = NULL ; // A pure virtual function to make this class abstract public
Hello, Can you help identify what the type of the indicator is this? Seems (and in the indicator's description it says so) like just three Moving Averages, the first MA with applied to high prices, the second MA with applied to median prices and the third MA with applied to the low price. But not
Hi everyone I have written a code to create 2 graphical objects of type OBJ_TEXT as per the picture bellow The first object is an arrow (using Wingdings Font Type) placed at the last low and right bellow it is a text. My question is the following . What is an efficient way to determine the spacing
//---- the indicator will be plotted in the main window #property indicator_separate_window //---- three buffers will be used for the calculations and plot of the indicator #property indicator_buffers 4 //---- only one graphic plot is used #property indicator_plots 1 //---- the indicator should be
Hi there! Attached you can see a source code of a good indicator which I am using by myself. Unfortunately this indicator has no push alert option for mobile terminal and I'm not into coding at all. Is there somebody who can please code a push alert into this indicator? I would appreciate it a lot
Hi there, i found this script to remove all windows borders. But infortunately, it does not work. Can you please help me (or fix it for the community) ? Regards //#property script_show_inputs #import "user32.dll" int SetWindowLongA( int hWnd, int nIndex, int dwNewLong); int GetWindowLongA( int
good day. I recently saw this arrow on a Chart. I searched in Wingdings and I can not seem to find it. how is it placed. and how can i put it into mql4 or mql5
Dear Fellows I am getting following error and have no idea, how to resolve it. Search on forum/google did not help much. 2023.12 . 13 19 : 31 : 45.367 iStochRSI (US30,H1) Not all data of RSI calculated ( 38018 un-calculated bars ) Regards
Hi, I created a simple custom indicator to display a ratio between 2 instruments. It's display a line, calcul is ok. But now i want to add an EMA7 on this custom indicator and when i try it display nothing. Could you help me? Thanks in advance :) My code
Hi, I'm testing some features, and am stuck trying to use data from another indicator using iCustom() The goal is that I want to pass applied price or an indicator handle to iCustom, but in that Indicator it always returns value = 0. My TestMA indicator works without any problem Specifically here, I
Blue Renko Bars: An indicator for constructing Renko bars in the chart sub-window. Author: Artur Smorodin
Drag & drop scripts to modify all orders of a currency: You pick the script and drag it on a charts point. Then it uses this point to modify all stop/take profit levels of the charts currency. Author: Joao Rosas
Check out the new article: Learn how to deal with date and time in MQL5 . A new article about a new important topic which is dealing with date and time. As traders or programmers of trading tools, it is very crucial to understand how to deal with these two aspects date and time very well and
Session Open H-Line: Draws a Horizontal Line at Session Open: On the hour (09:00, 15:00 etc) or any minute past the hour (9:30, 18:47 etc). Author: file45
Check out the new article: Neural networks made easy (Part 60): Online Decision Transformer (ODT) . The last two articles were devoted to the Decision Transformer method, which models action sequences in the context of an autoregressive model of desired rewards. In this article, we will look at
Check out the new article: Developing a Replay System (Part 28): Expert Advisor project — C_Mouse class (II) . When people started creating the first systems capable of computing, everything required the participation of engineers, who had to know the project very well. We are talking about the dawn
Check out the new article: Testing different Moving Average types to see how insightful they are . We all know the importance of the Moving Average indicator for a lot of traders. There are other Moving average types that can be useful in trading, we will identify these types in this article and
Titik Impas Breakeven MT4 : The Breakeven Point, or Titik Impas, denotes the price level at which a trade's profit becomes zero. By setting a position to Titik Impas Breakeven, the stop-loss is aligned with the position's opening price. This strategy proves valuable when you aim to allow profits to
SweetSpots: Splits the chart by horizontal levels after a specified period. Author: John Smith
New article The checks a trading robot must pass before publication in the Market has been published: Before any product is published in the Market, it must undergo compulsory preliminary checks in order to ensure a uniform quality standard. This article considers the most frequent errors made by...
New article Tips from a professional programmer (Part III): Logging. Connecting to the Seq log collection and analysis system has been published: Implementation of the Logger class for unifying and structuring messages which are printed to the Experts log. Connection to the Seq log collection and
Class For Working With Databases In A Simplified Manner : Short description. Author: Pfunzo Nefal
Developing a multi-currency Expert Advisor — source codes from a series of articles : The source codes written during the development of the library for creating multi-currency Expert Advisors that combine many instances of various trading strategies. Author: Yuriy Bykov
All Pivot Points MT5 : An indicator for drawing all important Pivot Points including: "Classic", "Camarilla", "Woodie", "Floor", "Fibonacci", "Fibonacci_Retracement". Author: Hossein Nouri
MQL Plus Enhanced Debugging Support : An (optional) include file to enhance debugging experience. Author: Dominik Egert
Hello Support and all, I've found problem of no any alert sounds from MT4 after update as build 1408. I've confirmed all setting for sounds are Enable (Option-->Events-->Enable for all). I've confirmed MT4 teminal for 2 brokers with 1408 update have the same problem, while MT4 teminal for other 2
  POI
Hi. Is there any source code how to show POI snd more valid POI with FVG or IMBALANCE? Im not finding any source code for this. Regards
As in topic what is the difference between them? Documentation in mql5 seems to be avoiding proper definition and examples for extern type
  MT4 to R interface ...  (23   1 2 3)
This is a MT4 to R library interface coded by 7bit Detailed description by 7bit (and some examples) can be found here : MQL4 -> R-Project - Interface Library Some more details on R itself (it is a free - open source, software project) here : The R Project for Statistical Computing
I was looking in the documentation and I only find run-time casting (<dynamic_cast>) but I was wondering if static_cast is available in MQL4? If not, is there a workaround to implement static polymorphism in MQL4
As the title says, are built-in indicators pre-computed in the strategy tester? I was wondering if the only overhead for theses indicator functions (i.e iMA) is just extracting the values from the buffer? I couldn't find anything the documentation, but I don't want to assume things
The MetaTrader 4 platform update will be released on Friday, February 23, 2024. This version provides error fixes and platform stability improvements. The update will be available through the Live Update system
Hello, Even when Automated Trading setting is turned off, EA functions are getting called. Is this normal? or it due to some error?. if ((!Close_Buy_Limit) && Buy_Limit && trades_count(BuyLimitMagic) == 0 && istochastic_16 > up_level) { ResetLastError (); gTicket = OrderSend
The tooltips created with OBJPROP_TOOLTIP in MQL4 disappear after 20 seconds. I'm wondering if there is a method, through MQL4 programming, MT4 settings, editing specific configuration files, registry tweaks or even using the Windows API, to extend the length of time these tooltips remain visible on
In this thread I want to begin to help those who really want to understand and learn programming in the new MQL4 and want to easily switch to MQL5 - the languages are very similar. This blog will be a good place to discuss tasks, algorithms of their solution and any other questions concerning MT
[Deleted]
does anyone have pivot point indicators for quarterly and half yearly levels or can any programmer modify yearly pivot to quarterly and half yearly pivot dividing the year into four quarters the first begin at january and february and march and the second quarter include april and may and june and...
Hello guys, can sameone help me? I have this indicator that give me sentiment %, i use iCustomCall to have data % but i dont receive values, looking in the chart there is no buffer values and no data object. How can i manage it
I am using MT4 and I have used mql5 marketplace from it. It was working well three months ago. Today when I am trying login I am getting the following message "MQL5.community authorization failed". The MT4 version I am using is download from "Octafx" broker website. Please help me solve this
Hello, I coded an custom indicator which is already on the chart and working. I also coded a button (contains to that indicator) which should open the indicators properties when I click on that button. The button itself works fine (I tested him with Print()). I only need to know the function, method...
When using the MACD indicator on the chart it shows 2 values - a Histogram and a Signal line. If you use the iMACD() function to calculaute the MACD values you have 2 options - MODE_MAIN and MODE_SIGNAL. I have always assumed thet MODE_MAIN represents the Histogram values. Now to my dismay I