algoji

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.

Regards,
Algoji Enterprises Private Limited
APIBridge™
受保護腳本
該腳本是閉源發佈的,您可以自由使用。您可以把它加入到常用以在圖表上使用它。您無法查看或修改其原始碼。
免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?