Expert Advisors and Automated Trading - page 113

I'm wondering what happens eventwise when we stop the strategy tester. Is there no event triggered when this happens? Let me explain: My EA opens and writes lines to a file. The file is closed at the OnDeinit() event. All is fine when I run the EA till the end, but if I stop it by clicking the stop...
I noticed something strange thinks When I try to get the value of the Chikouspan 26 bars before. It only works in live mode correct. But not in the backtester . In Backtester i get strange Values. I use this Code for geting the Value : if ( CopyBuffer (Ichimoku_handle_Long, CHIKOUSPAN_LINE , 26
I stuck with this error, I'm looking where the mistake is for the last 24h, and I'm completely blind. The error appear in the strategy tester log like this : "invalid request" and with the retcode 10013. Below is the full code. It's a training code where I try different and basic trading logic, I
I found nice little EA only for modifying SL and TP here https://www.mql5.com/en/code/23037 EA moves positions to Breakeven+profit. Now when I test it I see that if there is 1 BUY position open, TP is correctly where it should be(let say 30 pips). But as soon as there is coming more BUY positions
[Deleted]
Tester stopped because onit returns non-zero, what is the problem
  Debug version  (3)
There is no error during configuration, but still debug version, what should I do
I'm trying to remove a previously placed pending order using the below python script but for an unknown reason it returns retcode 10013 which translates to "invalid request"... import time import MetaTrader5 as mt5 if not mt5.initialize(): print( "initialize() failed, error code ="
I wrote a code for an EA, but I did not put any protection or encryption, do I need to put a protection for the EA if I upload it in mql stor
Hi, i'm new in mt5 algo trading and i want to learn python algo trading. but when i insert codes from ' integration -> metatrader for python -> order_send() ' and inter the 'order_send()' command, i get this error: retcode: 10030 i repeat again that i didn't write the code and it's from the site
I have been able to automate and schedule my back testing. The problem is working with the previous results. The \cache\*.opt files are a challenge at best and do not correspond to in a meaningful way outside of the optimization type, date and instrument. Has anyone come across a good method of
Dear knowledgeable traders, One of the trades from my EA went past the stop loss price (see picture), and I don’t understand why. What are the reasons for that? I’m with ICmark and the trade was for XAUJPY. Sorry if it’s a stupid question. I’m fairly new to this, but would massively appreciate any
The matter is that I want to exit a position at first profitable close of the day after entry. Can somebody help? I don't know how to code this in mql5. I am working with XAUUSD
Hallo, is it possible to create a "Proxy"-EA receiving signals (buy/sell/..) as the very first EA (before other EAs receives/procees this signal), doing some modification to the signal (or simply delete it) and forward the changed signal (if not delete) to all other EAs running on the same
//+------------------------------------------------------------------+ //| Find Low | //+------------------------------------------------------------------+ int FindLow( int mode, int count, int startBar) { if (mode != MODE_LOW && mode !=
<Link to market product deleted>
Hello all , I need help how to upload the file to the market , from some reason I get some reject with this errors and doesn't understand how to fix it , in my trading account I use the same file without any issue , pls assist
Is it possible to close trades differently opened by 2 EA's running on same account. If yes how to manage it
Learn how to use TensorFlow 2.0 in this full tutorial course for beginners. This course is designed for Python programmers looking to enhance their knowledge and skills in machine learning and artificial intelligence. Throughout the 8 modules in this course you will learn about fundamental concepts
  invalid stops  (9)
Hello; I get almost every time an error "invalid stops" when I test my EA. I think it's weird that it's not happening 100% of the times, sometimes the order go through. So, I try to figure out, what the difference when the order is taken and when he is rejected because my stops. How can I find where
Hi there, I would like to assign a value from an input variable to a member variable with the same name. Here is the code: class Config { public : StartLotOption START_LOT_TYPE; //fill from inputs void fillFromInputs() { this .START_LOT_TYPE = START_LOT_TYPE; //Assign
Please see subject. I check "Use MQL5 Cloud Network " in the Agents tab while optimizing and nothing. Tried toggling it on and off as well. Worked on my old Intel Mac. Specs: - MetaTrader Version 5.0.0.3331 (Mac version) - macOS Ventura 13.0 on M2 processor EDIT/UPDATE: I also tried it on Parallels
I'm trying to do something very simple, but at the same time it's resisting me. I want to close the operations when the DD exceeds a value. But when the backtest ends, I check it and the value has not been respected, what could it be due to? Any ideas guys? Thank you in advance void OnTick() {
Hi anyone can help me? i can't open trades on MT5 with the following issue: market buy 1 EURUSD accepted market buy 1 EURUSD failed market buy 1 EURUSD [Request error] (illiquidity) really strange, never happened before, thx
hello, I want to develop a bot that sends all positions open close modify etc to my telegram channel until everything is fine. when I run the expert that I open an order it sends me the message in my chanel but it sends it x4/x5/x6 while the function is called only once cf screen ci necessary I also
Is possible capture this information of download/upload rate in an expert advisor
Good Day, fellow programmers, I have a problem. I have a multi-symbol Expert Advisor (in which only the symbols are added and it automatically uses them without opening the charts) without compilation errors and without creating any objects on the different charts. The problem happens when I put it
// Robot comprador com média móvel #property version "1.00" sinput string s1; //-----------Médias Móveis------------- input int mm_rapida_periodo = 5 ; // Periodo Média Rápida input int mm_lenta_periodo = 10 ; // Periodo Média Lenta input
Hello, When I test my EA with the "1 min OHLC", I get excellent result, but when I test it with "every tick based on real tick", I get awful result. I launched my EA in a real account and the "every tick based on real tick", seem to give accurate result when I compare the result from the test and
Hi, when I call a member method of my singleton class, I receive the error message "unexpected token, probably type is missing" during compilation. This is the code Config * cfg = getEURUSD_m15_R3(); ConfigManager* cm = ConfigManager::getInstance(); cm.addConfig(cfg); // <--------------------------