Expert Advisors and Automated Trading - page 217

To post a new topic, please log in or register
Hi guys, 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...
Hi, 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... Christian
Hi all 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...
I wrote an EA that I put on a graph (M1). I want it to put a line (object) on another graph (M5) which already exists. Is it possible ? How can I do that ? Christian
Dear Forum, Im traying to handle my placed orders, as I found in many threads usually it is handled by the following loop : for(int i=0;i<OrdersTotal();i++) if((order_ticket=OrderGetTicket(i))>0) ... 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...
Hi, 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. Setup: 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
Hello there, 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. Jordi
Hi there!, 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...
how can i write a EA that analize all the market for a special condition ?
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...
Hi, 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...
hi friends i have problem with mt5 optimization result in 2d graph. how i can choice result in 2d graph like mt4?
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 would compute a variable datetime and a type int, like 2009.01.06 + 3 (this is easy in Excel). Can you help me, how to procede the good script ?
Hi, 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 ghetrone@gmail.com (ghetrone at gmail.com). Thanks.
Hi, 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...
#include <Trade\Trade.mqh> CTrade Execution; int TotalRecords; void OnTick() { if (OrdersTotal()==0) { double ask=SymbolInfoDouble(_Symbol,SYMBOL_ASK); double buy_stop_price=NormalizeDouble(ask+5*_Point,(int)SymbolInfoInteger(_Symbol,SYMBOL_DIGITS)); double bid=SymbolInfoDouble(_Symbol...
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...
do anyone use forex megadroid ?
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...
Hello All, 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...
Morning all, 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 C...
  Bugs in build 722 (16   1 2)
Since the last update build 722 function IndicatorCreate returns a INVALID_HANDLE. Dous some one know what happend with this function, must the software be altered (see Indicator.mqh)
HI all 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...