Expert Advisors and Automated Trading - page 484

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
Hi All, I have the following code on my editor. My questions are written in RED. I debug my program on a EURUSD M30 chart. Appreciate if anyone can provide me the answers. ------------------------------------------------------- void OnStart() { // the highest bar since market open...
Hello, can't get a string member variable initialized. ////////////////////////////// my_pos ///////////////////////////class my_pos : public CPositionInfo{public: my_pos (string symbol="") : CPositionInfo()    { _symbol=Symbol();    }public...
hi all, i am a complete beginner in EA. I would like to write a program that reads the Highest High of the last 3 30 mins bar on my chart, and return the highest value on my chart in a dialog box. Can anyone tell me how to do that? Thank you.
Enough Good, but I suggest one to adjust quickly and automatically for 3 months Good, but I suggest one to adjust quickly and automatically for 6 months Good, but I suggest one to adjust quickly and automatically for 12 months Good, but I suggest one to adjust quickly and automatically for 2 years...
please find out me the correct mode for buy and sell for this indicator code, example for buy 0>1 for sell 1<0 //+------------------------------------------------------------------+ //| SuperTrend.mq5 | //|...
-
Please help me to create a martingale ea which can trade in both the direction at the same time and same price that can manage profit from negative trade as well as positive trade by pipstep different lotmultiplier