Rajandran R Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in)

Lin Supertrend – Amibroker AFL Code

36 sec read

Sometime back we introduced Lin-Supertrend Live charts for 5min and 10min timeframe. Lin Supertrend is the responsive version of Supertrend V4.0 and the price component in the ATR channel is smoothed with linear regression to make the channel responsive to price movements thereby having tighter trailing stops and responsive change in signals as well.

Supertrend

Trading Rules

Buy – if suptrend shows a buy signal and candle above 200 EMA (Green Arrow)
Exit Buy – if supertrend shows a exit signal (Yellow Star)

Short – if suptrend shows a sell signal and candle below 200 EMA (Red Arrow)
Exit Short – if supertrend shows a exit signal (Yellow Star)

[wp_ad_camp_5]

Intial Backtester Settings

Initial SettingsValue
Initial Capital10,00,000
Position Size300 shares per trade
Trading ComissionsRs250/- per leg
Margin Required10%
Backtesting Period1st Aug 2010 - 27th May 2016
Rollover Charges CalculatedNo

Recommended Amibroker Version
5.8version or above.

Comparison of Lin Supertrend Vs Other Supertrend Version
Lin Supertrend Vs Other Supertrend Systems

Recorded Webinar on Comparison of Supertrend Performance is available to all TradeZilla Participants

Lin Supertrend Equity Curve – 5min timeframe

Supertrend 5min Equity Curve

Lin Supertrend Equity Curve – 10min timeframe

Supertrend Equity 10min

Lin Supertrend Amibroker AFL Code
https://gist.github.com/75fc7236d4f2c4cf58388797cb9d1495

Download Lin-Supertrend Amibroker AFL Code

Rajandran R Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in)

Generating Real-Time Equity Curve Using Amibroker and Enhancing Backtesting…

Amibroker, a popular trading system development platform, offers robust tools for creating and analyzing trading strategies. Complementing it with the Quantstats Python library, traders...
Rajandran R
2 min read

Things that Amibroker Can Do Which Tradingview Cannot

When it comes to trading and technical analysis, having the right tools at your disposal can make all the difference. Two popular software platforms,...
Rajandran R
1 min read

AlgoStudio – Trading Tools for Active Traders Launched

In the ever-evolving world of finance and trading, staying ahead of the curve is crucial for success. This is where AlgoStudio steps in. AlgoStudio...
Rajandran R
1 min read

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More