Expert Advisors and Automated Trading

Let's look at the results of the tests on one and a few characters. The tests will be conducted in All ticks mode. You can use your own multisymbol EA schemes to reproduce the problem and share your results. Let us denote the problem. For example, if you test one symbol, the test time takes 1
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 };
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
  OnTimer bug  (4)
There seems to be a bug with the OnTimer event. I'm trying to restart the timer inisde the OnTimer event and the first cycle after the restart is not executed. Let me show you an example: void OnInit () { EventSetTimer ( 2 ); } bool timer_set = false ; void OnTimer () { if (!timer_set) {
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
Here is a step by step guide for buying, installing, testing and using a Metatrader 5 Expert Advisor (Robot, Bot are whatever): 1. First make sure that you have the necessary funds required for your purchase in your MQL5 account, its always easier to pay with your MQL5 balance, than using a credit
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
Hi, during optimization I need to calculate the Sortino indicator, but for Equity. For Balance it is simple: based on the history of deals. Please suggest strategies on how to collect equity data during optimization, so that the data can be processed in OnTester(). Thx in advance, Koval
What is MQL5 Wizard : The MetaTrader 5 Trading Platform includes the MQL5 Wizard , which allows to quickly generate code of an Expert Advisor (Expert Advisor builder). With MQL5 Wizard, knowledge of programming languages is no longer a prerequisite for creating trading robots . In the past, it
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, i've tried my hand at my first program but it wont execute any trades. I like to trade Spotcrude with pepperstone with a razor account. I dont know why my program wont exeute any trades, as it comes up with no errors. Below is the code, Advice would be much appreciated! <Improperly formatted
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
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
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