Community scripts built for Indian markets. Add any of them to your chart in one click.
Trending Scripts
SuperTrend Strategy
A simple trend-following strategy built on the SuperTrend line. It goes long when SuperTrend flips up and short when it flips down, and each flip also closes the opposite trade. Works best on trending markets and daily or hourly charts.
How to use: add it to a chart and open Backtest. Inputs are the ATR length (10) and multiplier (3.0), a switch to allow or block shorts, and an optional intraday square-off time for intraday testing. The green and red lines on the chart show the current trend.
Backtest note: on RELIANCE daily it returned +2.73% over 139 trades (profit factor 1.04, max drawdown 14.5%) with 0.03% commission and 1 tick slippage. Trend systems give back some profit in sideways markets, and past results do not guarantee future returns, so test it on your own symbols.
A trend-following strategy built on AlphaTrend, a line that follows an ATR-based band and switches between support and resistance depending on money flow (MFI). It goes long when AlphaTrend crosses above its own line from two bars back 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 ATR multiplier (1.0), the common period (14) used for both ATR and MFI, a switch to allow or block shorts, and an optional intraday square-off time for intraday testing. A higher multiplier gives a wider, slower line with fewer trades. It suits trending stocks and indexes and can whipsaw in sideways markets.
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.