Expert Advisors and Automated Trading - page 6

To post a new topic, please log in or register
I just created a simple indicator with two moving averages, but CopyBuffer for the second indicator keep failing, so the terminal shows only the first moving average line instead of both. The code is pretty simple textbook example: // Configuration.#property copyright "<COPYRIGHT>"#property link...
There is 'Reliability' measurement in Signals. How is it measured?
Hi Is it important to insure the pairs the signal is trading are in the market watch before moving the signal to a VPS (Navigator > Register a virtual server)?
Alguém tem uma EA média móvel apenas, onde eu posso usar como parâmetros de negociação o cruzamento do gráfico de preços com a média móvel simples de 10 períodos?
Has anyone done any comparisons between actual performance and backtesting results for any number of EA's?  Or, do you know of any reports that summarize this for several EA's?  I realize there are significant differences between the two and just wanted to know ON AVERAGE how well the two compare....
Hi there, I am trying to test simplest EA which only buy's a stock at a specified price. But when I do strategy test, I get no result and seems there is a problem in my code. May you help me to know is my code a complete robot or what is the problem? Thanks in advanced!...
Hi Guys, I'm working on my new EA which has an ability to open a pending order in the opposite direction of the last closed order. I've been searching and testing for days now but there's a weird malfunction (sometimes EA is opening a lot pending orders at once, and most of the time not opening any...
With reference to this page:https://www.mql5.com/en/docs/standardlibrary/tradeclasses/ctrade/ctradepositionclose, I want that once a deal is just closed whit this chunk of code: int posOpened = PositionsTotal();   for (int i=0; i<posOpened;i++) {      ticket =...
Hello to everybody, My question is quite simple and I want to know if MQL5 supports the pointer to a function paradigma exactly like in C++... is yes where can I find an exhaustive tutorial ? Regards.
Hi My broker is IG and I have an EA that I wish to use. I have some experience with MT4 with VPS but I've not used one for a while. My issue is that I purchased a VPS so my EA can run always online and despite not seeing any obvious issues and the EA working perfectly whilst using the IG MT4...
Hi everybody. I am newbie. I see Heiken Ashi indicator in this link: https://www.mql5.com/en/code/33 I need to get array information 0 and 1 of 5 variables to compare: double ExtOBuffer[]; double ExtHBuffer[]; double ExtLBuffer[]; double ExtCBuffer[]; double ExtColorBuffer[]; How to get information...
The EA I created is a beast based on MA cross and never loses if I dont use SL. but the issue I am getting in the strategy tester is that it is only opening short trades... it also open many positions at once like 100, and when they hit tp, it looks to sell straight away.  as well as getting it to...
Hi, I do not want to foster any conspiracy theories about Forex Brokers being scams etc. but...
Hi! Is there anyone who has a lot of knowledge of the MT4 VPS server? I have a subscription to this VPS server, but the platform does not connect to the VPS server I have paid for (at least that is what I think). Take a look at the attached image. Can someone help me with this, please?
Hi Guys, I have created this amazing EA. Yes, no kidding it makes 33 Billion in the year of 2011. The bad news is in 2014 its nowhere near as good. I am desperate to figure out why? I have been trying to understand this for over a year now and its driving me crazy. I have had no progress. The...
hello , as you know iMACD() function is for classic macd but i want to use macd two lines indicator in EA and i failed in using IndicatorCreate() function can anyone give me the codes of that indicator in mql5 in expert advisor?
I have a problem understanding why this calculation gives back a wrong result. relativeSL = NormalizeDouble(moneyToRisk/tickvalue*ticksize, digits); I thought the tick value should be the amount a tick is worth (in the accounts currency), but instead it's 100 times more. What is it that I don't...
Hi all, I am entirely new to EA development. However, I have a problem with backtesting my first advisor. When selecting the ''use data'' section and I select any one year period from the options, it always seems to start from the 31st of March 2019 until the present date....
Hello, I have downloaded files from Tickdata but still, my backtests are poor poor poor... I exported to a MT4 file that was tested, did everything according to youtube instructiuons of their official site, charged the EA with data running different timeframes and nothing helped. Would appreciate...
Hello guys, Respectfully found an indicator online that was close to what I was looking for.  Did some slight modifications, however, I'm stuck on making the Indicator write to file.  I was wondering if any expert would be willing to give it a look to see what I'm missing there.  In short, its...
hello, there is EA existing here and using any indicator ? if possible using just the indicator name without symbols before and after, with stop loss, trailing stop, take profit, and lot size. thanks
Hello traders, I would like to display a big arrow in the chart. I asked to Google but found answers only for indicators. If I could modify these functions for big arrows that woud help me a lot Thanks Janfi void DrawArrowUp(string ArrowName,double LinePrice,color LineColor){ObjectCreate(ArrowName,...
I've been trying to test my socket connection using tester, as I will need it to communicate back and forth with Python. But it keep returning 4014. What I found in the documentation (https://www.mql5.com/en/docs/network/socketconnect), it cannot be called from an indicator, I've made it as an...
Hi, friend, I got a problem,  explained in following example.         For example,  I attach an EA to EURUSD chart only,  then use following codes to add OBJ_ARROW_BUY to  USDJPY chart. The EA is NOT attached to USDJPY.  The system replies error 4202, cannot find object.  Your help is appreciated....
Hey all I read once that there is an EA that can work away bad orders by partial closing them and compensate them with a other order. My problem is that I followed bad signals in the beginning/during time, tried to fix them with other orders, but GBP with the brexit is killing me: How can I fix...
This EA is based on the break of Trendline. first we click on the Short or Long buttons and it will generate a trendline, we can adjust them to sit on the wicks of the candles.  The Idea is that when the price closes or breaks the trendline it executes a trade. for example, if price breaks above LTR...
Hello, need a function to detect if a market is closed for FX symbol .  My solution   bool market_closed(string symbol){    if(StringLen(symbol) > 1)    {        datetime begin=0;        datetime end=0;        datetime now=TimeCurrent();        uint     session_index=0; // guess latest/current...
Hello Everyone I have a problem in optimization passes. I've searched a lot but none of questions nor the answers in the forum was the one solving this problem. The problem is that I have some Boolean parameters in my inputs which when they are set as false there is no need to optimize some other...
Hello,  I made a simple EA but to speed up optimization I want to make the EA opena new trade only when the indicators are right and only when a new bar starts. The EA has to wait until the bar closes and then opens a new trade only when the new bar opens. Could someone tell me the code...
Hello I receive this error when I using backtest mt5  on stocks  :   Error opening BUY position by ABC. : '(null)' I tried some broker , same error again, Is it any solution ?! Thanks