Errors, bugs, questions - page 1420

 
Ром:

Question for the developers. Does the exchange broadcast open interest synchronously with volumes for each transaction (in times&sales) or asynchronously?

If synchronously, then it would be nice to put it in MqlTick... instead of getting it through SymbolInfoDouble.

I am waiting for update to build 1200. To checkCopyTicks

The build 1200 was already available for update from MetaQuites-Demo server three or four days ago.
 

Afternoon

Can you please advise why the SL and TP columns in the orders section are not filled in the report from the MT5 terminal?

 
Alexey Klenov:

Afternoon

Can you please tell me why in the report from the MT5 terminal the columns SL and TP are not filled in the orders section?

Not true. The fields in the report are filled in:

Trading History Report
Name:Barabashka
Trading account:1783501 (USD, 1:100, MetaQuotes-Demo, demo)
Broker:MetaQuotes Software Corp.
Date:2015.10.27 08:26
Orders
Opening timeOrderSymbolTypeVolumePriceS / LT / PTimeStateCommentary
2015.10.27 08:22:5968437438USDCADsell0.01 / 0.011.316531.317431.315632015.10.27 08:22:59filled
2015.10.27 08:25:0368437478USDCADbuy0.01 / 0.011.316772015.10.27 08:25:03filled
Deals
TimeDealSymbolTypeDirectionVolumePriceOrderCommissionSwapProfitBalanceCommentary
2015.10.27 08:22:5954110210USDCADsellin0.011.31653684374380.000.000.0010 241.54
2015.10.27 08:25:0354110248USDCADbuyout0.011.31677684374780.000.00-0.1810 241.36
0.000.00-0.1810 241.36
Balance:10241.36Free Margin:10241.36
Credit facilities:0.00Margin:0.00
Floating Profit/Loss:0.00Margin Level:0.00%
Funds:10241.36
Backtest
Net profit:-0.18Total profit:0.00Total loss:-0.18
Profitability:0.00Expectation of winning:-0.18
Recovery factor:-1.00Sharpe Ratio:0.00
Balance drawdown:
Absolute balance sheet drawdown:0.18Maximum balance drawdown: 0.18 (0.00%)0.18 (0.00%)Relative drawdown by balance sheet0.00% (0.18)
Total trades:1Short trades (% of winners):1 (0.00%)Long Trades (% wins):0 (0.00%)
Profitable Trades (% of all):0 (0.00%)Losing Trades (% of all):1 (100.00%)
Largest profitable trade0.00Largest losing trade:-0.18
Average profitable trade:0.00Average losing trade:-0.18
Maximum number of continuous wins (profit):0 (0.00)Maximum number of continuous losses (loss):1 (-0.18)
Maximum number of continuous profits (number of wins):0.00 (0)Max. continuous loss (number of losses):-0.18 (1)
Average continuous winnings:0Average Continuous Losses:1
 

Error in MT5 terminal, build 1200 from 23.10.15 (alpari).

In previous build everything was working correctly (!).

The CopyRates() function started to indicate dates incorrectly (probably, other bar data as well).

Here is an example of a short test program (Expert Advisor):

==================================================

datetime c_DStart=D'01.01.2015';
datetime c_DEnd=D'26.10.2015';

int i;
int MaxBars;

MqlRates a_RatesAll[];

//----------------------------------

