Multi Timeframe Indicators - page 535

 
mladen:
Kelch Monteiro It needs "ang_AZad[Osc]" indicator in the indicators folder in order to work. Without it you will get an empty sub-window

Man, many thanks! I was desperate here! lol

Have a nice day. here in brazil the day is just starting!

 
mladen:
Marco The old sentence (heard so many times) : that is decompiled code. Sorry

Hi MLaden,

Ok thx. I can't see if something is decompiled, how can I see this so I won't have to send this stuff anymore!

Thx and regards Marco

 
Marco320:
Hi MLaden,

Ok thx. I can't see if something is decompiled, how can I see this so I won't have to send this stuff anymore!

Thx and regards Marco

Marco

Here is one post about that : https://www.mql5.com/en/forum/general

regards

Mladen

 

Marco

Just an unrelated example : take a look at a part of JMA that is floating around for years and is used for years

ring1 [counterA] = highDValue;

if ((limitValue + startValue) > 127) {

startValue--;

s58 = startValue;

} else {

limitValue++;

s58 = limitValue;

}

if (limitValue > 96) s38 = 96; else s38 = limitValue;

if (startValue < 32) s40 = 32; else s40 = startValue;

}

//----

s68 = 64;

s60 = s68;

while (s68 > 1) {

if (list [s60] >= highDValue) {

if (list [s60 - 1] <= highDValue) {

s68 = 1;

}

else {

s68 = s68 / 2.0;

s60 -= s68;

}

}

else {

s68 = s68 / 2.0;

s60 += s68;

}

if ((s60 == 127) && (highDValue > list[127])) s60 = 128;

}

if (cycleLimit > 127) {

if (s58 >= s60) {

if (((s38 + 1) > s60) && ((s40 - 1) < s60))

lowDValue += highDValue;

else if ((s40 > s60) && ((s40 - 1) < s58))

lowDValue += list [s40 - 1];

}

else if (s40 >= s60) {

if (((s38 + 1) s58))

lowDValue += list[s38 + 1];

}

else if ((s38 + 2) > s60)

lowDValue += highDValue;

else if (((s38 + 1) s58))

lowDValue += list[s38 + 1];

if (s58 > s60) {

if (((s40 - 1) s58))

lowDValue -= list [s58];

else if ((s38 s60))

lowDValue -= list [s38];

}

else {

if (((s38 + 1) > s58) && ((s40 - 1) < s58))

lowDValue -= list [s58];

else if ((s40 > s58) && (s40 < s60))

lowDValue -= list [s40];

}

}

That is a decompiled Wealth lab code (decompiled years ago) that was converted to metatrader. I have seen some code written by Mark Jurik and he never ever used names like that for variables, but he uses normal, human names. So I guess that if the start was like that (since JMA became popular right at the beginning of metatrader) we could not expect anything different when it comes to metatrader itself

So that is not a game invented by metatrader users but it seems that they are the ones that are killing the coding by flooding the net with decompiled code which makes the coders not post anything any more. and since the majority simply are not coders they even do not know when the code is decompiled - and the rest is known

 
mladen:
Marco

Just an unrelated example : take a look at a part of JMA that is floating around for years and is used for years

ring1 [counterA] = highDValue;

if ((limitValue + startValue) > 127) {

startValue--;

s58 = startValue;

} else {

limitValue++;

s58 = limitValue;

}

if (limitValue > 96) s38 = 96; else s38 = limitValue;

if (startValue < 32) s40 = 32; else s40 = startValue;

}

//----

s68 = 64;

s60 = s68;

while (s68 > 1) {

if (list [s60] >= highDValue) {

if (list [s60 - 1] <= highDValue) {

s68 = 1;

}

else {

s68 = s68 / 2.0;

s60 -= s68;

}

}

else {

s68 = s68 / 2.0;

s60 += s68;

}

if ((s60 == 127) && (highDValue > list[127])) s60 = 128;

}

if (cycleLimit > 127) {

if (s58 >= s60) {

if (((s38 + 1) > s60) && ((s40 - 1) < s60))

lowDValue += highDValue;

else if ((s40 > s60) && ((s40 - 1) < s58))

lowDValue += list [s40 - 1];

}

else if (s40 >= s60) {

if (((s38 + 1) s58))

lowDValue += list[s38 + 1];

}

else if ((s38 + 2) > s60)

lowDValue += highDValue;

else if (((s38 + 1) s58))

lowDValue += list[s38 + 1];

if (s58 > s60) {

if (((s40 - 1) s58))

lowDValue -= list [s58];

else if ((s38 s60))

lowDValue -= list [s38];

}

else {

if (((s38 + 1) > s58) && ((s40 - 1) < s58))

lowDValue -= list [s58];

else if ((s40 > s58) && (s40 < s60))

lowDValue -= list [s40];

}

}

That is a decompiled Wealth lab code (decompiled years ago) that was converted to metatrader. I have seen some code written by Mark Jurik and he never ever used names like that for variables, but he uses normal, human names. So I guess that if the start was like that (since JMA became popular right at the beginning of metatrader) we could not expect anything different when it comes to metatrader itself

So that is not a game invented by metatrader users but it seems that they are the ones that are killing the coding by flooding the net with decompiled code which makes the coders not post anything any more. and since the majority simply are not coders they even do not know when the code is decompiled - and the rest is known

Goodevening MLaden,

That's right, some people (the wild guru stories e.g.) takes the wrong step by selling stolen or existing products (even a lot is free to get,) and the web is that big so you can find a lot. It's not the product you sell, but the input of parameters which can make a system and then recognize how to trade with.

Indeed I'm not a coder, basics are simple to change, but the real work, I'm glad e.g. you and mrTools are here to help. I will take more care to look if I will recognize a normal code or decompiled, so it safe time for both of us. It's a sort of scholing for me, little by little learning more of MQL. So, thx for the briefing and till soon!!!

Best regards, Marco

 
mladen:
Kelch Monteiro It needs "ang_AZad[Osc]" indicator in the indicators folder in order to work. Without it you will get an empty sub-window

Mladen, is possible make it with the "ki" fractionated, like 1.5 or 3.6 periods?

 
Kelch Monteiro:
Mladen, is possible make it with the "ki" fractionated, like 1.5 or 3.6 periods?

Kelch Monteiro, in the code change, extern int ki = 2; to extern double ki = "whatever fractional number"; Change the int to double, that's all.

 

Can anyone turn it into a non-lagging MTF version?( i mean non-adjusting mtf indicator showing real values of higher timeframes )

Running Median Indicator for MT4 - MQL4 Code Base

please!

 

Many thanks. Mladen and Marco...I will give it a try

 
mrtools:
Kelch Monteiro, in the code change, extern int ki = 2; to extern double ki = "whatever fractional number"; Change the int to double, that's all.

thanks man! can you indicate some good and easy e-book to me? I really would like to learn mql4. i already searched on net but the e-books what I found needs to already know something about programming. I don't even know about html. lol some e-book to learn from begin. can you indicate?