Expert Advisors and Automated Trading - page 158

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
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