NSE Options Automated Strategy For TradingView - MyCoder (2024)

While trading in Options pine script can be used on charts of Nifty Cash/Future for applying your NSE options Algo Strategy in TradingView. Note this strategy works good with even free version of TradingView.

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 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 do 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 option buying side with auto strike price selection.

TradingView Settings

Open the desired chart in trading view with the normal candlestick. Click on Indicators-> public library and search for “APIBridge Nifty Options Algo Strategy” Or click here to select the strategy directly. Apply it to the chart.

NSE Options Automated Strategy For TradingView - MyCoder (1)

Option Strategy Parameters for TraingView Charts

  1. RSI Length(Mandatory): Number of bars used to calculated RSI.
  2. Upper Band(Mandatory): To specify upper band of RSI.
  3. Lower Band(Mandatory): For specifying lower band of RSI.
  4. 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.
  5. Use reversal from Lower Band (Optional): This will enable long entry when RSI is raising above20 from lower band. Recommended to keep unchecked initially.
  6. Quantity: We use this specify the trade quantity (for Nifty min 75)
  7. Custom Stop Loss in Points: Movement in chart price against the momentum which will trigger exit in options positions
  8. Custom Target in Points: Movement in chart price against the momentum which will trigger exit in options positions
  9. Base symbol: This is the base instrument symbol like NIFTY or BANK NIFTY.
  10. 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.
  11. Expiry: Expiry of option. Weekly and monthly both expiry are allowed.
  12. Instrument: For index instrument will be OPTIDX, for stock instrument will be OPTSTK
  13. Strategy Tag: The Strategy of Nifty options configured in Api bridge.

Setting Up Alert

Before setting up 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.

NOTE: The pinescript works both with webhook alerts (TV Pro plan) and normal popup alerts (TV free plan).

NSE Options Automated Strategy For TradingView - MyCoder (2)

APIBridge Settings – New Users

This is an advanced strategy. In conclusion you are first requested to complete TradingView Jump Start Setup. Make sure you use the extension v4.1 for this strategy.

We advised to add all the option symbols in Apibridge before setting alerts, to avoid order rejections. In addition make sure you use same expiry, and strategy tag as given in trading view. Since we send quantity in alerts there would be no need to specify quantity in APIBridge Symbol Settings.

NSE Options Automated Strategy For TradingView - MyCoder (3)

APIBridge Settings – Advanced Users

You can completely bypass the symbol settings using config file edit as given on the bottom of this page. However the pine script code uses optimal alerts which do not require any symbol settings.

Sample Trades

See sample trades below with RSI on 1-minute chart.

The first entry for day is taken at 9:35:02 and second at 9:45:01. As RSI swings to other extreme as a result previous option position was closed and new position was created.

Note : All the trades show price as 0, because market orders are used.

In APIBridge paper trading mode, you will not be able to see correct PnL because underlying instrument is different from trading instrument. However, in live trading you will see actual option prices in trades.

NSE Options Automated Strategy For TradingView - MyCoder (4)

Pine script Coding Guide

In extension v4.1 and webhooks, you can use full power of APIBridge signals as per given formatherein Example 7. To calculate option strike, use in alert SYMBOL:NIFTY|29 October 2020|11100|CE.

NSE Options Automated Strategy For TradingView - MyCoder (2024)

FAQs

Can you automate TradingView strategy? ›

Automating the Execution: Once your strategy is ready and tested, you can automate it. Optimus Flow's seamless integration with TradingView means you can base your automated trades on the analysis and signals generated from TradingView charts.

What is the accurate indicator for option trading TradingView? ›

The CARNAC Elasticity Indicator (EI) is a technical analysis tool designed for traders and investors using TradingView. It calculates the percentage deviation of the current price from an Exponential Moving Average (EMA) and helps traders identify potential overbought and oversold conditions in a financial instrument.

What is the best strategy for option trading? ›

5 options trading strategies for beginners
  1. Long call. In this option trading strategy, the trader buys a call — referred to as “going long” a call — and expects the stock price to exceed the strike price by expiration. ...
  2. Covered call. ...
  3. Long put. ...
  4. Short put. ...
  5. Married put.
Mar 28, 2024

Does TradingView have a strategy tester? ›

How can I analyze strategy results? When you add a strategy to the chart, additional information will appear in the Strategy Tester tab and can show you a report of your strategies results.

Can you automate option trading? ›

1. Automation, Speed and Efficiency: Algorithmic trading involves using computer algorithms to systematically execute trades automatically based on predefined criteria. This automation can be especially beneficial in options trading, where timing and speed are crucial.

How to automate trades on TradingView for free? ›

How to automate TradingView scripts?
  1. Register an account.
  2. Connect you exchange account (API)
  3. Create new bot and configure the settings.
  4. Link your WunderTrading bot with a TradingView alert. The automation process will depend on the type of the trading script.
  5. Start trading with TradingView.

What is the most consistently profitable option strategy? ›

The most successful options strategy for consistent income generation is the covered call strategy. An investor sells call options against shares of a stock already owned in their portfolio with covered calls.

What is the safest option strategy? ›

The safest option strategy is one that involves limited risk, such as buying protective puts or employing conservative covered call writing. Selling cash-secured puts stands as the most secure strategy in options trading, offering a clear risk profile and prospects for income while keeping overall risk to a minimum.

