Optimized Trend Tracker (OTT) is a trend-following overlay that draws a smoothed support line and a trailing-stop line (OTT) directly on the price chart. When the support line crosses the OTT line, the indicator marks a Buy or Sell, and the area between the lines is shaded green in an uptrend and red in a downtrend.

About this version Indie port for TakeProfit. The logic follows the original script: moving averages, trailing stop, direction flip, OTT shifted by two bars and the signal rules. Values were compared with the TradingView original on the same candles and matched. Differences from the original: the TSF moving-average option is not included, and the two long/short highlighter fills are merged into one color-switching fill. TradingView alertcondition() is replaced by platform alerts.
Credits Original indicator: Optimized Trend Tracker by KivancOzbilgic (created by Anıl Özekşi), TradingView. © KivancOzbilgic. Original licensed under the Mozilla Public License 2.0 (https://mozilla.org/MPL/2.0/). This is an independent Indie port of the published open-source script.
Risk warning This indicator is a technical analysis tool for educational and informational purposes, not financial advice or a trading recommendation. Signals are calculated from past prices, can lag, repeat and fail in ranges and during sharp moves, and do not guarantee future results. Trading financial instruments, especially with leverage, involves a high risk of loss. Test any settings on history and a demo account first, and never risk money you cannot afford to lose.
Comments