Page 163 of 180

Re: Coding Help

Posted: Mon Sep 02, 2024 7:03 am
by t2g
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

Posted: Mon Sep 02, 2024 7:38 am
by mrtools
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.

Re: Coding Help

Posted: Mon Sep 02, 2024 4:50 pm
by t2g
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

Posted: Mon Sep 02, 2024 10:15 pm
by wdwdwd113
I want to make mt4 ea with xSuperTrend.mq4 indicator. The logic is that when the market have Bullish pin bar(long tail), or the candle's low < super trend && close > super trend, then open a buy order with tp and sl in the next candle with open price.

Re: Coding Help

Posted: Tue Sep 03, 2024 3:48 am
by mrtools
t2g wrote: Mon Sep 02, 2024 4:50 pm Thank you for sharing.
Yes, It looks really interesting.

But unfortunately I don't have MT5.....
Could you convert this mql5 to mql4 please.......
Converted it and posted it here.

Re: Coding Help

Posted: Tue Sep 03, 2024 7:36 am
by t2g
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

Posted: Wed Sep 04, 2024 9:39 am
by t2g
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:

Re: Coding Help

Posted: Wed Sep 04, 2024 2:28 pm
by t2g
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......

Re: Coding Help

Posted: Thu Sep 05, 2024 4:16 am
by Lwqa
Lwqa wrote: Mon Sep 02, 2024 7:03 am Dear great coder !

Can you add up to 20 visible lines on this indicator! And put the x and Y button option.

Thank you for your help!🙏🏾
Dear Mr Tools!

Would you like to help me to code this indicator!
post1295549171.html#p1295549171

This indicator is very important to me and I think it will be beneficial for others.

Thanks for you help and for your time !

Re: Coding Help

Posted: Wed Sep 11, 2024 7:36 am
by kvak
Lwqa wrote: Mon Sep 02, 2024 7:03 am Dear great coder !

Can you add up to 20 visible lines on this indicator! And put the x and Y button option.

Thank you for your help!🙏🏾
I Think, this is all what I am able to do.... for your button have not idea how to add x/y option. Indicator have 10 lines now.