Expert Advisors and Automated Trading - page 494

I'm getting the wrong values returned from the function ObjectGetValueByTime. First I create the object with:ObjectCreate(0, DivName, OBJ_STDDEVCHANNEL, 0, fromDate, fromPrice, toDate, toPrice); Then I try to get the first value with:double FirstPrice0 = ObjectGetValueByTime(0, DivName, fromDate,...
Hi all, Im building my own ea and my next step is to test it on past ticks to get the best settings. I already searched for it, but nothing matched. Do i need the mql5 strategy tester for this or can i do that anyhow else ? Looking forwarad to your answers, Harald
I'm confused with this problem. Below are the parameters and still I get the "invalid stops" error: rates[i].close=1.29171 rates[i].close is the close of the bar at which I'm placing the pending buy stop order i.e. the current price. request.price=1.29185 request.price is the price at which I'm...
Hi Guys I was wonder if someone could tell me how to send one. Ive set mine up in the options menu with my android device. Did a test and that successfully came through. However when i try integrating it ino my EA, i get an error 4014...which is system not allowed. Any one have any ideas ? Would...
Question, How do I get clean tick data? I've heard other people taliking about it on various forums.  I have some new EAs that I've had built and i've ran them through the strategy tester on MT4 when I run the exact same settings on the same EA on the same pair on...
So i did a strategy test with a new ea. First optimized over the last 3 years and then tested some with what i thought good results on only 2012. And now i think ive got one of the better ones selected. But how do you select you best settings? On draw down? Profit? Recovery factor? Winning %?...
I am trying to import the values of a few technical indicators into a SQL Server database, but the values that my script returns do not match exactly to the values I see on my charts. Even though the open/close/high/low values do match perfectly. Of course I have double checked that I am using the...
Hi everybody,Im new here and just want to learn how to use mql5 for my purposes, cause every api provided by any broker is either too expensive or just trash. Since about 5 years im a VB .NET programmer and now i want to use my skills to write a dll which allows me to do the following actions: Buy...
Hi guys, Optimization of my EA on remote server fails with the following error: 2013.01.17 21:55:44 eagle pass 8 tested with error "critical runtime error in global initialization function (error 508, module -1, file 65535, line 0, col 0)" in 15 ms This is because of DLL call and that's...
  ParameterSetRange  (13   1 2)
I am having trouble using ParameterSetRange,  basically I want the EA to automatically set the optimisation ranges for some parameters so I have done  1. set the input parameters in the EA as normal  2. created a OnTesterInit  function (see attached) and used the ParameterSetRange but when I go to...
What is the correct way to use the ParameterGetRange function? I know that it only works in the OnTesterInit function. Here is the code I am using, eg.: void OnTesterInit(){ParameterSetRange("VariableName", true, 1.0, 1.0, 1.0, 2.0);} VariableName is an input double datatype. Compiles fine....
Is there a way/site to test multiple EA's on one account? Ive got about 5 configurations that i want to test on live data. Do i need 5 different computers with times MT5 installed.. There has to be a simpler way..
  strategy tester speed  (12   1 2)
How can I make the test faster? Sometimes goes faster than other with the same set up. Maybe is something on my computer that I have to reset, ?
So I am using a signal provider and I want to change my lot size so when it opens orders for me it will open the right size and not the size it chooses. How do I change the lot size? I cannot find anywhere where to specify the size
I tried to make an EA from a indicator.  I took the basics of the indicator and added the necessary stuff to make a trade in some of the indicator points.  And now it error free within the  MetaEditor. But now i want to backtest te EA but it is still showing the indicator image in MT5. So it won't...
I am trying to make a quick conversion of the current position profit to pips with this line of code: #include <Trade\Trade.mqh> //include the library for execution of trades CPositionInfo m_Position; // entity for obtaining information on positions int PIP_SWAG;...
I am getting an error appear when I run the optimiser - see attached If I run a backtest with exactly the same parameters it works fine, but if I use the optimiser I get these errors and no results Can anyone explain it or tell me what the error code means, I cannot find that error code anywhere...
Hi, My problem is now: I have one sell open and now I want to close it and open a buy position instant execution. Below is my solution and it seems to be doing the trick, but are there other better ways to achieve the aforementioned goal? Thank you for your help community! //--- close...
I want to test a basic EA and I can not understand what is on the INPUTS, >> VARIABLE, VALUE, STEP, STOP . And what I have to put. I understand that value is the input that I want to put. Start, step, and stop I don't know The "HELP" explanation I don't understand it. Any help will be...
 Im try to make a system when the proft is more then X pips, increase the lot size by X.   But how can i store a variable like  "increase_lot" .. Because now it will stays "10" and not keeping the change that is made later on in the script after "ontick".. (it reloads the EA every...
Hey, I'm trying to figure out how to set an expire time for a pending order. So far that part of my code looks like this:    CTrade trade;   trade.SetExpertMagicNumber(MagicNr);   trade.SetDeviationInPoints(Slippage*z);   if (PositionsTotal() ||...
Can anyone confirm this ? Thank you
I am working on a Depth of Market (DOM) scalping system. I want to add this EA to the market but not sure how traders can back-test it with DEMO. I will look to offering a signal of the EA but this is not the same as doing an back-test yourself. Would you suggest they optimize the entry and exit...
Hello! How Can I publish product in market with DLL? Thanx!
I want it to go short when 'last momentum > now momentum'. But how can i get the last momentum? The momentum documentation: Momentum is calculated as a ratio of today’s price to the price n periods ago: MOMENTUM = CLOSE (i) / CLOSE (i - n) * 100 Where: CLOSE (i) — close price of the current...
[Deleted]
Hi guys I'm moving from mql4 to mql5 so far so good I've read few tutorials on how properly to make an EA and check for errors but I'm still struggling to make this one working bool OpenTrade(int iType, double dLots, string sSymbol){ Print("Open ticket for " + sSymbol); double dPrice; int...
I'm very new with MT and as much as I've tried I can't figure out whether I can use the MQL5 Wizard for what I want to do. I'd appreciate your advice very much! It's a simple breakout - At the beginning of each day I want to enter a "good for day" order to buy if price moves 5 pips above the...
-
I am new in trading but i am very interested in automated trading ....any one here can guide me how can start
Good afternoon, When I open two different ways in order, for example a buy and sell one another cancel each other. How can I do to avoid cancellation? My goal is to open a buy order while a sell order, is this possible?How?
Hi guys, Nice to meet you. I first introduce myself. I am from Asia Hong Kong and is a CFA. Now I start learning MT4 EA and automated trading . As I am not graduated from Computer Programming, I have lots of questions when start learning the programe in MT4. I have spent about 2 months to wrtie