2019.02.19 13:52:20.974 Test_4G_CB (Si Splice,H1) zero divide in 'Curve.mqh' (696,60)
Linked to code.
CCurve *A=graphicL.CurveAdd(X,Y,ColorToARGB(Green,256),CURVE_POINTS,"Logist");//Создает и добавляет кривую на график
A.PointsFill(false);//Устанавливает флаг, указывающий, нужно ли выполнять заливку для точек, определяющих кривую при отрисовке точками.
A.PointsType(POINT_CIRCLE);//Устанавливает флаг, указывающий на тип точек, использующихся при отрисовке кривой точками.
A.TrendLineVisible(true);//Устанавливает флаг, который определяет видимость трендовой линии
A.TrendLineColor(ColorToARGB(Red,256));//Устанавливает цвет трендовой линии для кривой
Don't understand the reason yet - probably an array with coordinate (0;0)...
Checking for array size helped - only builds a line with more than one point.
Developers and gurus, please advise. CopyTicksRange in tester on historical data in "All ticks" and "Every tick based on real ticks" mode returns 0 ticks and error code 0 - why?
MT5 build 1996. The symbol is RTS-3.19. The broker is Otkrytie. The account is a real account. The time frame is correct. There is the history for this period.
"Error receiving tick history! From 2019.02.08 11:16 to 2019.02.14 23:48. Error code: 0. Operation completed successfully." :)
At the same time, the same code honestly gives all ticks in tester on real data and online works without problems. What am I doing wrong?
What is the tester time? Is this tester time later than 2019.02.14 23:48?
Developers and gurus, please advise. CopyTicksRange in tester on historical data in "All ticks" and "Every tick based on real ticks" mode returns 0 ticks and error code 0 - why?
MT5 build 1996. The symbol is RTS-3.19. The broker is Otkrytie. The account is a real account. The time frame is correct. There is the history for this period.
"Error receiving tick history! From 2019.02.08 11:16 to 2019.02.14 23:48. Error code: 0. Operation completed successfully." :)
At the same time, the same code honestly gives all ticks in tester on real data and online works without problems. What am I doing wrong?
int Size_arr_X=ArraySize(X);
if(Size_arr_X>1)
{
int Marker=0;
for(int i=0;i<Size_arr_X;i++)
{
if(X[0]!=X[i] && Y[0]!=Y[i]){Marker=1;break;}
}
if(Marker>0)
{
A.PointsFill(false);//Устанавливает флаг, указывающий, нужно ли выполнять заливку для точек, определяющих кривую при отрисовке точками.
A.PointsType(POINT_CIRCLE);//Устанавливает флаг, указывающий на тип точек, использующихся при отрисовке кривой точками.
A.TrendLineVisible(true);//Устанавливает флаг, который определяет видимость трендовой линии
A.TrendLineColor(ColorToARGB(Red,256));//Устанавливает цвет трендовой линии для кривой
}
}
Error in the standard library
Linked to code.
Don't understand the reason yet - probably an array with coordinate (0;0)...
Checking for array size helped - only builds a line with more than one point.Hi all.
Developers and gurus, please advise. CopyTicksRange in tester on historical data in "All ticks" and "Every tick based on real ticks" mode returns 0 ticks and error code 0 - why?
MT5 build 1996. The symbol is RTS-3.19. The broker is Otkrytie. The account is a real account. The time frame is correct. There is the history for this period.
"Error receiving tick history ! From 2019.02.08 11:16 to 2019.02.14 23:48. Error code: 0. Operation completed successfully." :)
But no, the error came up again in the same place...
Probably only points with the same coordinates... why this check is not in the class...
Hi all.
Developers and gurus, please advise. CopyTicksRange in tester on historical data in "All ticks" and "Every tick based on real ticks" mode returns 0 ticks and error code 0 - why?
MT5 build 1996. The symbol is RTS-3.19. The broker is Otkrytie. The account is a real account. The time frame is correct. There is the history for this period.
"Error receiving tick history ! From 2019.02.08 11:16 to 2019.02.14 23:48. Error code: 0. Operation completed successfully." :)
I have written a crumpled up Expert Advisor
In OnDeinit "test shot" on your dates
Here is the test log
Everything is copied.
Wrote a verification expert on my knees
It sucks that the full code is not made available for reproduction by those reporting.
But no, the error came up again in the same place...
Probably only points with the same coordinates... why this check is not in the class...
This check helped...
Written on the knee of an expert checker
In OnDeinit "test shot" on your dates
Here is the testing log
Everything is copied.
I don't have an Expert Advisor, I have an indicator! I think that's why the result is different.
What is the tester time? Is this tester time later than 2019.02.14 23:48?
Yes, the tester time is later.
I don't have an expert, I have an indicator! I think that makes for a different result.
I don't have an expert, I have an indicator! I think that makes for a different result.
No problem. Here is the indicator
Here are the logs.
True OnDeinit with control request didn't work. Because of the testing of the indicator. OnDeinit only during debugging