I am moving from MT4 to MT5 and am rewriting my libraries. Because of the new concept of having only one postion per currency pair I have a problem.
I want to identify how many deals have been made since the postion was reopened.
So for example if I do the following trades on any...
The subject says it. 742 is the build.
I did search but didn't find anything about it. When I click to disable Autotrading, the EA continues to run. I even took the EA off and replaced it on the chart, enabled it and disable it and it continues to take ticks and process as though Autotrading...
I use the OnTick event to manage the position. When I want to have the current Profit requesting the position with PositionGetDouble(POSITION_PROFIT), I have only the previous tick Profit.
How can I have the very current datas using OnTick, or another event...
I've a method which i call x-times. I fill an array in this method and I don't know how many times the method will be called during the runtime (every call of the method creates a new entry in the array. It could be upto 300 times before I "free" the array).
Short: I don't know the needed...
I've just started playing around with MT5 and I'm loving the additional functionality in the strategy tester - in fact, I'm building some EAs that I've been putting off due to the inability to test them under MT4.
Anyway, I've hit a bump in the road and I'm hoping someone can show me how to achieve...
Im traying to handle my placed orders, as I found in many threads usually it is handled by the following loop :
The Problem is, that my OrdersTotal() call allways returns zero.
Does anyone know why...
Trying to learn and develop an EA using MT5 Using this code I can load all the pairs in MarketWatch and it works fine. But everytime you visually backtest the EA it opens an H1 window and an M15. window. Even though the EA istelf is set to be trading M1. I would just like a M1 window for all...
i am not a very good programmer, but i somehow managed to write one using a tutorial.
The problem is when a buy/Sell order is placed SL and TP price is set to null although i set in the code.
Place the Support_and_Resistance.mql in the indicator folder. and EA1.mql in the Expert...
I have run my system into the optimiser but i want to pull into excel each trade or equity curve for each simulation. so if have 10 different subsystems tester by the optimiser i want to export into excel the trades of each subsystem separetely
I have followed the instructions of <a href="https://www.mql5.com/en/articles/496">this cool article</a> written by Дмитрий to create Pithecus, my first EA. Pithecus, which means monkey in old Latin, is able to open a position on a symbol every given number of seconds. We will all...
I would like to know if there is any database of EA and Indicators used in current or previuos Automated Trading Championship.
I know some participants have shared their EA but I don't know where to find them all together, if possible.
Many thanks in advance for help.
All the bests.
I'd like the user to select something and then, depending on that something, display another list of inputs. Can I do this?
I'm trying to implement a EA that works with a combination of indicators and I'd like the user to customize those indicators once they have selected the...
Like thetitle says, I will turn your creative idea into an expert advisor. We will bothbe credited as authors of the expert advisor and I won’t share any EAs or ideas/conceptsfurther if we agree not to.
My mql programing skill level is prettydecent. I have worked with arrays and so on. Many of my...
I have read many articles here about multi-currency trading systems, but none of them is able to trade and backtest 2 or more Symbols simultaneously.
It means to buy Symbol1 and simultaneously sell Symbol2 based on some signal (sperad, correlation etc.).
How can I enhance following systems...
Dear Forum members, I am not sure if the following functions are doable in MT4 (or MT5), so I would appreciate your help I am looking to have visual alerts in the form of : (1) bars being coloured (say green for bullish / red for bearish) when a certain number of conditions are met (i.e. when price...
I am using Alpari UK MT5. I have an EA that should modify trade with TP and SL. WHen I run backtest with the EA it did modify trades with TP and SL. However, it does not set TP and SL in demo forward test. . No error in journal and Exper tab. It did not should EA tried to modify trade with TP and SL...
I need help with programming a simple EA for MT4. We can negotiate theprice and I will explain the system over skype or through email. If youare available to code and are knowledgeable in the subject matter, pleaseemail me at firstname.lastname@example.org (ghetrone at gmail.com).
I am still kind of new about this expert advisor, but I am interested to use it for my final project in my college.
I am trying to create the use case diagram for this, I already read the article about developing it using UML tools though.
But right now, I am little confused, I attached my...
My broker only offers mt4 as a platform but I want to use mt5 for various reasons. So I want to know if it is possible to build a bridge that will provide a mt5 platform with chart data, account info (account balance, equity, margin,etc.) as well as copy trades from my mt5 EA to my mt4 platform. Or...
Dear Forum members,
i am interested in
(i) creating an Expert advisor for my trading system
Who could help me with the coding of my system into metatrader language ?
(ii) I would like to share the EA with subscriber based on the volume they do.
I am working on an agreement with a major forex...
I am trying to best interpret the data below and attached. However, I realize that back-testing and optimization has it's benefits and its disadvantages. That is, results in back-testing or from optimizations do not always correlate to forward-testing results. Nonetheless, I would like...
I've just started having a strange issue with some EA testing I'm doing.
Basically I'm developing a GA perl script to create ex5 files, compile them, create an ini file to run them, and then run them from the command line
So the terminal command line is something like this
I'm looking for a possibilty to get the the name of the current class and method during runtime. I need to know in every method the name of it to write that name into a (log)file.
Is that possible without using an own variable? (i don't like to always define a variable for that). Is there...