Re: Supertrend indicators for MT4

612
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:
  • 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.
This combination of three components (adaptive EMA + MACD + SuperTrend) reduces false signals, improves trend recognition and keeps the reaction speed in the short term.
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.
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?
These users thanked the author boytoy for the post (total 2):
Abdi, Jimmy

Re: Supertrend indicators for MT4

613
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?
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.
These users thanked the author kvak for the post (total 3):
thomdel, Krunal Gajjar, boytoy


Re: Supertrend indicators for MT4

617
kvak 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.
Very intresting concept and work Thank you for your hard work sir
These users thanked the author MicroPip for the post:
kvak

Re: Supertrend indicators for MT4

618
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.
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".
These users thanked the author HappyLight for the post:
mrtools

Re: Supertrend indicators for MT4

619
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".
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.

ps1) getting this on M1 Gold using your settings
ps2) Again Thanks for bringing this to my attention.
These users thanked the author mrtools for the post (total 2):
HappyLight, Abdi

DownloadRe: Supertrend indicators for MT4

620
Dear Masters, this indicator was modified by one of you years ago. I would like to ask whether instant reverse alerts are possible with this indicator. Here is what I mean: I set the indicator to the M1 timeframe, but I monitor the chart on M15. Will every alert that should occur on M1 appear instantly on the M15 chart without waiting for the M15 candle to close, and without needing the alert to match the exact minute of the M15 candle? For example, if an alert is triggered on M1 at 16:37, will it be reflected immediately on the M15 chart?