New metatrader 4 compatible indicators - page 44

hotchilox
7
hotchilox  
mladen:
hotchilox

"Jaguar" is a decompiled XO indicator. When correctly coded, XO does not repaint, and since "Jaguar" is my XO indicator renamed to that funny name (in order to be sold), it does not repaint (just remove the stupid fixed minimum and maximum that someone placed on that indicator which should not be there at all and you shall see that it does not repaint).

All the best

Thank you so much for explanation Sir Mladen, u are the best

One more thing please, where i can find XO indicator?

Mladen Rakic
160088
Mladen Rakic  
hotchilox:
Thank you so much for explanation Sir Mladen, u are the best One more thing please, where i can find XO indicator?

That one is actually this indicator : https://www.mql5.com/en/forum/179807/page42 crippled (parameters made invisible, that nonsense fixed minimum and maximum added and the drawing style changed along with some other things that were made in order to hide what is that indicator actually).

One quite good version (using atr instead of using fixed size boxes for XO) you can download from here https://www.mql5.com/en/forum/173574/page311

Or you can use the version attached here (it is a "basic" multi time frame version with alerts added - set the box size to 20 and you will get exactly the same results as the "jaguar")

Bob Fisher
316
Bob Fisher  
mladen:
Tzuman

Here is a version that works OK

As of arrays : no, it would not be better. I was trying to do so when I was solving the problem of necessary calculating buffers, but then, cases when the array should be resized, you have to do the

ArraySetAsSeries(array,false);

ArrayResize(arraySize);

ArraySetAsSeries(array,true);

since metatrader had problems resizing arrays set as series properly, and then you might encounter 2 issues :

  1. it is not sure that the job will be done as it should (that the correct values are going to be at correct indexes - there were some builds of metatrader that messed up the whole array after that)
  2. the builds that did that correctly took ages for that (my guess is that they copied values 1 by 1 in order to keep the original contents of the array elements)

So I decided to use classical C like arrays (and metatader 5, btw) and am using them this way ever since wth no issue at all. It is fast, simple to use once when you get used to it and in some cases I could be able to use equivalent of over 200 buffers that way (imagine just the upper block of code done on all those 200+ arrays)

Now, with strict applied we shall have some work to do, but admit it - it is due to us (coders) being lazy at the first place when the original code was written so we skipped the necessary checks. Man, when I think what would C/C++ do to me if I would do something like that using it - it was able to kill windows when array elements were addressed improperly

Thanks so much for the prompt and thorough explanation. You educated me on Series arrays. I had assumed that setting as a series in Init would carry through the necessary resizings in the Start function. Did not think about having to unset resize and then reset to increase the array.

Tzuman

Solariz
382
Solariz  

Hi, can we please have this one made nmc?

spaghetti_macd.mq4

Files:
Mladen Rakic
160088
Mladen Rakic  
Gfuchs:
Hi, can we please have this one made nmc? spaghetti_macd.mq4

Gfuchs

Here you go

Files:
Solariz
382
Solariz  
mladen:
Gfuchs Here you go

"char" recoded to "tchar" I see....

Thanks Mladen!

camisa
587
camisa  

Hello, can someone please recode the attached indicators so they run on new metatrader 4?

Mladen Rakic
160088
Mladen Rakic  
camisa:
Hello, can someone please recode the attached indicators so they run on new metatrader 4?

camisa

RSI of Kaufman ama histo does not need any change (just compile it)

T3 adaptive made compatible with the new metatrader 4

Mladen Rakic
160088
Mladen Rakic  
Gfuchs:
"char" recoded to "tchar" I see.... Thanks Mladen!

Yep "char" as a name of a variable was allowed in previous metatrader and now is not (since now it is a data type). Sometimes these changes are simple but sometimes can be very difficult to find what must be done due to much bigger incompatibilities than just a name of the variable

secretcode
898
secretcode  

Dear Mladen

Is it possible to make attached indicator compatible with new build ( )

Thanks for any help

secretcode