Expert Advisors and Automated Trading - page 62

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
  Tick trading  (25   1 2 3)
I was looking at the ExpertMAMA.mq5 file that is in Experts\Advisors, it includes these libraries: #include <Expert\Expert.mqh> #include <Expert\Signal\SignalMA.mqh> #include <Expert\Trailing\TrailingMA.mqh> #include <Expert\Money\MoneyNone.mqh> I was watching some tutorials and the only library
Hi to all! I have a problem: I created a button and added it and connected it to the dialog object if (!dialog.Create( ChartID (),Name, 0 , 10 , 20 , 250 , 300 )) { Print ( "The panel not create! Error = " , GetLastError ()); } if (button.Create( ChartID (), "Pause" , 0 , 200 , 11
Hello, I have tried to create an EA which does the following: If open position moves in profit by 140 points, stop-loss moves in favour by 75 points, then, if open position moves in profit by 265 points, stop loss moves in favour again by 175 points from previous position. Here is an example of the
Hello everyone, I hope you're all well 😊 Let's take a concrete example where I open 10 long positions, with a volume of 0.01 lot per position per bare, i.e. a total volume of 0.1 lot. In order to manage the entire position efficiently, I would like to easily identify these different positions, for
  Translate to MT5  (2)
Hi is there someone who can translate this MQL4 code into MQL5 ? //+------------------------------------------------------------------+ //| Calculate open positions | //+------------------------------------------------------------------+ int
I ran the EA strategy optimization and then selected some of the individual results to run a single test. The single test results did not match the optimization results. The biggest difference was the drawdown% which is much higher with the single test. The number of trades was noticeably lower in
In my quest to assess the sensitivity of spread values during testing I can't quite get my head around what it is doing. I created two custom symbols based on AUDCHF specification. I download bar data from tickstory and I modified the spread values in each file to 24 and 200, respectively. For each
is there a command or a function that can clear the records of the [Expert] / [Journal] tab windows? I thought this will be an easy to find in the documentation / an internet search... void OnStart () { // --- Start of the Script // --- Is MQL 5 command / function I can clear the records of the
I'm trying to experiment with a compression scheme -that will most likely fail- . As i can't cast a 16byte integer , (yes byte 😅 ) ,is there a method to do int128 A , minus int128 B ? What this failed experiment is looking for is to know if int128 A is bigger than int128 B and if their distance is
  Installation is failed  (20   1 2)
Does any one know why? i already bought this EA but seems like doesn't want to get installed
Hi, In the Tester Report we have a lot of useful statistics, including the Average Position Holding Time. Unfortunately, this parameter in not accessible with the Testing Statistics for the OnTester https://www.mql5.com/en/docs/constants/environment_state/statistics Does anyone have a formula or
Hi, can someone correct me what is the mistake below? I got error code 10013 which mean invalid request. FYI, I am using MetaQuotes-Demo account. Thank you very much. My code bool Trade_Buy() { ZeroMemory(my_request); ZeroMemory(my_result); ZeroMemory(my_check_result);&nbsp;&nbsp;...