Re: Supertrend indicators for MT4
Posted: Tue Oct 28, 2025 10:02 am
ROI wrote: Wed Oct 22, 2025 5:16 pm Me: Would it be possible with your knowledge to code an even better indicator than macd 9-21-6?
Robot: Custom “Super-Trend-MACD” – indicator that usually outperforms the traditional 9-21-6-MACD setup on the M5-AUD/JPY chart
Why might a traditional MACD setup fall short?
Fixed EMA period lengths do not adapt to changing market volatility.
The histogram only shows the difference between the MACD line and the signal line, and does not take into account the actual direction of prices (trend direction).
Noise on a 5-minute timeframe can cause many false crosses if there is insufficient filtering.
Super-Trend-MACD – concept
Two-level filtering:
First level – Adaptive Exponential Moving Average (AE-EMA) using Kaufman’s Adaptive Moving Average (KAMA) logic, which accelerates when volatility is high and slows down when the market is calm.
The second level – the traditional MACD structure (fast EMA – slow EMA) is calculated on top of the AE EMA, so the MACD line is already “processed” from noise.
Super-Trend filter:
A SuperTrend line based on Average True Range (ATR) is calculated (like TradingView SuperTrend). This line acts as a confirmation of the trend direction: when prices are above the SuperTrend line, the trend is considered to be up, below – down.
Signal generation:
This combination of three components (adaptive EMA + MACD + SuperTrend) reduces false signals, improves trend recognition and keeps the reaction speed in the short term.
- Bullish – the MACD line crosses the signal line from below upwards AND the price is above the SuperTrend line AND the histogram is increasing.
- Bearish – the MACD line crosses the signal line from above downwards AND the price is below the SuperTrend line AND the histogram is decreasing.
Type of posts I live for and this site needs quality requests posts like this and an awesome person like Kvak who takes the lead and makes it happen.. beautiful in my eyes folks thanking you both ROI and Kvak - a great new trend trading indicator for forex!kvak wrote: Tue Oct 28, 2025 9:43 am SuperTrend MACD
Kind of super trend idea from this post: Why might a traditional MACD setup fall short?
Indicator plot super trend and MaCD.
Hello, thank you for your feedback.boytoy wrote: Tue Oct 28, 2025 10:32 pm Type of posts I live for and this site needs quality requests posts like this and an awesome person like Kvak who takes the lead and makes it happen.. beautiful in my eyes folks thanking you both ROI and Kvak - a great new trend trading indicator for forex!
Last thing is feedback from me for Kvak: could you start adding the ability of background color change for the on chart buttons again? You use to include this but dont anymore how come?
Crashed on M1 chart and M5 TF, help me to fix it please!
Hello, thanks for testing, tried it with default settings but M1 chart using M5 time frame and got this. What settings are you using?HappyLight wrote: Wed Oct 29, 2025 7:21 pm Anus-Crasher-m1.png
Crashed on M1 chart and M5 TF, help me to fix it please!
Very intresting concept and work Thank you for your hard work sirkvak wrote: Wed Oct 29, 2025 7:18 am Hello, thank you for your feedback.
Sometimes I need deleted some menus for MTF options and it is look then I use template code without this two menus.
Here is new version with this menus and also arrows and menu for arrows/alerts logic.
My settings:mrtools wrote: Wed Oct 29, 2025 11:57 pm Hello, thanks for testing, tried it with default settings but M1 chart using M5 time frame and got this. What settings are you using?
ps) just noticed forgot to add code for the automatic candle width, reposted at the post you quoted.
Hello, think I found my mistake, actually more than one, hopefully I got them this time. Please redownload from the original post you quoted from.HappyLight wrote: Thu Oct 30, 2025 4:41 am My settings:
I tried with the same setting on M5 chart and H1 TF that the same result,
(Some times it crash after 5-10 seconds, some times after a while)
but it works well with "Current TF".