Hi from a newbie ! I understand what a library is, and a great example from that article : https://www.mql5.com/en/articles/10 But i want to know this for future use, which library i can include and which functions that library have . I searched a while but i cant find a list for this. All i can
Hi everyone, While backtesting my EA in visualisation mode, I want it to draw many diagrams with shapes, lines, text, numbers etc. that are periodically updated during the testing period. I figured the best way to do this was to open a new chart for each diagram, and use a canvas on each chart to
Hi, i'm searching a solution to transfert TradingView signal i receive on my e-mail, with Python, to MT5. I followed a tutorial with binance plateform but, blank screen. I don't know how i can do it with MT5, and i'm not expert on python module, i learn everyday. Do you have a solution or a web
Hi newbie trader here. I use atu-trading on my mobile. Recently my profits have reduced drastically, could this due to using an old phone? or is it my data connection? any help is appreciated. thanks in advance
Hi there, the title says it all..In my EA (MT5) when the robot is closing position I want to check the profit of current position properly. I know there is a function "PositionGetDouble" but am not sure about how to use it properly. On my ECN account I pay commisions for each position opening cca....
How I can get numbers from this thing? For example,if I type 3 on this box,I want to get that number in coding. Is it even possible
Hi I just figured out the way to properly test if orders were closed the right way, but i'm wondering if the code is correct (because it accounts for situations when there are requotes and I can't simulate that) and what could be done to improve the code ? thanks so much #define numRetriesOrder 5
With two trials to get the profit of the last closed position (Hedging account), I am not arriving anywhere. The first trial is personal, and it goes like this: //+------------------------------------------------------------------+//| Ask: MQL4...
The CopyTicks function does not copy the duplication of ticks. For example: the difference between two ticks are flags and date. In the first case, the flags are 14, and in the second case, the flags are 8. The time differs by 1000 milliseconds. Each tick is very important for my script because the
Hi There is a function to run my EA every second ( or millisecond) instade every tick
Good day, I am using an EA and its been using a 0.01 lot size, I need help in changing it to an automatic lot size
hi im using the Function " MqlTradeRequest" if i want to send a pending order for stop limit between 100-100.2 how can i do is ? i tried the " ORDER_TYPE_BUY_LIMIT " But its diffenete from what i want its make the price active if the price go above the stop_limit price its ok to put stop order with
Hi, I reported this issue already one year ago to MetaQuotes but never got a helpful response. Sometimes - don´t ask me when - a simple execution of functions like iClose(), iTime() or CopyRates(), CopyTime() whatever takes more than 30 seconds until the code-pointer returns. And of course, when you...
Hi all, I am trying to send WebRequest in MQL5 to API via POST method. The request received at API end however, headers and data dont. following is my code: // JSON text to send string strJsonText = "{\r\n\"key\": \"value\"\r\n}" ; // Text must be converted to a uchar array. Note that
Hi It has happened a few times already in the last couple of weeks: My EA the VPS is not doing anything... I have a dozen EA on VPS that normally opens +100 positions on a daily basis, but for some reason sometimes it stops "working". Meaning that everything appears OK, but its just not doing
Hello, i don't understand why it's says "stop" when i believed that it has to say "sell" instead. Look in the column "Action" and "Type"
I have a live subscription for a VPS Server, but the VPS tab has gone back to displaying the screen promoting renting a VPS server, with over a month of the subscription remaining. As a result I have lost control of the VPS and I can't disengage the EAs that are running on the VPS, or update them
I am in demo mode but the bot trades until out of money or margin it does that in about 3 seconds, it will do about 50 trades and if i close them out it fills them back up again. please tell me how to stop this madness
Hello, I need create an EA to buy or sell, with lots option from an easy code attached. I want to know the way to start this code. Thanks
I trade in indan exchange . i use mt5 for algorithum trading however , i am having difficulties with backtesting . because , Trade function of mql 5 are not compatible with indian currency because as the backtesting setup for DEMO deposits and margins for backtesting are based on forex currency
Hi, I'm currently testing an EA on multiple currencies. For the most part, it works ok, but has big troubles with requotes. I've intentionally set deviation to 10000 points just to see if this will help, which isn't the case unfortunately. Here's the code I'm using (PositionerTrade = 1) is
Hi all, I'm looking for a solution, maybe someone knows about something... The ideal will be an EA that I can run everytime I open mt4. The EA then automatically checks a provided list of instruments if all the data (M1 to H4 for example) is up to date. The EA then downloads all new data from
I am willing to write a choppiness index function inside my expert to use it in the following way : if (chopIndex <= 40 ) { //Do the following } Using Pinescript on TradingView, I was able to simply do the following: length = input ( 14 , minval= 1 ) //Choppiness index formula ci = 100 * log10
Friends, I am experiencing a bit of a frustrating problem... probably simple but any advice appreciated. When running my custom indicator, the default window period (when the chart pops up) is always 1 hour. I change it within my OnInit function as follows: int OnInit () { // Set the chart
Hi,
is it possible to capture the dragging process of a horizontal line somehow?
I can get the CHARTEVENT_OBJECT_DRAG event but this event only fires when dragging is finished. I want to capture the dragging itself, like mouse-move that is updating x and y position of the mouse...
Hi, I have to search signals on an open group of symbols and when I try to retrieve MovingAverage value by iMA and subsequent call to CopyBuffer I have to wait a lot of time and sometimes happen an abnormal termination. Isthere an efficient way to retrieve moving average value of generic symbol? I
Hi all, I am an MT5 student and my PositionClose() has refused to work. I have tried various options and alternatives but failed and I decided to seek help. Please point to me what I could be doing wrong. Thank you. //+------------------------------------------------------------------+ //|
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
Hello, i have the problem, that a just opened position by CTrade::Buy is not selectable PositionSelectByTicket (ticket) The position is opened, ret result is 10009. The ticket is valid but PositionSelectByTicket fails. Why ? Thank you
Does anybody have any solution for activating a given chart using its ID in MT5 using mql5? Suppose that we have 10 open charts in mt5 and we want to activate a given chart using its ID using an EA, what specific code can achieve that? I searched in the forum but found no solution for mt5

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.