Errors, bugs, questions - page 2531
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
It's a pity that we didn't even dare to take part in the tests. The topic is interesting in my opinion, because it turns out that different processors handle different tasks differently, but there are not enough statistics yet.
My rarity processor is only left in my possession and in a museum, it is hardly of interest to anyone.
It's a pity that you didn't even dare to take part in the tests.
Wanted to run a test on the first day, but the thread has grown to several pages, some bugs in the first version of the test code ... did not read further, my own interests
I think I need a clear manual (with pictures ) and a minimum of thinking on what to do for the user, then the user activity may appear
I wanted to run the test on day one, but the thread grew to several pages, some bugs with the first version of the test code... I did not want to read any further, got interested in my own interests
I think I need a clear manual (with pictures) and a minimum of thinking on what to do for the user, then the user activity may appear
And the forum itself is very uncomfortable for something like this, we need the opportunity for the author of the topic to edit the first post at the end of any period, where all the necessary, relevant information is located, rather than search among the mass of messages. In this format, it's just a thread for flubbing.
Here's a question.
I need to store a pointer to an array of type double[] (usual, indicator) so that it can be referenced within the program.
The standard developers suggest either to pass a reference to this array throughout the function hierarchy, cluttering up the input parameters where it is absolutely unnecessary, or to copy the entire array to itself onevery tick, and then use a reference to its internal array, which can be passed and remembered and used within the function hierarchy.
Both solutions seem very ugly to me. Passing a reference through the entire call tree is already ugly, and when you consider that we don't know at what point we might need to access the array, it just becomes really stupid.
Copying the entire array on every tick, when there is a source one, is also a bit of a mindset, and most importantly, it loses productivity.
Has anyone encountered this problem ? How to get around this stupid limitation ?
I remember once, I think,fxsaber suggested an address copying function using some shamanic action, but I can't find it.
Who can suggest what ?
My rarity processor is only in my possession and in a museum, it's hardly interesting for anyone.
It's always interesting to assess progress.
I wanted to run the test on the first day, but the thread has grown to several pages, some bugs with the first version of the test code... I did not read further and got busy with my own interests
I think I need a clear manual (with pictures ) and a minimum of thinking on what to do for the user, then the user activity may appear
There shouldn't be any bugs there, the others are running fine. Now there is a screenshot of how the strategy tester should be set up.
I didn't think it would be difficult to set up the optimiser at all... What's not clear there now - let me give you a hint.
And the forum itself is very uncomfortable for something like this, we need the ability for the author of the topic to edit the first post at the end of any period, where all the necessary, relevant information is located, rather than searching among the masses of posts. In this format, it's just a thread for flubbing.
We don't have another forum, I update the results regularly when there is information - it's not that hard to find.
Here's a question.
I need to store a pointer to an array of type double[] (usual, indicator) so that it can be referenced within the program.
The standard developers suggest either to pass a reference to this array throughout the function hierarchy, cluttering up the input parameters where it is absolutely unnecessary, or to copy the entire array to itself onevery tick, and then use a reference to its internal array, which can be passed and remembered and used within the function hierarchy.
Both solutions seem very ugly to me. Passing a reference through the entire call tree is already ugly, and when you consider that we don't know at what point we might need to access the array, it just becomes really stupid.
Copying the entire array on every tick, when there is a source one, is also a bit of a mindset, and most importantly, it loses productivity.
Has anyone encountered this problem ? How to get around this stupid limitation ?
I remember once, I think,fxsaber suggested an address copying function using some shamanic action, but I can't find it.
Who can suggest what ?
If we are talking about mql5, then, as an alternative, we turn the indicator into a class and, if necessary, fetch it and use it for storing and copying necessary data to the needed ngbin and controlling its single update at every tick. I do it this way.
That's what I usually do myself...
But it doesn't work with indicator buffers. Or did I miss something and it can be done somehow?
But with indicator buffers, the wrap does not go away.
But with the indicator buffers, the wrapping doesn't go through. Or did I miss something, can it be done somehow?
everything works, but arrays that will be indicator buffers should be described with public modifier
I created one HMA indicator for MQL4 - 4 indicators in one subwindow:
and the class itself where the body of the old indicator was just copied:
the yellow color is the old indicator buffers, I didn't want to change the code of the old indicator at all, I just copied it to the class, it took me a little less than an hour
always did.
What do you mean ? You can declare a class member as an indicator array ???
I'll check it now.
Hmmm... Right...
Well, then - everything is much simpler, and the question is solved without any problems - we declare class members as indicator arrays, and pass a pointer to this very class for memorizing. The solution, of course, is not very nice, but in the absence of pointers to the array, it's OK.