//+------------------------------------------------------------------+
//| Expert initialization function|
//+------------------------------------------------------------------+
int OnInit()
{
//---
ArraySetAsSeries(a_RatesAll,true);

//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| ChartEvent function|
//+------------------------------------------------------------------+
void OnChartEvent(const int id,
const long &lparam,
const double &dparam,
const string &sparam)
{
//---
//output
if(id==CHARTEVENT_KEYDOWN && lparam==45) // output "Insert"
{
ExpertRemove();
}
else if(id==CHARTEVENT_KEYDOWN && lparam==48) // "0"
{
DateTimeRates(c_DStart,c_DEnd);
}
}
//+------------------------------------------------------------------+
//| My functions|
//+------------------------------------------------------------------+
//====================================================================
void DateTimeRates(datetime DStart, datetime DEnd)
{
if ((DStart>0) && (DEnd>0))
{
MaxBars=CopyRates(Symbol(),0,DStart,DEnd,a_RatesAll);
if(MaxBars<=0) Print("Error of price data copying ",GetLastError());
else
{
Print(" ");
Print(EnumToString(ChartPeriod(0));
Print("Copied ",ArraySize(a_RatesAll)," bars);
}
}
for (i=MaxBars-1;i>=0;i--)
{
Print(a_RatesAll[i].time);
}
}
//====================================================================
==================================================

If I specify a start date of the time series later than 14.10.15, all bar dates are reset:

HS 0 09:49:42.561 DateTimeCopyRates (EURUSD,M5)
PM 0 09:49:42.561 DateTimeCopyRates (EURUSD,M5) PERIOD_M5
LE 0 09:49:42.561 DateTimeCopyRates (EURUSD,M5) 2406 bars copied
IM 0 09:49:42.561 DateTimeCopyRates (EURUSD,M5) 1970.01.01 00:00:00
CD 0 09:49:42.561 DateTimeCopyRates (EURUSD,M5) 1970.01.01 00:00:00
MK 0 09:49:42.561 DateTimeCopyRates (EURUSD,M5) 1970.01.01 00:00:00
GS 0 09:49:42.561 DateTimeCopyRates (EURUSD,M5) 1970.01.01 00:00:00

...

etc.


If I specify an start date of 14.10.15 or earlier, the time-series dates start a few weeks to a few months late.

Here's an example with a start date of 14.10.15, the time series starts on 26.10.15:

CS 0 09:53:02.383 DateTimeCopyRates (EURUSD,M5)
KM 0 09:53:02.383 DateTimeCopyRates (EURUSD,M5) PERIOD_M5
GE 0 09:53:02.383 DateTimeCopyRates (EURUSD,M5) 2695 bars copied
QM 0 09:53:02.383 DateTimeCopyRates (EURUSD,M5) 2015.10.26 15:50:00
PD 0 09:53:02.383 DateTimeCopyRates (EURUSD,M5) 2015.10.26 15:55:00
GK 0 09:53:02.383 DateTimeCopyRates (EURUSD,M5) 2015.10.26 16:00:00
RS 0 09:53:02.383 DateTimeCopyRates (EURUSD,M5) 2015.10.26 16:05:00
DJ 0 09:53:02.383 DateTimeCopyRates (EURUSD,M5) 2015.10.26 16:10:00
...


Here is an example with a start date of 01.01.15, the series starts from 12.05.15:

PS 0 09:54:47.726 DateTimeCopyRates (EURUSD,M5)
HM 0 09:54:47.726 DateTimeCopyRates (EURUSD,M5) PERIOD_M5
FF 0 09:54:47.726 DateTimeCopyRates (EURUSD,M5) 60958 bars copied
OL 0 09:54:47.726 DateTimeCopyRates (EURUSD,M5) 2015.05.12 21:55:00
HD 0 09:54:47.726 DateTimeCopyRates (EURUSD,M5) 2015.05.12 22:00:00
QK 0 09:54:47.726 DateTimeCopyRates (EURUSD,M5) 2015.05.12 22:05:00
CS 0 09:54:47.726 DateTimeCopyRates (EURUSD,M5) 2015.05.12 22:10:00
FJ 0 09:54:47.726 DateTimeCopyRates (EURUSD,M5) 2015.05.12 22:15:00
RQ 0 09:54:47.726 DateTimeCopyRates (EURUSD,M5) 2015.05.12 22:20:00
...


Please ask the developers to correct this error.

Files:
MT5.png  18 kb
 
retired:

Error in MT5 terminal, build 1200 from 23.10.15 (alpari).

In previous build everything was working correctly (!).

CopyRates() function started to indicate dates incorrectly (maybe other bar data as well).

Add another request to Service Desk to get it fixed sooner!
 

Unable to retrieve SeriesInfoInteger() data from INDICATOR! MT4

Please look at request#1337152

 
Karputov Vladimir:

Not true. In the report the fields are filled in:

Yes, I'm sorry, at first the order leaves with zero TP and SL

but then I modify the position (SL and TP)

and this data is not included in the report.

 
Alexey Kozitsyn:

Unable to retrieve SeriesInfoInteger() data from INDICATOR! MT4

Please look at request#1337152

Should MT5 functions work in MT4?
 
Alexey Klenov:

Yes, I'm sorry, at first the order leaves with zero TP and SL

but then I modify the position (SL and TP)

and this data will not be included in the report.

What exactly doesn't show up in the report (and is this about the pending order or the position?)

  1. after the SL and TP have been modified, are the SL and TP fields empty in the report?
  2. or do you want to see a log of all your modifications in the report?

 
Ilya Malev:
Are MT5 functions supposed to work in MT4?
This one does, see the documentation. Moreover, I haven't described everything here. It works, but not always. And this is an error for sure.
Reason: