Here is the first prototype from Marketcalls which demonstrates multi-timeframe based trading system which compares two timeframes (5min and hourly in this case) and takes a trade decision based on both the timeframes. To demonstrate with simple example we used supertrend on 5min timeframe and Hull RSI on the hourly timeframe to filter unwanted trading signals.
Trading Logic
Go long if Hourly HRSI is trending upwards and Supertrend turns to buy mode on 5min charts
Exit long if Supertrend turns to sell mode (i.e Trailing Stop hits on closing basis) on 5min charts
Go Short if Hourly HRSI is trending downwards and Supertrend turns to short mode on 5min charts
Exit Short if Supertrend turns to sell mode (i.e Training Stop hits on closing basis) on 5min charts
Bank Nifty Futures showing Supertrend Along with Hourly HRSI indicator as a filter
![]()
Download Supertrend with Multitimeframe Filter – Amibroker AFL Code
Here is the backtested results for Bank Nifty Futures (5min charts) Since SEP 2010 onwards with Brokerage + Other Transaction costs added as 0.02%
Max open position is taken based on 15% of the available capital.
Equity Curve
![]()
Drawdown
![]()
Download the Backtest Result
Multi Supertrend V3.0-20170224141735498
Related Readings and Observations
Supertrend V5.0 – Amibroker AFL Code In the new version of Supertrend thought of removing ATR factor to make the trading strategy independent of volatility factor. It is a simple long/short strategy fits for trading lower […]
Supertrend V4.0 – Amibroker AFL Code Compared to Supertrend 3.0 with the new version two interesting features has been added. One is a simple EMA filter rule is added to Buy and Short Conditions and changes in the dashboard […]
ATR Volatility Long Only Trading System Yet another ATR Volatility based Long only Trading System. ATR Volatility system a mechanical strategy for higher time-frames Written by Tudor Marcelin - Art Invest. Just modified the […]
Supertrend Intraday Trading Strategy for High Volatile Scrips Supertrend Intraday Trading strategy will start trade the Supertrend only between 9:15a.m and 3:00:p.m and close any open position by 3:25p.m. The following code defines the time based rules.
Didi Index Long only Trading System Didi Index is a positional long only trading system constructed based on three exponential moving averages inspired from mql4 code Didi Index Indicator. Indicator developed by Brazilian […]
Internal Bar Strength – Mean Reversion Trading AFL code Here is a simple mean reversion system adapted from IBS reversion edge with QuantShare. And our IBS mean reversion strategy is a slight variation of the Internal Bar Strength by taking a […]
The post Supertrend Multi Timeframe Based Trading System – Amibroker AFL Code appeared first on Marketcalls.