here i rewrote a part of known indicator for MT4 (Perfect trend line), everything works as in MT4, BUT... But I can't get rid of forced ArraySetAsSeries() written by me - otherwise the indicator doesn't count correctly, I know that ArraySetAsSeries() will change the direction of indexing in the array, but for 2 days I haven't managed to do it myself!
here i rewrote a part of known indicator for MT4 (Perfect trend line), everything works as in MT4, BUT... I know that ArraySetAsSeries() will change the direction of indexing in the array, but for 2 days I haven't managed it myself!
I know that you can calculate the indicator values withoutArraySetAsSeries(), but I do not see what I am doing wrong. I tried to find a simple example in kodobase, but alas, all indicators are written in different ways, I cannot figure it out (((
SZY: I don't need the cross-platform indicator, I want to handle the default arrays indexing, I've already used ArrayGetAsSeries() - I don't understand it
I know that you can calculate the indicator values withoutArraySetAsSeries(), but I do not see what I am doing wrong. I tried to find a simple example in kodobase, alas, all indicators are written in different ways, I cannot understand it (((
Your indicator calculation goes from the beginning to the end (from the most recent historical data to the most recent - to the current one). And this indicates the indexing as in timeseries. So the arrays should be indexed accordingly, which is what you have.
I know that I can calculate the indicator values withoutArraySetAsSeries(), but I do not see what I am doing wrong. I tried to find a simple example in kodobase but alas, all indicators are written in different ways, I cannot figure it out (((
SZZ: I don't need the cross-platform indicator, I want to handle the default arrays indexing, I've already used ArrayGetAsSeries() - I don't understand it
You can do it without ArraySetAsSeries, just use Print or Comment to make it clear, that the 0 array index, for example open[0], will be printed. From here you can make your own decisions. It will help you figure out what is what.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Thank you! I always thought referring to classes was a pointer to a class. But here it's just a declaration... what's that got to do with it?
These are the very basics of OOP, have a little look at the Help. For example, the new/delete operators and so on.
Thank you! I always thought referring to classes was a pointer to a class. But here it's just a declaration... what's that got to do with it?
I'll look into it, thanks!!!
In which metatrader do you create symbols on MT5?
Yes, on MT5
You can't.
That's a shame.
I do this after uploading to excel, but it has its own shortcomings there too. It's a pity that there's no such feature built in.
But I have a hunch that it can somehow be implemented programmatically)
Yes, on MT5.
It's a pity MT4 doesn't allow you to create symbols, you can change values but you can't create them.
teach me how to get rid of ArraySetAsSeries() !!!
here i rewrote a part of known indicator for MT4 (Perfect trend line), everything works as in MT4, BUT... But I can't get rid of forced ArraySetAsSeries() written by me - otherwise the indicator doesn't count correctly, I know that ArraySetAsSeries() will change the direction of indexing in the array, but for 2 days I haven't managed to do it myself!
teach me how to get rid of ArraySetAsSeries() !!!
here i rewrote a part of known indicator for MT4 (Perfect trend line), everything works as in MT4, BUT... I know that ArraySetAsSeries() will change the direction of indexing in the array, but for 2 days I haven't managed it myself!
I can do the following
I can do it this way
I know that you can calculate the indicator values withoutArraySetAsSeries(), but I do not see what I am doing wrong. I tried to find a simple example in kodobase, but alas, all indicators are written in different ways, I cannot figure it out (((
SZY: I don't need the cross-platform indicator, I want to handle the default arrays indexing, I've already used ArrayGetAsSeries() - I don't understand it
I know that you can calculate the indicator values withoutArraySetAsSeries(), but I do not see what I am doing wrong. I tried to find a simple example in kodobase, alas, all indicators are written in different ways, I cannot understand it (((
Your indicator calculation goes from the beginning to the end (from the most recent historical data to the most recent - to the current one). And this indicates the indexing as in timeseries. So the arrays should be indexed accordingly, which is what you have.
What goes wrong then?
I know that I can calculate the indicator values withoutArraySetAsSeries(), but I do not see what I am doing wrong. I tried to find a simple example in kodobase but alas, all indicators are written in different ways, I cannot figure it out (((
SZZ: I don't need the cross-platform indicator, I want to handle the default arrays indexing, I've already used ArrayGetAsSeries() - I don't understand it
You can do it without ArraySetAsSeries, just use Print or Comment to make it clear, that the 0 array index, for example open[0], will be printed. From here you can make your own decisions. It will help you figure out what is what.