PROTECTED SOURCE SCRIPT

APIBridge Advanced RSI + EMA

Using 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.



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.


apibridge rsi + ema options / futures / commodity algo strategy logic
Long Entry: When RSI crosses over oversold level and fast ema crosses over slow ema , send LE .
Long Exit: When price hit Stop loss or Target .If SL/ TGT is not hit and reverse signal is sent by strategy then exit the Long

Short Entry : When RSI crosses under overbought level and fast ema crosses under slow ema , send SE
Short Exit : When price hit Stop loss or Target. If SL/ TGT is not hit and reverse signal is sent by strategy then exit Short

TradingView Parameters


1. Start Date(Mandatory) : The strategy does not take trade before this date

2. End Date(Mandatory) : The strategy does not take trade after this trade

3.RSI Length(Mandatory): Number of bars used to calculated RSI .

4.Fast Ema Length(Mandatory): Length for fast ema

5.Slow Ema Length(Mandatory): Length for slow ema

6.Source for rsi and ema calculation(Mandatory): Source to use for rsi and ema like close , open , high , low , hl2 etc

7.Overbought(Mandatory): To specify upper band of RSI .

8.Oversold(Mandatory): For specifying lower band of RSI .

9.plot ema or rsi (Mandatory) : Due to difference in scales of rsi and ema , strategy can only plot one of both precisely (the strategy logic which is based on both esi and ema is unaffected by this choice)

10.Quantity: We use this to specify the trade quantity (for Nifty min 75)

11.Custom Stop Loss in Points: Movement in chart price against the momentum which will trigger exit in options positions

12.Custom Target in Points: Movement in chart price against the momentum which will trigger exit in options positions

13.Base symbol: This is the base instrument symbol like NIFTY or BANK NIFTY .

14.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.

15.Expiry: Expiry of option. Weekly and monthly both expiry are allowed.

16.Instrument: For index instrument will be OPTIDX, for stock instrument will be OPTSTK

17.Strategy Tag: The Strategy of Nifty options configured in Api bridge.
algojialgotradingapibridgeMoving AveragesRelative Strength Index (RSI)

Скрипт с защищённым кодом

Этот скрипт опубликован с закрытым исходным кодом, вы можете свободно им пользоваться. Можно добавить его в избранное и использовать на графике. Вы не можете просматривать или менять его исходный код.

Хотите использовать этот скрипт на графике?


Regards,
Algoji Enterprises Private Limited
APIBridge™
Мои профили:

Отказ от ответственности