Errors, bugs, questions - page 1389 1...138213831384138513861387138813891390139113921393139413951396...3193 New comment Fantomas 2015.10.05 10:58 #13881 Good afternoon!Studying, trying to fix expert. In code editor, in debug mode, there are two ways, by ticks and by history.For some reason I cannot run a history test, this line is not active. The instructions show: fill in the table in settings and that's all.But the line "Start on historical data" is not active???????????????????? Question about debug on Historical data for debugging Questions from Beginners MQL5 Vladimir Karputov 2015.10.05 11:09 #13882 Fantomas: Good afternoon!Studying, trying to fix expert. In code editor, in debug mode, there are two ways, by ticks and by history.For some reason I cannot run a history test, this line is not active. The instructions show: fill in the table in settings and that's it.But the line "Start on historical data" is not active????????????????????Have you filled in the fields in MetaEditor in this way and pressed the right button? Fantomas 2015.10.05 11:40 #13883 Karputov Vladimir:Did you fill in the fields in MetaEditor this way and click on the right button?Yes, filled in this table, put a breakpoint.Now in the menu "Debug" the first two lines.1. Start on real data------- It is active2. On historical data--------- stubbornly not active. [Deleted] 2015.10.05 11:43 #13884 Fantomas: Yes, filled in this table, put a breakpoint.Now in the Debug menu the first two lines.1. Start on real data------- It is active2. On historical data--------- stubbornly not active. Latest build of the terminal? Fantomas 2015.10.05 11:47 #13885 Tapochun: The latest build of the terminal? Probably 880 Vladimir Karputov 2015.10.05 12:15 #13886 Fantomas: Probably 880Indeed, in MT5 build 1159 32 bit debugging on history is available, but in MT4 build 891 32 bit debugging on history is not available: Fantomas 2015.10.05 12:34 #13887 Karputov Vladimir: Indeed, in MT5 build 1159 32 bit debugging on history is available and in MT4 build 891 32 bit debugging on history is not available:Thank you all for your time!!! TheXpert 2015.10.05 22:50 #13888 Alexandr Bryzgalov: so it's really not an error?It really is. Even so, it's more likely to be for (;;) Alexandr Bryzgalov 2015.10.05 22:51 #13889 Комбинатор: Indeed. Even so, it is likely to be possible for (;;;) Yeah, I read it in the help ) Ilya Malev 2015.10.09 21:51 #13890 Hi all, I mostly write in mql4, but decided to start working on mql5 and had a problem.I am using Ishimoku readings in my indicator. It doesn't update the data and keeps showing error 4806.void OnInit(){ int i_ich=INVALID_HANDLE; i_ich=iIchimoku(Symbol(), Period(), 9, 26, 52); WaitInd(i_ich, "Ишимоку"); } void WaitInd(int hnd, string name, int wait=10){ if(hnd==INVALID_HANDLE){ return; } double Arr[]; datetime now=TimeLocal(); Comment("Ждем построения индикатора ",name,"..."); GetLastError(); while(CopyBuffer(hnd, 0, 0, 1, Arr)<=0){ int err=GetLastError(); if(err!=4806){ PrintFormat("Ошибка %d при получении данных инликатора %s",err,name); Comment(""); return; } if(TimeLocal()-now>=wait){ PrintFormat("Ошибка: индикатор %s не построился за %d секунд",name,wait); Comment(""); return; } } Comment(""); } int OnCalculate(const int rates_total, const int prev_calculated, const datetime& time[], const double& open[], const double& high[], const double& low[], const double& close[], const long& tick_volume[], const long& volume[], const int& spread[]){ return(rates_total); }The same code, if I use it in script, it does not show any error, indicator is build instantly. What may be the problem? Any questions from newcomers Reference to an Indicator Scripts: simple csv2fxt 1...138213831384138513861387138813891390139113921393139413951396...3193 New comment
Good afternoon!
Studying, trying to fix expert. In code editor, in debug mode, there are two ways, by ticks and by history.
For some reason I cannot run a history test, this line is not active. The instructions show: fill in the table in settings and that's all.
But the line "Start on historical data" is not active????????????????????
Good afternoon!
Studying, trying to fix expert. In code editor, in debug mode, there are two ways, by ticks and by history.
For some reason I cannot run a history test, this line is not active. The instructions show: fill in the table in settings and that's it.
But the line "Start on historical data" is not active????????????????????
Have you filled in the fields in MetaEditor in this way and pressed the right button?
Did you fill in the fields in MetaEditor this way and click on the right button?
Yes, filled in this table, put a breakpoint.
Now in the menu "Debug" the first two lines.
1. Start on real data------- It is active
2. On historical data--------- stubbornly not active.
Yes, filled in this table, put a breakpoint.
Now in the Debug menu the first two lines.
1. Start on real data------- It is active
2. On historical data--------- stubbornly not active.
The latest build of the terminal?
Probably 880
Indeed, in MT5 build 1159 32 bit debugging on history is available, but in MT4 build 891 32 bit debugging on history is not available:
Indeed, in MT5 build 1159 32 bit debugging on history is available and in MT4 build 891 32 bit debugging on history is not available:
Thank you all for your time!!!
so it's really not an error?
It really is. Even so, it's more likely to be for (;;)
Indeed. Even so, it is likely to be possible for (;;;)
Hi all, I mostly write in mql4, but decided to start working on mql5 and had a problem.
I am using Ishimoku readings in my indicator. It doesn't update the data and keeps showing error 4806.
The same code, if I use it in script, it does not show any error, indicator is build instantly. What may be the problem?