Expert Advisors and Automated Trading - page 91

Hi, I opened 2 pending order and after the other is filled I want to delete the other one. To do so, 1. I loop into PositionsTotal() and finding if there's an open trade, 2. loop into OrdersTotal() and delete it if there's an open position. While I looked into the internet I found another way to do
Hi everyone. I'm MQL5 programmer. I backtest on "Every tick based on real ticks" model. But my ticks data is so many real ticks absent. If tick is absent MT5 will generate tick replaced. I don't wanna trade at absent ticks (generate ticks) time. How to skip it ? I mean how to check this time is
#property copyright "2023, SqueezePlayMA" #include <Trade/Trade.mqh> CTrade trade; ulong trade_ticket = 0; bool time_passed = true; double open_trade_price = 0; input group "SqueezePlayMA"; input group "Open Trade"; input int MovingAverage = 2; input group "Close Trade"; input int HitNumber = 100;
I had never paid attention to this before, but recently I backtested an EA on two different brokers, with everything the same, and they gave different results, it wasn't an extreme change, but now I don't know which one I should trust more
Hello, I'm backtesting an EA, but I receive completely different results on two different brokers (GMT offset is equal to -7200 for both brokers). One probable reason is that on one broker time stamp of historical data looks erroneous. Look at attachment: 2017.07.08 is Saturday, but historical data...
Expert getting removed while loading on chart, I have checked there is no expiry issue, what could be the reason,? I am getting no information in journal
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