Expert Advisors and Automated Trading - page 70

  Invalid stops  (2)
FYI all, I am using a copy trader and for some reason wheter i use the signal providers stop loss or a do my own custom stop loss i see the below in the journal Signal XAUUSD buy ENTRY 2035.25-2035.50 SL 2030.35 TP1 2036.25 TP2 2036.75 TP3 2037.50 In MT5 it says the below: Trades '565564': market
I wonder why this function exist and how it can be used for an useful task ? There is often confusion among programmers between this function and ArrayGetAsSeries, even in some good articles. Maybe there is historical reason or I miss something.
Moring to all Im trying to install Metatrader 5 in google colab looking to get some databases. On the next screen shot the errors that I´m getting. Can any one give me a hand or an code or any ideas on how to install this library
When a new bar appears in the strategy tester, I'm seeing that indicator buffers don't appear to get filled correctly. For the first tick of a new bar, if I call CopyRates function I can correctly see index 0 in the array contains the values for the opening tick of the bar, and index 1 contains the
double CAccountInfo::MaxLotCheck( const string symbol, const ENUM_ORDER_TYPE trade_operation, const double price, const double percent) const { double margin= 0.0 ; //--- checks if (symbol== "" || price<= 0.0 || percent< 1 || percent> 100 ) in this piece of code
Hi All, Is there a way for an Expert Advisor to terminate itself? At the moment i'm using a workaround: since i've written a DLL i've created a function inside wich just throws an Exception. In this way the terminal blocks the further execution of the EA but don't really terminate it ( and anyway...
Am i the only one having trouble with the strategy tester in mt5? it has always been working fine until last friday. it simply keeps going but doesnt do anything. i didnt change a thing in settings or on pc....
For example , I want to add one EA to 10 chart. but every EA update i must re-add. This is a little troublesome. Does MT5 write a script and automatically add EA to the chart? Please note that is add EA, not adding indicators
Hi everyone, I have had this problem for some time, the EA works very well both in backtest and in profiling, despite this it always keeps giving me the same error, from debugging it does not give me any errors, what can I do
What should I do for a backtest with one hundred percent accuracy? I want to test a robot
Hello, I coded a script for Metatrader 5. I'm not getting a compilation error but I'm getting a warning I need help. //+------------------------------------------------------------------+ //| CloseHalf.mq5| //|
Waiting 4 days to get optimization result from my expert, and I faced this issue. There is difference about 200 items between passed items and total passes number. [redacted URL by moderator] 1. What is the reason ? 2. How to find which parameters condition not passed? (I need to do backtest again
Hello, I have been running into this issue for awhile now. (I will have the image attached to this message). I have an extremely fast computer running thread ripper 64 core / 128 threads and many other specs. So, the issue is most definitely not the computer. I have been working with a freelance
I keep getting error 10014 and/or 10016 related to the correct volume and/stop. Pls assist, i have read almost all blogs pertaining this :D //+------------------------------------------------------------------+ //| Calculate Stop Loss |
Hi, my EA will launch a program using ShellExecuteW and the program will create an XML file that the EA will copy it for further processing. Since the program could close itself due to error I launch the program for every 40 second. The arise between EA read the XML file and the countdown, there's a
Hi I'm trying to call a base class's virtual function inside of a derived class with the same function name. Consider the following: class Parent{    public:    virtual void Test(){       Print("Parent");    } }; class Child : public Parent{    public:    void Test(){       Parent* p =...
I hope someone can help / advise. I am logged into my broker account - and the leverage on that account is 1:10 I want to test the EA, based on that leverage 1:10 In the Strategy Tester | Setting tab the smallest setting is 1:25 If I enter 1:10, it seems to accept it, but the moment I press 'Start'
I bought MT4 EA and run for last few years...possible to convert it to MT5 environment and run? Also to use my preset file in MT4..possible? How about the conversion cost? Please advise me..Thanks
Hello Everybody, I'm working in a Ichimoku multisymbol expert advisor, but I'm receiving a strange behavior. Stops are not triggrered see this picture. In the image prices for XTIUSD symbol are under stop loss and still the positions keep open. Thanks for any advice
Hello folks, I would.like to know if there is some way to automate the opening of multiple charts, with different EA or strategy presets. I have to test hundred of strategies and its quite boring and time cosumlng to open one by one manually. Im trying something with config.ini files but have no
I want to solve a overdetermined system by matrix and vector methods. As i see there is not any solution there (at least yet). Am I right? if yes? a) Is there anyone who developed any code over MQL for these systems? b) Anyone can help for any solution? may be a code C++? Thanks in forward
When EA 1 alerts me on a condition, is there a way to automate a second ea from turning on and off based on that alert? Basically, I have an ea that signals bullish or bearish. I want my second ea which is built on martingale to turn on and off when the signal on the first changes. I could have a
Hi, I have always had my Expert Advisor folder as the base when I click in the field Indicator in Strategy tester . (Where you choose your EA to test) Today I was sitting reading MQL5 Articels and was testing others EAs to play with.. Suddenly my default folder in the indicator field are defaulted
Hello, hope you everyone is doing good. I have a question see. I have have been trading live for the past year & I got some decent entries & exits. So my question can my trade history be turned into a n algorithm based of my past data
Hello Everyone This post is somehow related to my previous topic at https://www.mql5.com/en/forum/456103 where in following suggestion was there from @William Roeder Don't try to use any price (or indicator) or server related functions in OnInit (or on load or in OnTimer before you've
Hello I have problem to solve I need to hedging drawdown equity I have perfect strategy to grow balance which is repetable like an image below but sometimes entries make too huge drawdowns equity (red arrows) How to solve it, do you have any ideas about advanced hedging? (red line I marked drawdown
I have a couple of scripts that calculate the lot size depending on risk % and SL distance. sl=m_symbol.Ask()-Stop_Loss_POINTS*point; Is there a way to somehow work out if I'm calculating lot size for a forex pair, or for an Index. I get the point from SymbolInfo ... which works for forex pairs
Hi everyone, apologies in advance for the frustrated rant. I want to know the D1 14 period ATR in MQL5, for use in an EA. That's all. In MQL4, it was a simple, one-line instruction: "ATRD1 = iATR(Symbol(),PERIOD_D1,14,0);" But in MQL5, it seems to be an absolutely insurmountable development
when we finish edit program , we should compile mq5 files to ex5.  But if there are many mq5 files , Is there a way to compile all mq5 files to be ex5 without one by one?
Are we able to modify MT5 EA that we purchased in MQL5