Page 80 of 90

Re: Ehlers Indicators for MT4

Posted: Mon Dec 09, 2024 9:28 pm
by ujtrader
Cagliostro wrote: Mon Dec 09, 2024 12:15 am The code has nothing that enables repainting. I suggest you test it live, the strategy tester does not work well with all the indicators, specifically the MT4 tester.
Yes, the MTF filter repaints until the MTF candle closes. That’s normal behavior for any MTF indicator. I think he might not be aware of that.

Re: Ehlers Indicators for MT4

Posted: Mon Dec 09, 2024 9:39 pm
by ionone
ujtrader wrote: Mon Dec 09, 2024 9:28 pm Yes, the MTF filter repaints until the MTF candle closes. That’s normal behavior for any MTF indicator. I think he might not be aware of that.
the indi repaints like crazy
there is a problem somewhere

Re: Ehlers Indicators for MT4

Posted: Mon Dec 09, 2024 9:44 pm
by Cagliostro
ionone wrote: Mon Dec 09, 2024 9:39 pm the indi repaints like crazy
there is a problem somewhere
1) on what TF are you using it? It is optimized for 5 and 15M, on 1M I wan't able to have decent results.
2) I am using it "live", no tester. As explained tester is not suitable for all indicators.
3) As already mentioned earlier, the MTF part naturally recalculates as long as the higher tf candle does not close. It is normal.

Re: Ehlers Indicators for MT4

Posted: Mon Dec 09, 2024 9:54 pm
by ujtrader
ionone wrote: Mon Dec 09, 2024 9:39 pm the indi repaints like crazy
there is a problem somewhere
😲
So far, I haven't experienced any repainting, bro. 😲 I’ll post if I see it. Since this morning, it hasn't repainted. I've taken 3 entries in the same direction, and 2 have already closed in profit. I’ve set the MTF filter to 30 minutes. Working perfectly! Using with VZU strategy as a confluence for higher timeframe bias . Love how it aligns everything smoothly. 📈💸

Re: Ehlers Indicators for MT4

Posted: Mon Dec 09, 2024 10:00 pm
by Cagliostro
ujtrader wrote: Mon Dec 09, 2024 9:54 pm 😲
So far, I haven't experienced any repainting, bro. 😲 I’ll post if I see it. Since this morning, it hasn't repainted. I've taken 3 entries in the same direction, and 2 have already closed in profit. I’ve set the MTF filter to 30 minutes. Working perfectly! Using with VZU strategy as a confluence for higher timeframe bias 🔥. Love how it aligns everything smoothly. 📈💸
I trade 5m on 30 HTF as well. Happy you find it useful! ;)

Re: Ehlers Indicators for MT4

Posted: Mon Dec 09, 2024 10:27 pm
by ujtrader
Cagliostro wrote: Mon Dec 09, 2024 10:00 pm I trade 5m on 30 HTF as well. Happy you find it useful! ;)
I think it's time to start a thread called "The Art of Using Indicators" 😂 Obviously, if the M30 is about to turn bearish, it will start signaling the entry 6 bars back on the 5-minute chart... and that's probably what they’re calling "repainting," I guess. 😅

Re: Ehlers Indicators for MT4

Posted: Mon Dec 09, 2024 11:36 pm
by ionone
ujtrader wrote: Mon Dec 09, 2024 9:54 pm 😲
So far, I haven't experienced any repainting, bro. 😲 I’ll post if I see it. Since this morning, it hasn't repainted. I've taken 3 entries in the same direction, and 2 have already closed in profit. I’ve set the MTF filter to 30 minutes. Working perfectly! Using with VZU strategy as a confluence for higher timeframe bias . Love how it aligns everything smoothly. 📈💸
when I put the Indi in the strategy tester :
when I then put the indicator back on the chart :
there is obviously something worng here. both are VERY different

Re: Ehlers Indicators for MT4

Posted: Mon Dec 09, 2024 11:40 pm
by ionone
Cagliostro wrote: Mon Dec 09, 2024 10:00 pm I trade 5m on 30 HTF as well. Happy you find it useful! ;)
ALSO

arrows are one bar late :

Re: Ehlers Indicators for MT4

Posted: Tue Dec 10, 2024 7:16 am
by ujtrader
Cagliostro,

What I’ve figured out about repainting indicators is that they start their main loop like this:
a) for (i = 0; i <= limit; i++)

Non-repainting indicators, on the other hand, start like this:
b) for (I = limit; I >= 0; I--)

If your main loop is still starting like (a) instead of (b), then it’s definitely going to repaint. Can you confirm?

I’m using just the filter line instead of the histogram for my trading decisions, and it’s working fine so far.

Re: Ehlers Indicators for MT4

Posted: Tue Dec 10, 2024 7:38 am
by Cagliostro
ujtrader wrote: Tue Dec 10, 2024 7:16 am Cagliostro,

What I’ve figured out about repainting indicators is that they start their main loop like this:
a) for (i = 0; i <= limit; i++)

Non-repainting indicators, on the other hand, start like this:
b) for (I = limit; I >= 0; I--)

If your main loop is still starting like (a) instead of (b), then it’s definitely going to repaint. Can you confirm?

I’m using just the filter line instead of the histogram for my trading decisions, and it’s working fine so far.
Yes, confirm that. It uses a reverse loop, processing bars from the newest to the oldest to ensure that only completed bars are used for indicator calculations, thereby preventing repainting.