Re: Coding Help

1621
mrtools wrote: Mon Sep 02, 2024 5:59 am Far as I can tell the code looks good, remember what you are talking about when this indicator was first posted added jurik smoothing and t3 signal lines, seemed okay.
Now that it was confirmed that there was no problem with the code,
I understand that the question "Why doesn't the red line reach 100?" was just my selfish wish. :cry:

Thank you for taking your time and another version.
I will try it.


Re: Coding Help

1622
t2g wrote: Mon Sep 02, 2024 7:03 am Now that it was confirmed that there was no problem with the code,
I understand that the question "Why doesn't the red line reach 100?" was just my selfish wish. :cry:

Thank you for taking your time and another version.
I will try it.
BTW, Mladen did an on-chart version for mt5 that looks pretty interesting.
These users thanked the author mrtools for the post (total 3):
RodrigoRT7, t2g, kvak

Re: Coding Help

1623
mrtools wrote: Mon Sep 02, 2024 7:38 am BTW, Mladen did an on-chart version for mt5 that looks pretty interesting.
Thank you for sharing.
Yes, It looks really interesting.

But unfortunately I don't have MT5.....
Could you convert this mql5 to mql4 please.......


Re: Coding Help

1626
mrtools wrote: Tue Sep 03, 2024 3:48 am Converted it and posted it here.
Thank you mrtools !!
It really helped me.

I'm still wondering about that issue.
I changed the code Close to Close[i+1] in the code line 161-166
then the red line started to work same like the green line.
Still doesn't reach to 100 value but
there are impulsive movements same like green line.( default setting Length=1)

there is not big difference betwwn the value of High and Low or close and Close[i+1]
but the results of the caluculation are different.
Why like this happens ?
Is there a difference in the timing of calculations?

I am still skeptical of High Price and iHighest.
Because same thing happend with other indicators that using High or iHighest......
There is something trick in the MT4 terminal ? :think:

Maybe I should ask to MetaQuotes but
I'm afraid because I don't have enough knowledge and coding skills. :sweat:

If anyone has had a similar experience or knows any tips please let me know.

Re: Coding Help

1628
t2g wrote: Wed Sep 04, 2024 9:39 am I changed the code line 168
wro = 100*(1-(MathInt(wrk[r][R1]/Close[i+1])+
to
wro = 120*(1-(MathInt(wrk[r][R1]/Close[i+1])+

Then Red line reached to 100 value with impulsive movement.
now working same like green line.

However, this is not an original calculation,
and the question "why" still remains. :lmao:


Oooooops !!

If we set the length greater than 1,
the red line will exceed 100.........

I'm sorry.
I haven't checked it......