Supertrend Line

Hi Everyone, I have a super trend indicator. I would like if anyone can help put alert to it when it changes color from red to green and from green to red
 

Attachments

I have a question regarding the supertrend indicator that can be downloaded. We are using in Tradingview the The Supertrend indicator that was created by Olivier Seban. Do you know this indicator ? How does it compare to the one that you have provided for MT4 and MT5 ? The one in Tradingview has ATR length and Factor as parameter. Any idea what Factor is and if this is something that is 'missing' in the one that you provide ?
 
I have a question regarding the supertrend indicator that can be downloaded. We are using in Tradingview the The Supertrend indicator that was created by Olivier Seban. Do you know this indicator ? How does it compare to the one that you have provided for MT4 and MT5 ? The one in Tradingview has ATR length and Factor as parameter. Any idea what Factor is and if this is something that is 'missing' in the one that you provide ?
//-------

might need to see the source code for the exact trading view supertrend indicator your using......

perhaps someone has changed name 'multiplier' to 'factor'...... that's done quite often.......

only way to compare would be to have both platforms open with supertrend on same symbol......

it's common for indicators on various platforms to differ slightly......

even when both are coded correctly......h


mq5 is using median price

MQL5:
        double medianPrice = (High[i] + Low[i]) / 2;
        up[i] = medianPrice + ATRMultiplier * atr;
        dn[i] = medianPrice - ATRMultiplier * atr;
//------


trading view is using close price

MQL5:
atr2 = sma(tr, Periods)
atr= changeATR ? atr(Periods) : atr2
up=src-(Multiplier*atr)
up1 = nz(up[1],up)
up := close[1] > up1 ? max(up,up1) : up
dn=src+(Multiplier*atr)
dn1 = nz(dn[1], dn)
dn := close[1] < dn1 ? min(dn, dn1) : dn

//----

Screenshot 2025-08-12 150324.png
 
Thanks for your clarification on this. I understand from your answers that you've been able to compare the codes. Any chance that we'd find or get the code that is used for the TV ( Olivier Seban version) as a FXDreema version.
 
Thanks for your clarification on this. I understand from your answers that you've been able to compare the codes. Any chance that we'd find or get the code that is used for the TV ( Olivier Seban version) as a FXDreema version.
//-----

unless i'm mistaken, fxdrema is pulling indicators from your local mq4 or mq5 metatrader platform.......

so just adding enivids supertrend version to your metatrader platform would allow you to use it in fxdreema......

what you create using fxdrema can/will be installed in your metatrader experts folder.....

anyone can change the name or modify the code of a indicator like supertrend..... so the only way to compare the code is to not only know the exact name but exact location of trading views version in question...... and that code needs to to be open source.....

as example as to why we need the source code for the version your after,

the original supertrend was written by jason robinsonn 20 years ago in mq4 ..... he originally used the cci..... 2004/2005.......

couple years later he rewrote the supertrend to use the median price...... 2007/2008

few years after that, seban's version was published.... his uses the close price..... 2009.....

enivid's mq5 version is probably perfect......h