OPEN-SOURCE SCRIPT

Trend Strength Index Long Strategy

45
๐Ÿ“ˆ Trend Strength Index Long Strategy

This strategy combines the Trend Strength Index (TSI) with a Volume-Weighted Moving Average (VWMA) to identify high-probability long entries based on trend momentum and price confirmation.

  • ๐Ÿ“Š TSI Calculation: Measures correlation between price and time (bar index) over a user-defined period. Strong TSI values indicate trend momentum.
  • ๐Ÿ“ VWMA Filter: Confirms bullish bias when price is above the VWMA.
  • ๐Ÿš€ Entry Condition: Long position is triggered when TSI crosses above -0.65 and price is above VWMA.
  • ๐Ÿ”’ Exit Condition: Position is closed when TSI crosses above 0.65.
  • ๐ŸŽจ Visuals: Gradient fills highlight bullish and bearish zones. VWMA is plotted for trend context.

  • ๐Ÿงฎ TSI Length: Adjustable (default 14)
  • ๐Ÿ“ VWMA Length: Adjustable (default 55)
  • ๐Ÿ’ธ Commission: 0.1% per trade
  • ๐Ÿ“Š Position Size: 75% of equity
  • โš™๏ธ Slippage: 10 ticks


โœ… Best used in trending markets with steady momentum.
โš ๏ธ Avoid in choppy or range-bound conditions.

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.