Expert Advisors and Automated Trading - page 56

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
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 -----------" ;
  gRPC  (4)
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
  News Alerts EA  (2)
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
Hi i have a code and i use this library https://www.mql5.com/en/code/16006 with this include #include <MT4Orders.mqh> // if there is #include <Trade/Trade.mqh>, add this line AFTER that #include <MQL4_to_MQL5.mqh> // ONLY for this example in apart of my code string formatOrderArrowInfo( int ticket)
Is it possible to use multiple indicators in the strategy tester? I am testing an expert advisor where manual orders can be opened, I want to add another indicator that I have bought in the market during the test If it is possible, how do I do it
Hello everyone, Moving from mql4 to mql5, I'm trying to code a simple EA to know about mql5 (coding an EA with MA5 and MA20 cross). But i'm very confuse to place an order buy (or send) by OrderSend and OrderSendAsync. Anyone can share to me a example about place order on mql5, please ? Thank you so
I have been studying Renko charts and their implementations in EA for a long time. Is there anyone here who does the same thing, what are the results? I would like to discuss Renko EA
Hello! I need a program that opens a position when the candle closes below or above the line placed on the chart. For example: if you close below or above the neckline of a double top or double bottom, you open a position. Simply put, a pending order to close the candle. Main points: - Work on
I'm trying to run some code if in a tester optimization. My code below doesn't seem to work and MQLInfoInteger(MQL_OPTIMIZATION) seems to be false. The function is called from OnTesterPass. Should that make a difference? Cheers E void WriteTestResultsToFile( string & parameters_list[], int pass
Hello Traders and Programmers ,I am trying to get started with python from the Metaeditor but i keep getting an error message due to numpy version compatibility. Here is the exact error message: "A module compiled with NumPy 1.x cannot run on NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
Hello friends. I have now completed an expert I am working on. Expert has a lot of variable input data. I have to do serious optimization and it takes an incredible amount of time to optimize all the input data. For this, I bought a VPS that is a little better than my own computer, but the
Hi every one. if any one can help me , i would be really happy and thankful . i want to set slippage in mt5 and also i used both order send and ctrade but for both of them there is no option to set the slippage, also i found the function Mytrade.SetDeviationInPoints() but it still does not control
hi vereyone How do I make profit appear above the candle? can anyone help me to get this code plz
HELLO, I have recently bought the ai gen xii ea, I'm trying to use the mt4 vps I have purchased the monthly plan for 15 dollars, under the cpu tab it says 0% being used but under disk and the network thing it gives regular readings, and the ea itself doesn't use dll I think but uses the api thing, I