Which option strategy is guaranteed profit? ›

So Intraday Short Straddle strategy with Bank Nifty weekly option on expiry day is a profitable strategy. Proven with historical data.

What is the most powerful indicator in TradingView? ›

Below, we will explore the top 10 best Indicators used among traders.
  1. 1 - Moving Average (MA) ...
  2. 2 - Relative Strength Index (RSI) ...
  3. 3 - Moving Average Convergence Divergence (MACD) ...
  4. 4 - Bollinger Bands. ...
  5. 5 - Volume. ...
  6. 6 - Stochastic Oscillator. ...
  7. 7 - Fibonacci Retracement. ...
  8. 8 - Average True Range (ATR)
Mar 12, 2024

Can professional traders use TradingView? ›

We've introduced three most comprehensive packages (Expert, Elite and Ultimate) designed specifically for professional (commercial) users.

How to build strategy on TradingView? ›

Tradingview Strategies

To create a strategy in TradingView, users must first choose a chart and apply any desired indicators or studies. They can then use PineScript to define the conditions under which they want to buy or sell, as well as set any other parameters such as stop-loss and take-profit levels.

How can I automate my trading strategy? ›

You need a strategy to automate the trading system. Consider the following steps:
  1. Formulate rules and conditions for order placement and execution.
  2. Decide on a platform based on the available feature list (or launch your own.)
  3. Apply your rules using platform functionality.
  4. Backtest your system. ...
  5. Start real-life trades.
Mar 15, 2023

Does TradingView have automatic trendlines? ›

The "Automatic Trend Lines & S/R Zones Pro " script performs advanced financial chart analysis by algorithmically identifying support/resistance zones and generating trend lines It analyzes historical data, applying calculations like the highest and lowest price points over specified periods (defined by 'PeakOverBar' ...

How do you program a strategy in TradingView? ›

Applying a strategy to a chart

You can use a built-in strategy from the Indicators & Strategies dialog box, or write your own. Notice! When applying strategies to non-standard types of charts (Heikin Ashi, Renko, etc.), it is very important to realize that results will not reflect real market conditions.

Is algo trading possible in TradingView? ›

FAQs – Tradingview Algo trading. Can I do automatic trading with any indicator in TradingView? Yes, you can do using alerts (without any coding). See video and instructions here.

Top Articles
How Much Is the Target Credit Card Minimum Payment?
What is a Portfolio: Meaning, Types, Components, and Factors
Is Paige Vanzant Related To Ronnie Van Zant
DPhil Research - List of thesis titles
Mountain Dew Bennington Pontoon
Bellinghamcraigslist
Owatc Canvas
Lowes 385
Unraveling The Mystery: Does Breckie Hill Have A Boyfriend?
2013 Chevy Cruze Coolant Hose Diagram
Tiger Island Hunting Club
Hair Love Salon Bradley Beach
Learn2Serve Tabc Answers
Scenes from Paradise: Where to Visit Filming Locations Around the World - Paradise
Samantha Lyne Wikipedia
Swgoh Blind Characters
Never Give Up Quotes to Keep You Going
Chaos Space Marines Codex 9Th Edition Pdf
Military life insurance and survivor benefits | USAGov
Puretalkusa.com/Amac
Yisd Home Access Center
What Time Does Walmart Auto Center Open
Hampton University Ministers Conference Registration
Craigslistodessa
Dark Entreaty Ffxiv
Boise Craigslist Cars And Trucks - By Owner
Snohomish Hairmasters
The Collective - Upscale Downtown Milwaukee Hair Salon
Spirited Showtimes Near Marcus Twin Creek Cinema
Desales Field Hockey Schedule
Flixtor Nu Not Working
Matlab Kruskal Wallis
Poster & 1600 Autocollants créatifs | Activité facile et ludique | Poppik Stickers
Marine Forecast Sandy Hook To Manasquan Inlet
Barrage Enhancement Lost Ark
Wednesday Morning Gifs
The Land Book 9 Release Date 2023
Giantess Feet Deviantart
Raising Canes Franchise Cost
ENDOCRINOLOGY-PSR in Lewes, DE for Beebe Healthcare
Metro Pcs Forest City Iowa
Pro-Ject’s T2 Super Phono Turntable Is a Super Performer, and It’s a Super Bargain Too
13 Fun & Best Things to Do in Hurricane, Utah
Foxxequeen
Toomics - Die unendliche Welt der Comics online
Embry Riddle Prescott Academic Calendar
Tlc Africa Deaths 2021
Craigslist Pet Phoenix
Mountainstar Mychart Login
City Of Irving Tx Jail In-Custody List
Buildapc Deals
Psalm 46 New International Version
Latest Posts
Article information

Author: Zonia Mosciski DO

Last Updated:

Views: 6311

Rating: 4 / 5 (51 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Zonia Mosciski DO

Birthday: 1996-05-16

Address: Suite 228 919 Deana Ford, Lake Meridithberg, NE 60017-4257

Phone: +2613987384138

Job: Chief Retail Officer

Hobby: Tai chi, Dowsing, Poi, Letterboxing, Watching movies, Video gaming, Singing

Introduction: My name is Zonia Mosciski DO, I am a enchanting, joyous, lovely, successful, hilarious, tender, outstanding person who loves writing and wants to share my knowledge and understanding with you.