Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, 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. Building Algo Platforms, 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 Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, 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. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

Line Trading – OpenAlgo Automation Module for Amibroker Users

The line Trading Automation tool is designed for Manual traders who want to perform level-based trade execution faster and also bring some advanced trade...
Rajandran R
55 sec read

Mini Certification Course on Algorithmic Trading

Welcome to the Mini Certification on Algorithmic Trading using Amibroker and OpenAlgo! This comprehensive 4-part series is designed to equip you with the knowledge...
Rajandran R
1 min read

Pivot Reversal Strategy – Tradingview Pinescript to Amibroker AFL…

Pivot Reversal Strategy is a popular in-built strategy in Tradingview Platform. Here I had attempted to convert the pinescript v5 to Amibroker AFL Code....
Rajandran R
3 min read

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