APIBridge Nifty Options Algo StrategyUsing Pinescript, we will use charts of Cash/Future to trade in Options. Note this strategy works well with even the free version of TradingView.
The Relative Strength Index ( RSI ). Is a momentum oscillator that measures the speed and change of price movements. The RSI oscillates between zero and 100. Increasing RSI shows increasing bullish momentum. Decreasing RSI shows increasing bearish momentum. We take RSI upper bound as 80 to indicate bullish momentum and RSI lower bound as 20 to indicate bearish momentum.
We use the above premise to create options buy-only strategy which trades in ATM strikes by default. This strategy requires very less margin (Minimum Rs . 15000).
Since this strategy uses underlying data (cash/future) to place trades in Options, please ignore the backtest of this strategy given by TradingView. TradingView does not provide options data but this strategy bypasses it.
Strategy Premise
The Relative Strength Index (RSI) is a momentum oscillator that measures the speed and change of price movements. The RSI oscillates between zero and 100. Increasing RSI shows increasing bullish momentum. Decreasing RSI shows increasing bearish momentum. We take RSI upper bound as 80 to indicate bullish momentum and RSI lower bound as 20 to indicate bearish momentum.
We use the above premise to create options buy-only strategy which trades in ATM strikes by default. This strategy requires very less margin (Rs. 15000 should be sufficient).
NSE Options Algo Strategy Logic
Long Entry: When RSI goes above 80, send LE in an auto-calculated option strike Call. When RSI goes below 20, send LE in auto-calculated option strike Put.
Long Exit: When we hit Stop loss or Target. In case SL/TGT does not hit and reverse RSI goes above 80 send Long Exit in auto-calculated option. Put as per last trade; RSI goes below 20, send LX in auto-calculated option call as per last trade.
For Long and Short entry the order is fired in the option buying side with auto strike price selection.
Option Strategy Parameters for TraingView Charts
RSI Length(Mandatory): Number of bars used to calculated RSI.
Upper Band(Mandatory): To specify upper band of RSI.
Lower Band(Mandatory): For specifying lower band of RSI.
Use reversal from Upper Band (Optional): This will enable short entry when RSI is falling below 80 from upper band. Recommended to keep unchecked initially.
Use reversal from Lower Band (Optional): This will enable long entry when RSI is raising above 20 from lower band. Recommended to keep unchecked initially.
Quantity: We use this specify the trade quantity (for Nifty min 75)
Custom Stop Loss in Points: Movement in chart price against the momentum which will trigger exit in options positions
Custom Target in Points: Movement in chart price against the momentum which will trigger exit in options positions
Base symbol: This is the base instrument symbol like NIFTY or BANK NIFTY.
Strike distance from ATM: Our default strike selection is considered as first ATM option (with nearest distance, only 100s are considered ). This strike distance allows to calculate ATM options which are at fixed distance.
Expiry: Expiry of option. Weekly and monthly both expiry are allowed.
Instrument: For index instrument will be OPTIDX, for stock instrument will be OPTSTK
Strategy Tag: The Strategy of Nifty options configured in Api bridge.
Setting Up Alert
Before setting up the alert make sure that you have selected desired script, time frame, strategy settings, and APIbridge configuration. Click in settings add alert and paste {{strategy.order.comment}} in message box.
Important: Do not change any settings during live trading. It may break the sequence of exit for the correct call/put.
Nseindia
HigherHigh LowerLow RATALGOHi Traders,
This is Trend following strategy.
This strategy calculates the higher high or lower low of a look back period. If the previous high or low is breached, a signal to enter market is given.
This strategy works well with regular candles and line charts if you find the right settings and chart time frame.
Give it a try with your settings & post your feedback and suggestion if any for improvement.
I had automate this strategy with broker using Trading view Alert feature to get some live results on NSE:Banknifty1!
IndusInd Bank Trading Tool-1Thanks for the tremendous response I got for the Nifty-50 trading tool.
It is non-repainting indicator and uses @version=4.
This is trading tool for IndusInd Bank which is traded on National Stock Exchange (India).
The results will be very different depending upon time-frame and date range of your choice.
The strategy works best on 10 minutes timeframe. The default trading quantity is 2. I have added functionality for part profit booking.
The aim of this indicator is not to predict the market, but ride the market with its ebbs and flows. Because predicting the market is always futile. This indicator maximizes the probability of trades depending on historical prices. i.e. all the technical indicator does the same.
This is a premium indicator so send me a private message in order to access this script.
Thanks © allanster for script "How To Set Backtest Range" for Date Range functionality and ©TheYangGuizi.
Disclaimer: This script/strategy is for educational and information purpose only. The author of this script/strategy will not accept any liability for loss or damage as a result of reliance on the information contained in the charts and buy/sell signals. Please be fully informed regarding the risks and costs associated with trading the financial markets.
NIFTY-50 on 10 min TimeFrame by Aditya
I have developed this strategy for NIFTY-50 Index on which is traded National Stock of Exchange(India). It is non-repainting indicator and uses @version=4
This script uses hourly and daily price data.
The results will be very different depending on the chart and time-frame of your choice and date range of your choice.
The default contract quantity is set to 2 .You can adjust as per your risk management.
I have found that taking partial profit (1 contract) and continuing the with remaining (1 contract) keeps you in trade until next trend reversal.
It has following usage setting:
1. Enable/Disable take partial profit.
2. Partial profit points.(45 points gives better results)
3. No. of contracts for partial profit booking.
4. Date Range (From and To) to check for different date range.
4. Enable/Disable Bar Color.
5. Enable/Disable Background Color.
Thanks © allanster for script"How To Set Backtest Range" for Date Range functionality .
I have tested this indicator on 10 minutes time-frame on National Stock of Exchange(India) which gives good results and the time period is almost 1 year
from 21/01/2019 to 14/02/2020.
Points=5632.
No. of trades=202
Profit Factor=1.9
Sharpe Ratio=0.626
The NIFTY-50 contract size is 75.
This strategy gives better results on Index as this is optimized for Indexes. You can always try on other instruments or you can private message me.
Use proper risk management.
This is a premium indicator so send me a private message in order to access this script. This script is for information and educational purpose.
Sathya: Short the highShort the High
This script has been developed as a professional service and is published only for customer verification/acceptance.
If you are interested in development services, either PM me or visit the Backtest-Rookies website (.com)
Summary
This strategy will attempt to take a short position within a time window only after X consecutive up days. Once X consecutive up days have been detected, two windows will open up. The first window tracks the high of the day. The second window will attempt to short the high of the day if price retests it.
Features
Tracking of consecutive up days using intra-day data
Opening a trade window when consecutive up days are detected
Tracking the high of a sub-session (user definable)
Shorting the high during a second sub-session (user definable)
Stop losses and take profits
End of sub-session close out option.
Buffer range from high of the day. So price does not need to retouch the high but can come with x rupees.
Background coloring of sub-sessions so it is easy to track trades