YaroslavG

TRIX Strategy[YaroslavG]

The TRIX indicator smooths price data and then looks at the daily (or whatever time frame is being used) percentage movement of that smoothed price data. This filters out much of the price noise that’s seen on the price chart. TRIX will rise on sustained moves higher in price, and will fall on sustained moves lower in price.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?
//@version=2
strategy("TRIX Strategy[YaroslavG]",overlay=false)
emas=input(14)
trix=((ema(ema(ema(close, emas), emas), emas)-ema(ema(ema(close, emas), emas), emas)[1]) / ema(ema(ema(close, emas), emas), emas)[1]) * 10000
plot(trix)
plot(0,color=black)
if (crossover(trix,0))
    strategy.entry("long", strategy.long)
if (crossunder(trix,0))
    strategy.entry("short", strategy.short)