You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
MetaQuotes with visualisation
Alpari with visualisation
Here is the Function to be debugged Post#43
That's how it works)))
That's how it works)))
There are errors in the code:
We loop through one array and address items of another one. When the number of items in Bar_data_D1 exceeds the number of items in Bar_data_W1 and we address such an item, the array is overrun.
I think so, so you can go backwards, in my case two months from the date of the test
The tester sees 1002 daily bars
The tester adds 1000 candlesticks before the test interval start date, earlier history is not taken into account. I need to make a big test interval. I have it starting from 2000.
There are errors in the code:
We loop through one array and address items of another one. When the number of items in Bar_data_D1 exceeds the number of items in Bar_data_W1, the array is overrun.
fixed
works with no errors
There are errors in the code:
We loop through one array and address items of another one. When the number of items in Bar_data_D1 is larger than in Bar_data_W1 and we address such an item, the array is overrun.
This is not an error but carelessness, just when you are sitting puzzling over what the problem is, you delete and copy and then someone comes and says what the problem is (without even reading the code) you just take it and throw it out, that's the result.
Error with the terminal
copied the code from the post above and ran the test
here is a log
Tear down terminal and reinstall ?
Maybe with hardware ? or scooter ?
It is not an error but carelessness, when you are sitting there wondering what the problem is, you delete and copy and then someone comes and says what the problem is (without reading) you just take it and throw it out, that's the result.
You don't leave old versions behind.
And the code compares adjacent values, is this correct and consistent with the original picture and the problem?
It's a search for identical adjacent values, a simpler task, not all identical values. Head-on search for copies (same values) is done by comparing each element in the array against all, it's expensive, there are other more sophisticated but cheaper solutions.
I don't like it, but without major changes to your code, before such a comparison, sort the array by the searched value, and then the code will be more correct.
Tear down the terminal and reinstall ?
Maybe with the hardware ? or the scooter ?
Different behaviour on the same period under the same conditions (same data provider) ?
Who is your broker?
What terminal do you use?
Does anyone have an MT4 terminal from the MT4 developers?