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
the old code was compiled on the new build?
Show me the code.
Why would a non-programmer trader want to learn C++?
Or he may have to become a non-professional programmer. And in this case it may be useful to start with C. There are simply excellent examples of books for beginners - well, to the degree everything is chewed up and put in your mouth that is simply impossible not to understand))
Maybe it's not the same code, just the name of the indicator strangely coincides with the names of screenshots, but here is a clear example where an array of int type is declared which is passed to a user function, and there the datetime type is accepted
Well, and a bunch of warnings about re-declaration of variables and variables not used.
As I said before, I was just too lazy to dig through someone else's thousands of kilos of code and search for errors there. So I left it as it is. That is, in any way :-D Now I will try to compile on old build, following Sank's advice. If it works, I'll be very happy - I've been drawing very nice pictures :-D
Yes yes, that's exactly the ZUP. The old version. I kept it because it came with a great template and prescribed settings. Who knows what the ZUP and how many settings in it will understand how important this is. And yes indeed there was (I do not know how to call it an error ...) error concerning the datetime and int data types. But it's not clear what does this new build have to do with it? As I already mentioned above there is such a notion as "backward compatibility". In general, the result is obvious - this very backward compatibility is completely absent!
As I said before, I was just too lazy to dig through someone else's thousands of code and search for errors there. So I left it as it is. That is, in any way :-D Now I will try to compile on old build, following Sank's advice. If it works, I will be very pleased - it's very nice drawing :-D
you won't believe it - didn't compile at all :-D
someone did it for you.)
ZS: open ex4 with notepad, if you can see the variable names there it means it was compiled with an old compiler, if not, then with a new one.
These were developer errors. If it wasn't, it would have worked. Everything would have worked. I had to fix all my mistakes. But not with the new one, but with the old one. And all the old functions work. There were valid defaults. Now there are none. There is no control, the code doesn't work. There are controls. Everything works.
Why would a non-programmer trader want to program? Why would he learn any language at all? :-D
Or they may have to become a non-professional, albeit non-professional, programmer. And in this case it may be useful to start with C. There are just great examples of books for beginners - well, to the degree everything is chewed up and put in your mouth that is simply impossible not to understand)).
I didn't count how many lines are in that code, but it didn't take me more than 30 minutes to rule it. And you don't just have laziness, you just have an inability to do it. But don't suggest I do. I said in that thread that my generosity is over.
As continuation of conversation - somehow I have not met in my practice such a miracle that the char data type was suddenly replaced by double exactly as well as int was replaced by datetime. That's why my desire to use telepathy ended there. I didn't have the slightest desire to dig through outright nonsense.
Since it's been discussed, would you, dear fellow developers, explain why int suddenly became datetime (or vice versa - I do not remember exactly)? And why in the old build it didn't cause errors, and in the new one it suddenly appeared by some miracle (if there was an error)?
it means someone did it for you )
ZS: open ex4 with notepad, if you can see the variable names there it means it was compiled with the old compiler, if not, it means it was compiled with the new one.
But seriously - I didn't compile it! There is no .ex4 file in the experts/indicators folder of the old build. Even after just clicking on the "compile" button it didn't appear there! What's the catch? Can compiled indicator files be created somewhere else on the disk?