Discuss Supertrend Line indicator (trend direction based on ATR) in this thread. You can ask any questions about this indicator here.
Thanks for the reply,Here is SupertTrend multi-timeframe indicator with alerts:
https://www.earnforex.com/indicators/supertrend-multi-timeframe/
//-------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 ?
double medianPrice = (High[i] + Low[i]) / 2; up[i] = medianPrice + ATRMultiplier * atr; dn[i] = medianPrice - ATRMultiplier * atr;
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
//-----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.