Expert Advisors and Automated Trading - page 61

Hi, There is an indicator I want to use in my EA and i have changed some of the inputs i've put the inputs i want to use in the iCustom function but when I run the EA and click on the indicator used, some of the inputs are staying at the normal values and not the ones that I want to use. For
  Data for backtesting  (30   1 2 3)
Hi everyone, I use MT5. I've been trialling the use of tickstory and Tick Data Suite (TDS) for sourcing symbol data for better backtesting. My trading strategies are based on the close of M15 timeframe and above so I'm not looking at HFT, more swing trading. Based on this fact I'm planning on using
  MA in my EA Code  (1)
Dear Coders, Would you tell me the if statement if i want to only take buy positions when price is above certain MA and Vice versa ? thank you
Hi everyone, today out of the blue i thought i would try cloud optimisations and i've been getting some strange errors.. anyone had this happen before
Dear all, I appologize if I ask something banal, but I have an issue with Strategy Tester (ST) in Meta Trader 5 (MT5), constantly stealin the focus from other open windows. Here is my situation: I developed a number of Windows batch files which I use for backtesting of the experts I am developing
I'm having the following error. Can anyone suggest a fix. I got currency data working by increasing the max bars, but not sure how to fix this error. TerminalInfo(community_account=False, community_connection=False, connected=True, dlls_allowed=False, trade_allowed=False, tradeapi_disabled=False
[Deleted]
I have a trend unfriendly (reversal) strategy which works well but fails well also. I have it coded by 90% but its in form of an indicator and not ready to run on strategy tester . If i want to know what caused failure, any optimization method or AI program may provide solution in a better way but I
Hello, I'm trying to think in a way (If possible) of having an Expert which operates in multiple Symbols at a time, but I'd like to get your opinion on the best approach. I have seen this post https://www.mql5.com/en/forum/212858, which shed some light into the problem, but I would like to use the
I am currently running my expert advisor on a demo to check the functionality and I got a message stating that it’s changing my lot size. I have never ran into this before. Does anyone know what this is from? I can’t find any information on it. “ 2023.07.21 16:09:28 - Check Lot: Lot has been
I'm 50 years old ... Programming tools, polishing my math a little, statistics, machine learning and optimization algorithms, etc etc ... My estimation is ... I need to spend the nights of my weekdays of my life for 4 years at least to get a robust and working knowledge in machine learning
  SymbolInfoDouble returning le-05  (34   1 2 3 4)
Hi, My apologies if this has been addressed before: Print(SymbolInfoDouble("EURUSD",SYMBOL_POINT)); is returning le-05 Print(SymbolInfoDouble("GBPJPY",SYMBOL_POINT)); is returning 0.001 which is correct I cant understand why EURUSD and GBPUSD etc all return le-05? MT5 version 5 build 1940. Any help...
I have an EA that open successive position, but instead of opening new position, it keep modifying the initial trade For example : . I open a but for 0.01 .i open an other buy instead of opening a new buy, it increase the lot size of the fisrt buy to 0.02 How to fix that
Hello everyone, I have recently encountered a question while designing an Expert Advisor (EA) using MetaTrader 5 (MT5), and I would like to discuss and seek help from all of you. My question is, can we create an EA in MT5 without having access to the source code or program of a specific indicator
I'm successfully selling CPU to the Cloud Strategy Tester. I have only the module installed together with METATRADER-5; I mean, I didn't installed the standalone Strategy Tester module. My question: do I need to keep METATRADER-5 opened to allow others to test (and rent) my CPU or can I close the
I have been learning MQL5 , and I have written some simple EAs. However, I have have the problem of evaluating my EAs. How to know if my EA is better than the average? When an EA is ready for demo forward-testing
Hello to everyone! Can anybody make it clear for me, why this amazingly sophisticated code does not work? So, the deal is I am dropping that Script onto my Graph, and as a result I get a Messege: Invalid request - 10013. To tell the truth this messege is not able to clarify anything for me. If you
Hi All, I am having this error when calling OrderSend function . I hope someone can help me. This is error log : 2021.11 . 11 04 : 10 : 45.254 TEST (EURUSD,M5) Alert : Open market order: Error 10013 - Invalid request 2021.11 . 11 04 : 10 : 45.254 TEST (EURUSD,M5) MqlTradeRequest - action: 1
Hi, I've programmed MQL5 for a while but don't know much about MQL4 and I need to convert some MQL4 code with trade function to work with MQL5. As far as I can see, MQL4 deals with both positions/orders with the same functions, whilst MQL5 has separate functions for positions/orders. For example, am
  Email API  (5)
Hello is there a way mql5 can be used to send emails, I am trying to write an EA that sends me emails, incase certain criteria is met, is that possible
Hello, i modified an indicator and created ea for this indicator. if i attach the indicator to chart, i can see values perfectly at data window also if i attach ea on chart, it prints values perfectly. But if i try to backtest ea, i get 0 values for indicator buffers... What am i doing wrong there
I am not able to fix these errors: //+------------------------------------------------------------------+ //| YourExpertAdvisor | //| Copyright 2023, YourName | //| https://www.yourwebsite.com
Hello, I have tested this code on a live session and it 'works' well (it opens trades): #property copyright "Aymeric" #property link " https://www.mysite.com " #property version "1.00" #property strict #include <Trade\Trade.mqh> CTrade trade; input int RSI_Period = 14 ; input double
Hi to all! Perhaps someone has faced such a problem: need to determine the average time of holding positions. In MQL4 it's not difficult, but in MQL5 I don't understand how to do it... I'm just starting to learn MQL5 , so don't be strict with me :)
Hi, In my EA I want to have an input which can be chosen from MARGIN_LOTS_ALL , MARGIN_LOTS_CALL or MARGIN_LOTS_STOPOUT I have tried : input enum ENUM_MARGIN_LOTS_MODE MARGIN_LOTS_MODE = MARGIN_LOTS_ALL; But I get: 'ENUM_MARGIN_LOTS_MODE' - enumeration cannot have modifiers RSI_EA.mq5 16 12
History Tab of Strategy Tester Shown Below. Placing buy stop limit orders with different take profit levels as shown below. Showing individual orders 14 and 15 getting filled. Trade Tab of Strategy Tester Shown Below. After the fill they appear to be combined and using the Ticket 14 only but using
I am doing a big optimisation for one of my EAs. Turns out my local machine and local network agents won't cut it, so I opted into the MQL5 cloud network . Anytime I enable MQL5 cloud agents I get the above error. It's still deducting money from my MQL5 account though. What's up with that error? I
[Deleted]
  mt5.order_send() returns None  (21   1 2 3)
Thank you in advance for helping me! I'm coding automatic trading system in python. I'd like to get positions and close them automatically. However, mt5.order_send() returns None(not any errors but 'None'!) if request['position'] is input from pd.Series data. When I directly input position id code
Hi! I enabled now the CLOUD STRATEGY TESTER and putting my EA to run there some tests I have the following error on all passes: 2023.07.18 21:53:22.209 MQL5 Cloud USA 2 pass 292 tested with error "critical runtime error 0 in OnInit function (error code 0, module Experts\2023\EA v3.962.ex5, file
Hi all you smart people! I am working on an EA in MT5 for some basic trade management. My trigger for moving the stop to break even is the current PNL of the position. For example, if my PNL on the trade is $500, move SL to BE. Now, I would like to implement a true break even that takes fees into
I cannot understand this report of my CLOUD AGENTS utilization: As reported in this message , I tried to run my EA and I cannot get success at all. All tries were stopped as soon as I saw the errors in the journal. I didn't let the AGENTS perform more than some few seconds and the ELAPSED field