TradingCharts

What it does

A trend-following strategy built on an OTT-style trend line: a CMO-weighted moving average with a percent trailing line around it. It goes long when the moving average crosses above the trend line and short when it crosses below, and each flip closes the opposite trade.

How to use: add it to a chart and open Backtest. Inputs are the moving average length (2), the trailing percent (1.4), a switch to allow or block shorts, and an optional intraday square-off time for intraday testing. A smaller percent reacts faster but flips more often, and a larger one filters noise but enters later.

This is an OTT-style build from the published formula, so check it on your own symbols and timeframes before relying on it. Past results do not guarantee future returns.

How to use it

  • Open the charts and go to Indicators › My scripts › Shared with me (or search the Community library) and press Add to chart.
  • The code is protected by the author: the script runs on the chart with the source hidden.

Version history

  • v1 — 24 Nov, 08:17 am · compiler 0.3.69

#ott#trend-following#moving-average#swing#long-short