Expert Advisors and Automated Trading - page 215

To post a new topic, please log in or register
i use gkfx trading broker, how do i link this to my metatrader 5 platform? Or is metatrader 5 actually the broker for automating signals? sorry im new to all this and any help is very appreciated!
I have a template created that shows all the technical indicators that I use, but when I test an EA another template is used.  Is there a way to configure MT5 to use my template when displaying the EA results
Hello, I have developed a robot which uses Bars() function to detect new bars through a simple code which checkss number of bars increases. The problem is that suddenly, Bars() function does not work properly when the robot is running on the terminal, as it always returns the same number of bars...
Hi, I'm debugging expert advisor and for unknown reason I get the following error at random: 2013.02.12 16:46:25 Experts initializing of BreakOut (EURUSD,H1) failed I'm confused because then when I wait a little while and try the debuggin again without any change in the code it works no...
Hi Im just curious about something, if i backtest my EA during the same period at the ATC, would the results be comparable. I understand there would be a slight difference due to slippage but apart from that, can i compare it against the best EA made?
So far it looks like you can customize just about every aspect associated with automated trading. Except for the optimization algorithms used when optimizing a given strategy. So for instance if I had a specific type of GA or maybe a different stochastic optimization technique I want to use....
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!