Expert Advisors and Automated Trading - page 47

To post a new topic, please log in or register
I need simple EMA Cross over EA. Both 2 EMA is apply to open Trades only open in given time range in a day Period 35, Period 3 Trade Should close when reversed signal no matter trade loss or profit. Should work on every timeframe. SL is open. TP should be a Input in pips. When one trade open TP...
Hello ,  While updating my EA to the new version , Automatic testing has stuck and it has been running for more than an hour , stuck on " Started " Any one from the moderation can know how to solve that , I can't even cancel it
Once I test same EA in Strategy Tester having same settings including spread, time frame, balance, pair etc , I get different results with MT4 terminals of different brokers. Why is it so?
Hi All, I am a noob in programming. My question is once I received notification alert from another EA/script externally, I want to run my own Ea/script in my MT4 accordingly Example:  I am running my MT4 when an alert notification for BUYS for this pair pops up on my screen. This alert notification...
hello I'm rather new to MT4 and programming EAs so maybe this approach is all wrong :) I have writeen an EA that displays up/down arrows at possible entry points for buys and sells, without triggering actual buys/sells. It is using some of the indicators' values to achieve this. This works fine....
Hi,  Im trying to set Position Sizing to be according to the asset last ask price for example if i set the value $1000 and the ask price is $100 then the position size must be 10. can anyone help with this ?  thanks
I have this EA that closes all trades in profit or loss when it hits a certain amount of dollars(not Pips). If someone can add a trailing stop and trailing step which would also be in dollars, it would be really appreciated thanks
  Start EA (4)
Buongiorno ho proprio bisogno vostro aiuto!! Ho settato e testato un EA in tester strategy Per un verifica su dati in real ho abilitato MT5 per autotradig. Ok green botton, ma non parte, non lavora. Cosa devo fare? Garzie Gianni Good morning I really need your help !! I set up and tested an EA in...
Hello to everbody, I have an EA. At the tester everything works fine but at a normal chart it opens only one trade by initializing the EA. There are no more trades. It uses the include <Trade\Trade.mqh> What can be the problem? Best regards, Martin
Its possible to make EA base on this? 1. Put RSI on chart, then striped down the color. 2. Put Moving average on chart, then applied to RSI. 3. Put Bollinger Bands on chart, then applied to RSI. Open trade when Moving average crossed and closed outside upperband/lowerband.
Hello I have developed an EA in MQL4. It is running as per my requirement in a back test environment, taken on rental. When I ask the vendor who has provided this framework, they are asking for the code and also saying that they will not give the integrated code. I have use their server to do the...
Hlw i hv an indicator but i want to merge it with my EA code, how can i call buffer value as set double variable? i dont want to call indicator value with icustom my indicator here:...
Is there anyway to set up the order send function where it can buy or sell in a specified range? 
  Expired date (17   1 2)
We have I q how I can know the expert with experied date or no please advise 
Hello, I am trying to design an EA to trade on divergence between the prices and RSI values. I have read this article https://www.mql5.com/en/articles/1456 and borrowed some logic in my coding to transfer an indicator code into an EA code. However, I have two questions and I would greatly appreciate...
Hi, I have this EA that simply buys or sell when the fastest EMA is on top of the 2 others EMA and vice versa for sell. However, does anyone know how I can make it so it only sells then buys and not buy buy or sell sell. When the price is in between the 2 slowest EMAS, it can sometimes retrace and...
Hello, Can anyone explain to me why a sell order is counted as a loss in this position? it hits take profit but the balance decreases?
Iam  facing same problem with iCustom indicators. Iam using super trend indicator and Iam calling using ST2=iCustom(Symbol(),0,"SuperTrend",24,3.0,1,1). It works well in live and demo account when i call them, but does not work well on back testing. Can Anyone help me on this pls. Iam clueless. I...
Hi, I am trying to trade on RSI divergence, and coded as below. I borrowed some logic from RSI Divergence indicator codes, however, when I backtest it, this EA doesn't seem to function and the backtest ends in a second. Can someone take a look at my code and let me know where I got it wrong? I think...
Hello, I want to save data between two starts of the same EA. I hesitate between using the Global Variables and an ini file. What solution do you use in general? Thank you, https://www.mql5.com/en/code/20842 https://www.mql5.com/en/docs/globals
  EA Remote control MQL4 (21   1 2 3)
Hello everyone, I am looking for a way to remotely control my EA copies. Lets imagine i gave out few EA's to somebody, i want to be able to turn it on and off remotely, (kind of licensing). Selling it via website market is not an option. Main condition is that to be able to control them seperately....
int TrailingStop=20;   if(TrailingStop>0)     {      for(int x=0;x<OrdersTotal();x++){    if(OrderSelect(x,SELECT_BY_POS)==True)               if(Ask-OrderOpenPrice()>Point*TrailingStop)        {         if(OrderStopLoss()<Ask-Point*TrailingStop)           {            bool...
Hello, How to know the number of the week? MqlDateTime gives a lot of info, but I did not find the number of the week. //+------------------------------------------------------------------+//|                                                   WeekNumber.mq5 |//|...
Hi guys I've developed a strategy using C++ in Borland C++ environment and I wanted to rewrite it in MQL4 but then I figured why not calling MQL4 functions right from C++ instead ! You know, functions like OrderSend() , OrderModify() and things like that.  That would actually save me a lot of time...
  Imaonarray (1)
Hello I would like to know how to use imaonarray, I cannot understand the first variable in the bracket, the array part who do I do that
We are not official MQL developers at the MQL Freelance marketplace, but we help to answer and help anyone who seek help on all the MQL Forums. The time we spend Giving Back as support or other ways is a way to thank you guys for the wonderful platform you developed over the years. MT5 community is...
Good morning to all. I need to collect the history tick data from my broker. Is there a bot here in the market doing that? Or need to order a new one? Thank to all in advance for suggestions.
Hello everyone I'm looking for a simple EA that makes buying / selling from the opening price of the day, with fixed price for all day Maybe this already exists, but I can not find I am really very bad with MQL codes ......
Hello! I want to identify both last BUY and SELL order ticket to calculate their current profit and add more positions after X profit. I have tried several ways but I don't know why it's not working. I have tried printing the ticket variable out but the ticket number is always 0 Here is what I have...
Hello Im using the Webrequest-method to communicate with my controll server. Somehow this does not work anymore. It seems that Metatrader is stuck in a endless loop (and eventually crashes), starting at call Webrequest();. I've allready tried to inspect the situation using brackpoints, other...