Expert Advisors and Automated Trading - page 224

To post a new topic, please log in or register
Testing 2 years (2010-2011) with ExpertMama using 10000 USD with 1:100, profit 210.27 and result 214701557.56 with 29 trades. What is this?
Hi All Yesterday I had MT4 and on it I had a simple indicator that showed me both the 14 day ATR and the current range of today's price action in numbers in a 'Comment' in the top left corner of the chart. The code I used was this- double My_ATR=iATR(NULL,1440,periods,1); double...
  EA (6)
I was just wanting to know what the best EA on  the market for purchase might be? Any ideas or opinions? Thanks
Hello, just try to detect cancelled orders. For this, i use HistorySelect(from,TimeCurrent()); HistoryOrdersTotal(); All this in an expert advisor. Detection of cancellation is done on every trade. Now the problem: in OnInit, from is initialized with TimeCurrent. When i place an order and...
I wrote very simple custom indicator using external DLL. It compiles and shows up on a chart very fine. Next, I wrote EA using this custom indicator. EA also loads and works very fine. However, any attempt to test this EA in strategy tester gives this error: 2011.10.22 20:16:18 expert removed...
Hi, I'm doing some an simple EA for MT5 and encounter some problems, if you know please help me to overcome it 1) I want to handle the equity data through the Strategy tester. Please the me how to access these data. After the test has finished, I can take the equity data from the Graphe ->...
Hello. Someone can help me to solve this "problem". ArrayMinimum() and ArrayMaximum() just return respectively the index of most minimum(littlest) and the most maximum(biggest) value into the Array passed to it. So it give absolute minumum and maximum, values, of an array. But what if...
My trades are filled only at a certain X hour & Y hour. In between those hours (X and Y), the EA has practically nothing to do. Should I use OnTimer(), rather than OnTick()? Any suggestions from anyone who has done this using OnTimer(), or anyone who has such experience? Thx.
do any tools can follow metatrader 5 trades to MT4? thanks
is it possible to test an EA while on demo account? I receive the annoying error: 4756 Trade request sending failed
for a given account with 100 US$ balance, leverage 10:1 what is the size of the lot for opening a position without getting a not enough moeny error?
Hello, I am looking for a EA which will trade 00 price level. Example : if Current price of EUR/USD is say 1.4165, then ea has to Buy at 1.4200 and sell at 1.4100 , no pending orders, just instant orders. If should ea is available please let me know. Thanks in advance. Peter
I can consume a Webservice using MQL5 or i have to make a c++ Dll do do the request?
Hi, in my Expert I would need to update positions' comments when certain conditions are met. All I could find so far is that I can get these comment by using PositionGetString(POSITION_COMMENT). What I would need is the reverse, like PositionSetString(POSITION_COMMENT). I have been...
Hello, I am looking for the best way to execute a pyramiding strategy using pending orders as stops. Should I use Mqltraderequest or the Trade.mqh classes? Also, I have experimented with both and each have given me problems (even when using a set price as a Stop Loss, not a separate pending stop...
Is it possible to access Macroeconomic Indicators from MQL5 within an EA? Macroeconomic Indicators are described in the help and can be accessed manually in the Toolbox via the Calendar tab. Regards
Name:Sell_Buy Scalper_agrAuthor:FSS (2011.02.16 16:17)Rating:5.5Downloaded:16193Download: Sell_Buy Scalper_agr.mq4 (3.7 Kb) Hello, Dear enthusiasts, I write this first topic with much respect for everybody that is involved in the forex scene. Maybe some people with experience in coding will be...
Hello, I was wondering if anyone can help me - I am using the pre made macd EA on MT5 but I really need to be able to up the lot size, here is the code hope that helps. Thanks. //+------------------------------------------------------------------+ //|...
Help! Where are my EA code mistake? Dual Thrust. Basic principle is simple, describe below 1. In today's closing, calculated two values​​: the highest price - closing price, and closing price - the lowest. Then take the larger of two values​​, multiplied by the k value 0.7. The result is called...
Indicator cannot load. Please help...?#property copyright "M.M.Dubovikov, A.V.Kryanev, N.V.Starchenko, & bhc"#property version "1.00"#property indicator_separate_window#property indicator_buffers 1#property indicator_color1 Red#property indicator_level1 0.5input int n = 5;input int nBars =...
both provide more or less the same functionality but what is better to use while coding the EA?
Hi all, ich wrote the following code, but i don't work somehow. I check if a position in the current symbol exists. Then i would like to have the "day of the year" for the recent moment (for ab) and the "day of the year" when the position has been opened (for ba). The difference of this two data...
Hello, assume i do cycle over pending- or history orders. how do i know an order is intended as CLOSE-order ? Thank you
I am trying to circumvent the step of getting a handle for a particular indicator and stright forward accessing the values for decission in an EA; is this possible? Cheers!
hello the Moving Average file includes this function: double SimpleMA(const int position,const int period,const double &price[])   { //---    double result=0.0; //--- check position    if(position>=period && period>0)      {       //--- calculate value       for(int i=0;i<period;i++)...
Hello, my EA can work well on multiple currencies so I would like to test it with the portfolio tester on more than one currency. &nbsp;Is there any recommendations or resources for designing a multi-currency EA for the portfolio tester in MT5? &nbsp;Is it necessary to modularize the EA code and...
I started picking up mql5 on the weekend and have started creating a few EAs, none of them based on a strategy I'd use, but just to get used to the language itself. The EA puts in instant orders on the currency with a lot size of 0.1. If the trend continues I want the EA to be able to purchase...
  MQL5 EAs (6)
I have put de META 5 verson from Metaquotes. Graphics are received OK. But the experts folders do not work, when traying install some EA. Instead indicators go .Any help please?
Novice MQL5 programmer here. Is there a way to check the price of a previous tick? MqlTick's "last" variable is not available in the forex market :(