can anyone please tell me why this code is not running ,it is modification of one of my previous expert advisors, which are running perfectly fine but this one is not. i really need to solve this please help me,deadline is tight #include <Trade/Trade.mqh> // Include the trade library for trading
Hello, I´m stuck with my code. I always get the "invalid pinter access" failure and I can´t fix it. Would be great if someone can see where I´m going wrong. class CAOI : public CObject { public : ENUM_AOI_TYPE type; datetime time; double highAoi; double lowAoi; }; CArrayObj aoiMn; CArrayObj
Hello All, As an example, I'd like to display an indicator created by an EA on the parent chart. I can do this using the below code, I worked this out with a little help from Google and on line help, so you'll probably recognise the code (ish). Here is my open code: /* open_indicator() * *
Hi All, I would like to ask is it possible to create the code for martingale strategy with BE/trailing stop. is it possible to calculate the BE with min profit + trailing stop. and those calculation will update all the same symbol and position at the same time. is it possible and is it can test in
I have a code. I want order Buy Limit. But when used For loop find entry buy limit. Have more order at same price. for(int i = 0; i < ArraySize(Dinh); i++) { if(CountLevel(Dinh[i])=0){ trade.BuyLimit( 0.01 ,Dinh[i], NULL ,DinhtoFVG[i],Dinh[i]+ 500 * _Point ); }} How to have only 1 order at a
Good morning Apparently there are two ways to code indicators for EAs. The first, put all the indicator code in the EA code. The second, put the indicator code in an indicator and call it via icustom() or CreateIndicator() I am clearly in favor of creating the indicators in an indicator and making
Hi, The documentation of SocketSend is really poor about the function behaviour : It says that the return value is the count of byte sent, but it does not say if it always 0 or the len of the buffer. Is there situation where this value could be different, and the socket still open ? And in this
Hi all Please may i have urgent help here. I have an EA running on MT5 since Thursday, it executed and managed trades as expected, but on the last 3 candles of Friday, it didn't switch positions, it held the position, when i run the back test for friday, it shows the correct changing of positions
Hi, I would like to know how to know if the market I trade is closed or no currently using the MetaTrader5 library on Python? Any ideas? (The order_check function doesn't detect that the market is closed so it makes me send the order when market closed) Thanks in advance
Cant seem to figure out why I am not getting a good response from the mt5. 2024-10-11 08:42:42,641 INFO worker.py:1786 -- Started a local Ray instance. Initialized MetaTrader 5 (downloadasset pid=16728) Fetching data for ticker: GBPJPY (downloadasset pid=16728) No data available for GBPJPY. Error
I want to make AI based on below picture if possible help me by providing your opinion
I try to validate in automatic validation a new version of my EA, the report shows: Validation completed with errors test on EURUSD,H1 (hedging) not synchronized with trade server strategy tester report 42 total trades What can I do? For me it seems mql5 automatic validation doesn't work well. Or am
Hi, How Can I create a Move Average with levels ? I need to add two level to MA... like this sample. //+------------------------------------------------------------------+ //| MA.mq5 | //|...
Hey, I have a m2 chip macbook air. I am trying to install Metatrader5 by running this command: ```pip install Metatrader5``` But the command says ERROR: Could not find a version that satisfies the requirement Metatrader5 (from versions: none) ERROR: No matching distribution found for Metatrader5. I
Hi all and thanks in advance for your help! Can anyone help me with some code (or guidance/pointers) to go in the <expert> section of a template that will prevent the EA from being changed when the template is changed? Thanks again
Hi guys with icustum i can open a indicator in new chart , but i ask is possible open also in new chart a expertadvisor? or i must use a template for do taht ? thanks
Is there any way to search a signal based on trade time length ?? What exactly does trading activity mean .. is it this
I am sharing this code with you in hope that you can help me to add the features for it to close all open trades x minutes before the news. Its MT5 If you can advice me on a feature to backtest news it would be a plus. Code Input: input string snev = "------------ News Event Filter -----------" ;
Hi, I'm interested in knowing if the MQL5 programming language supports gRPC. I need to utilize this protocol to implement copy trading functionality between various platforms
Hi When running the Tester on MT5, the optimization results can be exported by right click on "Optimization Results" and then to select "Export to XML..." It does not succeed. While running, I get this message: The XML file does not appear to have any style information associated with it. The
I am looking for a free mql5 modifier for the trailing stop on all open positions per symbol. Could someone send me the url link? It can be simple and easy to use, just itinerant changing both directions trailing stop on the setted input values in the same symbol per trading terminal. It can be a
Hi guys i try to read a file ini , my file ini have this name correlazioni.ini and is located inside of .....\MQL5\Files , inside of correlazioni.ini i have this structure [primario] symbl1=AUDUSD+ .... ... .. [correlato] symbl1=NZDUSD+ .... ... .. [soglia_minima] symbl1= 0.4 .... ... .. i try to
Hello, I would like to know if this is also happening to you guys... Suddenly after running any EA on backtesting, the Strategy Tester Visualization do not allow me to move the chart backwards so i can analyze my trades on any part of the period selected initially. For instance, when I click one a
I am trying to define a custome enum so that I can use it throughout my EA. e.g. if I have an enum like this: enum DIRECTION {BUY, SELL,BUYANDSELL} I want to be able to reuse this enum throughout the EA without having to declare it at every class file. I have tried definining it in one of the
Hi guys i have a function in expert for load a indicator , over chart my code void _OpenChart( string CroSS) { // Apri una nuova chart per il simbolo specificato con il timeframe desiderato long chartID = ChartOpen (CroSS, PERIOD_H1 ); if (chartID > 0 ) // Controlla se il grafico è stato
Hi, i'd like to add some functionality to prevent a bot entering a trade a certain number of minutes after a big news event. In the line before a trade is placed, I have added a call to a sub routine named BigNewsAlert(); In this section, i'd like to check if any of the last 5 candles have got a
Hi Guys Im having my first crack at an EA but am getting some strange results. If someone could have a look and point me in the right direction Id appreciate it. I am calling the function "GetThreeMAValues" with the following line "GetThreeMAValues(_Symbol, PERIOD_CURRENT);". The three arrays are
I run an EA in the Strategy Tester in Optimization Mode. From OnTesterPass() I open a CSV file, that should have a different name depending on whether it's the Optimisation phase or Forward phase. I use MQLInfoInterger() to find this out. But even though OnTesterPass could only be triggered when
Hi, Does broker can see/view any message under Expert from trader side (see attach) ? Thanks
Hello everyone, I will start this thread by first stating that if you are a beginner and have no high level programming experience you are better off reading other threads. I intend this thread to be for the very experienced programmers with some Artificial Intelligence background. I am attaching...

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.