But in my experience, this was expected behaviour also before. for that reason, i have all necessary initializations in init().
Perhaps this difference comes from different behaviour of EA and indicator?
Indicators always initializes global variable in build 509 after TF change,but EA doesn't.
Now it would be initialized after TF change in build 604 so I have to recode my EA.
The following code with ArrayResize returns '4, 3, 2, 5' in MT4 build 604
I thought it should return '5, 4, 3, 2'.
Is this a bug or am I missing something?
One thing is for sure . . . it shouldn't return 4, 3, 2, 5
As far as I remember for a Series array elements are added and removed from the start of the array, index 0 end, so I think the result should be 4, 3, 2, 1
Please post complete test code that can be compiled and run so others can verify this issue.
RaptorUK:
One thing is for sure . . . it shouldn't return 4, 3, 2, 5
As far as I remember for a Series array elements are added and removed from the start of the array, index 0 end, so I think the result should be 4, 3, 2, 1
Please post complete test code that can be compiled and run so others can verify this issue.
I understood your problem correctly.
But in my experience, this was expected behaviour also before. for that reason, i have all necessary initializations in init().
Perhaps this difference comes from different behaviour of EA and indicator?
Now it would be initialized after TF change in build 604 so I have to recode my EA.
I have another problem in 509>604 conversion:
//test.mq4 In the (Indicators) folder
==============================
#property strict
//--------------------------
double init[16]; //(global)
//--------------------------
Server1(info);==============================
//
//lib.mq4 subroutine in the (Libraries) folder
==============================
#property library
void Server1(double &infoX[]){
...
...
}
==============================
//
//inc.mqh subroutine in the (Include) folder
==============================
#import "lib.ex4"
void Server1(double &infoX[]);
==============================
//
//The above structure was working in 509
//Now in 604 it compiles without an error
//However, on the execution I get following error:
//unresolved import function call
//Cannot find 'Server1' in 'lib.ex4'
//
//Something new and I can't figure it out..... any idea?
Hi,
The following code with ArrayResize returns '4, 3, 2, 5' in MT4 build 604
I thought it should return '5, 4, 3, 2'.
Is this a bug or am I missing something?
Hi,
The following code with ArrayResize returns '4, 3, 2, 5' in MT4 build 604
I thought it should return '5, 4, 3, 2'.
Is this a bug or am I missing something?
As far as I remember for a Series array elements are added and removed from the start of the array, index 0 end, so I think the result should be 4, 3, 2, 1
Please post complete test code that can be compiled and run so others can verify this issue.
Ok, here is a test code:
One thing is for sure . . . it shouldn't return 4, 3, 2, 5
As far as I remember for a Series array elements are added and removed from the start of the array, index 0 end, so I think the result should be 4, 3, 2, 1
Please post complete test code that can be compiled and run so others can verify this issue.
I think you are right.
Reported to ServiceDesk.
Thanks.
I just tested with build 509 and it gives 5, 4, 3, 2 (as expected)
I reported a simple bug. The bug record reads - fixed on 2014.02.10 09:47, while the new 605 still contains the bug... is that OK?
EDIT:
Apologies, fixed. I did not realize the command was evaluated at compile time, so after re-compilation it is OK.