Expert Advisors and Automated Trading - page 112

Hello everyone! I want to know how functions, names in title, work so I could recode them on my c++ project and calculate them on my costom data from outside of the metatrader. Since metatrader don't allow me to change historic candle data  I felt like recreating some indicators what I'm using. Does...
Hi anyone, I received this message from EA while running it in the VPS: "Failed to copy data from the indicator, error code 4806" it was running ok for first hour. What causing this and how could I fix it? I've retried to restart the VPS and migrates. Thanks, Kamal
  MySQL and 64 bit  (9)
Some time ago I had problems with MySQL and 64 bit windows. I solved it by using a 32 bit MT5 on my computer. It seems that I have gotten into some similar problem or possibly a problem with libmysql.dll Is there a 64 bit version of libmysql,dll? Dont seem to find one Tried to download a 32 bit...
Hello, I am new to MQL5 and I was trying to determine from an open trade how it was placed.  Below is a screen shot of what I am looking for.  I cannot locate in any of the ENUMs for a trade or position. Any help would be greatly appreciated.
Steps: 1. Login an account from an MT client terminal successfully; 2. Run an EA; 3. Change master password; 4. Invalid account come. But how to check invalid account from an EA? The AccountNumber() is still correct, the IsConnected() is still true. Thank you
  preset sl tp ea  (1)
Is there any ea which will put sl , tp and trailing stop when a new trade opens in mt4. I mean ea will run on separate chart, and when I'll place a trade on different chart, ea will place sl tp and enable training stop. That's it. Later if needed I'll modify those sl, tp or trailing stop according
I have an EA and I want to know if there was someway I can maybe change or bypass the ENUM_POSITION_REASON. For example, I tried copy traders. I manually open some positions in the main account, and in the slave account it showed that it was open by an Expert Advisor. I also tried with 2 different
Hi, I work in MT4. Is there a function to transfer automatically money from the current account to a second account ? Thanks
Hi there, there are a few MT4 signals I'm interested in, which I can find on MQL5 website under the MT4 signals. however, they're not appearing anywhere in my MT4 console I only have a small # of signals in there. Any ideas? Thanks
Hi everyone, I'm trying to backtest an EA that reads an indicator built with a multicurrency formula, i.e. when it creates the EUR index it calculates all symbols with EUR... The problem is that it doesn't work well on the strategy tester because the indicator line is drawn badly and the EA fails to
Hi,  I'm a total newbie to mql5. And started playing with it. Basically I want to modify the color of the price chart via the CCHart class.   It compiles with no errors or warnings. But it crashes as soon as I run the program   This is my code, it seems to crash on my attach function. If I leave...
I read the Q&A about copy signals, and I found out that it is possible to increase the volume " if Subscriber's account balance reserved for signals copying is greater than Provider's account balance (Subscriber_Balance * Load > Provider_Balance)." (source: Frequently Asked Questions about the
ChatGPT and AI mastery - how to get started in AI. How do you capitalize on this trend and learn AI? Dr Mike Pound of Computerphile fame tells us how to ride this wave. If you are into cybersecurity or any other tech field, you probably want to learn about AI and ML. They can really help your
Hi, I want to run an EA in strategy tester with different symbols/asset-classes at once, therefore I want to have one set of optimization settings for all assets. Is that possible somehow? For example (all just sample numbers!): If we talk about US30, we talk about "points": ATR has a value of 16 SL
Hi, I'm trying to get the loss amount for the last closed order, using this code: void OnTradeTransaction ( const MqlTradeTransaction &trans, const MqlTradeRequest &request, const MqlTradeResult &result) { //--- if transaction is result of addition
Learn how to perform algorithmic trading using Python in this complete course. Algorithmic trading means using computers to make investment decisions. Computer algorithms can make trades at a speed and frequency that is not possible by a human. After learning the basics of algorithmic trading, you
Everything works fine with my ea in strategy tester.But in picture you will see a info window when i looking to price candles with mouse. I dont understant why this window appears there ? Position 2241 will be so much later as you can see in toolbox
This EA showing no error in compiping, however I'm not able to see any variable/parameters showing as input in backtesting. Not sure what's wrong in it. Attaching code
  Who owns the EA?  (29   1 2 3)
When a programmer is hired to write the script for an EA who has ownership of the EA? The person who ordered the EA or the the person that wrote the script
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