a strange thing: I have an expert advisor which works fine in MetaTrader 5.00 build 527 but it doesn't work in build 540 (same machine).
I have double checked that I test with the same code. In Build 540 I get the following error:
2011.11.14 18:26:18 Core 1 2010.01.26 16:06:28...
I have written an EA that need to write ad read data from a text file... when i use in live i have no problem but if i want to use in Tester i have some problems with the Text File...
AT THE END of the test the file is written in : tester/Agent/MQL5/files/myFile.txt , but if i want start a...
up to now the Strategy Tester worked fine but today - suddenly I´m receiving this Error Message and I don´t have a clue what it´s about. Can you pls help?
2011.11.08 08:09:11 2010.07.06 14:55:00 Access violation read to 0x00000E49 in 'C:\Programme\MetaTrader...
Anyone could help me with this?
I`ve done a simple EMA Cross signal, after that I used MQL5 Wizard to built my EA...
When I try to run the EA it show the following errors:
CExpertBase::SetPriceSeries: changing of timeseries is forbidde
CExpertBase::SetOtherSeries: changing of...
MT4 shows in the chart the indicators you use in your ea during baciktesting. MT5 does not show any indicator - it only shows the trades (both in normal and in visual mode). Am I missing something? Is this feature already available in MT5? It's harder to backtest if you have to add your indicators...
Hi guys how are you. I'm wondering if someone could help me out to finish this simple OCO EA.
Basically I want to cancel other trades based on their TICKETS. So basically we have two limit orders. Once one of them triggers, the other must cancel.
extern int Ticket_1;
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-
just try to detect cancelled orders. For this, i use
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...
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 ->...
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.
I am looking for a EA which will trade 00 price level.
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.
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...
Name:Sell_Buy Scalper_agrAuthor:FSS (2011.02.16 16:17)Rating:5.5Downloaded:16193Download: Sell_Buy Scalper_agr.mq4 (3.7 Kb)
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...
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.
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...
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...