theautotrading

BankNifty 5min Supertrend Based Strategy

theautotrading Mis à jour   
BankNifty 5min Supertrend Based Strategy, Intraday.

Work Best at 5mint chart on BankNifty.

The strategy is designed to trade using the Supertrend indicator with session-based rules, and risk management.It allows for customization through input variables and aims to provide a clear visual representation of the Supertrend by changing the color.

The script also includes input variables for the trading session and date range, which allows the trader to specify the time period in which they want the strategy to run. The session variable specifies the start and end times of the trading session, which in this case is set to the Indian trading session from 9:15 am to 3:10 pm.

The strategy starts by defining input variables such as the session time, start and end date for the backtesting, the length of the ATR, and the Supertrend factor. It also includes options for delay at session start and stop loss points and trail percentage.

The code then checks if the current time is within the specified session and date range. If it is, the Supertrend and its direction are calculated using the defined input variables. The strategy then waits for N numbers of candles (defined by the User) to form at the start of every session i.e. 09:15 AM before entering a trade.

The entry and exit conditions for long and short trades are defined based on the change in the Supertrend direction and the number of candles formed at the session start i.e. 09:15 AM. After that, it takes entry and exit for long and short trades on the change in the Supertrend direction. Stop-loss and trailing stop-loss are also defined based on the input variables.

Stop-loss(Defined by the user) is fixed points either below or above the Entry Price for Long and Short entries.

The Supertrend plot is displayed with changing colors depending on the direction. Finally, the strategy closes all trades at the end of the session if there are any open trades.

Overall, this strategy aims to trade with the Supertrend indicator using session-based rules and risk management.

However, as with any trading strategy, it is important to thoroughly test it before using it in live trading.
Notes de version:
BankNifty 5min Supertrend Based Strategy, Intraday.

Work Best at 5mint chart on BankNifty .

The strategy is designed to trade using the Supertrend indicator with session-based rules, and risk management. It allows for customization through input variables and aims to provide a clear visual representation of the Supertrend by changing the color.

The strategy is designed to trade using the Supertrend indicator with session-based rules, risk management, and changing the color.

The strategy starts by defining input variables such as the session time, start and end date for the backtesting, the length of the ATR, and the Supertrend factor. It also includes options for delay at session start and stop loss points and trail percentage.

The code then checks if the current time is within the specified session and date range. If it is, the Supertrend and its direction are calculated using the defined input variables. The strategy then waits for N numbers of candles(Defined by the user) to form at the start of every session before entering a trade.

The entry and exit conditions for long and short trades are defined based on the change in the Supertrend direction and the number of candles formed at the session start. Stop-loss and trailing stop-loss are also defined based on the input variables.

The Supertrend plot is displayed with changing colors depending on the direction. Finally, the strategy closes all trades at the end of the session if there are any open trades.

Overall, this strategy aims to trade with the Supertrend indicator using session-based rules and risk management.

However, as with any trading strategy, it is important to thoroughly test it before using it in live trading.
Notes de version:
You'll get a hint on how the strategy performed, at least in the past, although obviously there is no guarantee that it will make money in the future.
Notes de version:
Updates to this strategy
  • Stop-loss is improved (fixed Points)
    Added Target Profit/Points
    Added option to take ReEntry in the supertrend direction after hitting Sl/TG/TSl.

This strategy Shows good results in the futures.
Always Remember
the strategy performed, at least in the past, although obviously there is no guarantee that it will make money in the future.
Notes de version:
Always Future Test (Paper Trade) the new strategy
Notes de version:
apply to chart

Script open-source

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?