We are constantly touted the many advantages of MT5. But in practice only the backtest is higher than MT4. No need to deal with the histories, it is done automatically. Possibility to test multi-pair EAs. Ho wonder! But voila, if on multipair (28)
Time Current () and StringToTime () send me the same thing. What is the mistake ??? Print ( "CloseTime:" + HistoryDealGetInteger (ticket, DEAL_TIME )+ " Time current:" + TimeCurrent ()+ " Time Convert:" + StringToTime ( TimeCurrent ()));
Hello everyone I want to know at what price has closed an order. There is HistoryDealGetDouble (ticket, DEAL_PROFIT ) which provided the profit, HistoryDealGetDouble (ticket, DEAL_PRICE) which provided the opening price but surprisingly, I do not
With this code I always get in BOLL_U and BOLL_L the values of the average of the Bollinger, buffer 0 according to the doc, whereas I specify that I want upper, buffer 1 according to the doc, and lower, buffer 2 according to the doc. What did I not
Hello everyone I start porting an MQL4 EA to MQL5. It is a multipair EA, running 28. It uses 4 indicators. For the use of these, is it better to create the handles once in OnInit () in a table 28X4 or is it possible to create them in OnTicks () on
Hello I read in doc Mql4 that RefreshRates () updates the data of the current symbol. I understand: the data of the symbol of the card to which is attached the EA. (?) In this case, for a multi-pair EA, how to refresh the data of other pairs
Hello I receive on my smartphone Androide notifications only wifi, never 4g. As soon as I connect to Wifi, all MT4 notifications arrive together. The notifications of other apps, Gmail, Whatsapps etc ... work in Wifi and 4g without problem. I
Hello Why in a multi-pair EA this: take= NormalizeDouble ( MarketInfo (pairmajeur, MODE_ASK )+Take* MarketInfo (pairmajeur, MODE_POINT ), MarketInfo (pairmajeur, MODE_DIGITS )); Gives me an error "" possible loss of data due to type conversion
On my Pc W7 pro this code runs without problem. On a VPS W2008R2 it causes a " zero divide ". Even broker, account different. How would it be possible that "iClose (pair [i], FastUnit, FastNumb-1" return zero? #property copyright "Copyright 2015
Hello In "OnInit ()" I house the static part of the display of an EA to avoid refreshing it with each tick. To accelerate the optimization I use "IsOptimization ()" to display nothing. I do not notice any difference of time between with and without
I try to create a two-tone Bollinger following phases. It is no doubt very simple but I can not find why when changing colors there are holes ... //+------------------------------------------------------------------+ //| Bollinger Phases
Hello I want this EA launches with default with Type = NO_ORDER, but each time it launches with the last parameter used. Is it possible? Thank you #property copyright "Copyright 2014, MetaQuotes Software Corp." #property link
hello everyone In MT4 In the tester is it possible to automatically eliminate some tests optimization? For example: In an EA I have the option to use (true) or not (false) the parameter "traillingstop." With TS = true, the tester evaluates the
Excuse my bad English. I have a problem with ArraySort(). I used it to classify a basket of orders before closing. Rarely, but from time to time I take a "Invalid ticket for OrderClose function ". If I do not class them, I is never this error. I