Expert Advisors and Automated Trading - page 54

i have encountered this error : "improper enumerator cannot be used " my code below , can anyone please help. enum Applied_Price { Close_Price = 0 , Price_Open = 1 , Price_High= 2 , Price_Low= 3 , Price_Median= 4 , Price_Typical= 5 , Price_Weight= 6 };
  Deal magic numbers  (29   1 2 3)
Hello, I'm testing some systems on MT5 and I found a strange thing about History Deals. I count profit/loss of history deals but if I filter them with my EA Magic number I can only found DEAL_ENTRY_IN and not DEAL_ENTRY_OUT. It seems that DEAL_OUT do not have my Magic number. I searched on internet
Is it possible to knowingly provide login details for the purpose of sharing, downloading and using EA? I have a situation in which I consciously want to give a friend the EA I have purchased from my pool. Is it possible
Hi, we are using MT4, and want to work with a new broker. They do not support MetaTrader inherrently but they provide a pretty good API gateway on Pyton and have a good client. We want to run our EA's on that broker. Can we use MT4 or MT5 as a client and connect MT client to that broker? May be wit
gives me the following error: '<' - open parenthesis expected this is the context: if ( Bars < 5 ) return ; If I remove this line there are 0 errors. It's a simple EA (MQL5) based on the famous pattern "IDNR4" (Inside day narrow range 4). thanks, kind regards Improperly formatted code edited by
Here is the code for my iRSI and I have altered the period, RSI period etc and there are no errors with the code but it sets the rsiValue in line 2 as 10 constantly regardless of what the actual in-built RSI is. Any help? It was working before but I can't find the backup where it worked so I cannot
Hello Team, I have around 20 different EAs running. All working well, but some of them are very goos without any loss after yreas of working. I have created a "master EA" which trails all my open positions. But now I want to trail those EAs different, which are very productiv. I know them by the
Hi, I am trying to fix some issues with my martingale algo. The lot size isnt doubling after a losing trade The Total Profit/Loss for the day is not updating I have research the forum and Im still looking for the solution for this code, thank you #property copyright "Copyright 2024, MetaQuotes Ltd."
[Deleted]
Hi guys, I was interested if anyone have some EA that is working stable on prop firms like FTMO and similar. All of them I was trying, free and paid were not good at all. I also tried freelance with job offer, here I was not successful as well with anything stable and performing for long term
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
  Objects in MQL5  (2)
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
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