Expert Advisors and Automated Trading - page 96

As you know I recently started with mq5, and it's been an exciting challenge for me, but I run into some problems along the way. This one in particular has me thinking about it for several hours. It is about calculating the size of an operation based on the centroid. The error is that the LotSize is
The stock market can be a foracious beast to those that don't understand it, but nowadays, you don't even need to understand it to make money. The rise of the digital information age and AI has brought about a new way of stock trading called algorithmic trading . Sometimes referred to as automated
First post here so bare with me, I bought an EA from a guy not here, he sent me it with some instructions, and they're not bad. I just never got the instructions on the meanings in the EA. I did do some googling but really couldn't find anything. The guy really never responds or gets back to me and
Hey i have been experimenting with mql5 and I noticed during backtesting that sometimes some of my orders enter without stop loss or take profit. In the code i have posted is shown how a request is made, and the "Low" and "High" veriables returned from a method i call that returns a double value. I
  Strategy Tester  (2)
Hello! Not working with MT5 but would like to know about strategy tester … suppose I want to backrest/optimize a EA for all fx pairs. At the end, we will get the best settings of the EA for all tested pairs? Or best settings for each pair?! Thanks
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