PROTECTED SOURCE SCRIPT
APIBridge RSI System

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.
Strategy Logic
Long Entry: When RSI goes above 80, trigger LE with Buy Bracket Order. SL and TGT will be based on user input via parameters.
Short Entry: When RSI goes below 20, trigger Sell Bracket Order. SL and TGT based on user input via parameters.
There is no need for Long Exit and Short Exit for Bracket Orders. In case you want to modify BO manually, you can do from broker’s terminal. See here for more details for BO/CO based trading.
MA Cross Parameters for TradingView Charts
1.RSI Length: Length or Period for RSI calculation
2.Upper Band: Upper band or upper level of Rsi value
3.Lower Band: Lower band or lower level of Rsi value
4.Use Reversals from bands: Take entry when rsi reverses from the lower or upper band
5.Backtesting : Use this to backtest the strategy between Starting and Ending Date and time , it can also be used to set trades in future time
6.Alert_Message : Need to copy while creating alert into Message Box
7.Trade Setup : Intraday / Positional (Selecct accordingly)
8.Start Time Stop Time (Session 1) : Intraday / Positional start time and end time of trade for session 1
9.End Session 1 : Define time to exit any existing position taken in session 1 so that exchange charges will not apply
10.Use Second Session : Check this to use second intraday session
11.Start Time Stop Time (Session 2) : Intraday / Positional start time and end time of trade for session 2
12.End Session 1 : Define time to exit any existing position taken in session 2 so that exchange charges will not apply
13.Use Target : check if you want to set required target if not cheque will not applicable
14.Use StopLoss : Cheque if you want to set stop loss if not cheque will not applicable
15.Trailling Stoploss : Cheque if you want to set trailing stop loss if not cheque will not applicable
16.Point Or Percentage For TG SL : Use Points or Percentage as per your choice
17.Target : Set as per the selection of (Point Or Percentage For TG SL)
18.Stop Loss : Set as per the selection of (Point Or Percentage For TG SL)
19.TSL_Type : Select as per your logic in %/ATR/Points
20.TSL_Input : Set in case you select %/Points in TSL_Type
21.ATR Length : Set as per your logic if you select ATR in the field of TSL_Type
22.ATR_Mult : Set as per your logic if you select ATR in the field of TSL_Type
23.Segment : Select segment of your logic EQ/FUTIDX/FUTSTK/OPTIDX/OPTSTK/FUTCUR/FUTCUM (Used in case of option / Futures )
24.Select Expiry Date : Select the expiry date of your trade as per the segment you selected (Used in case of option / Futures )
25.Select Expiry Month : Select the expiry Month of your trade as per the segment you selected (Used in case of option / Futures )
26.Year : Select the expiry Year of your trade as per the segment you selected (Used in case of option / Futures )
27.Quantity : Enter the quantity in which you want to trade (Used in case of option / Futures )
28.Product Type : Select MIS/Normal/ CNC as per your logic (Used in case of option / Futures )
29.Order Type : Select Market/Limit as per your logic (Used in case of option / Futures )
30.Strategy Tag : Enter the value in case you are using webhook / advance template in APIBridgeTM
31.Lotsize : Enter the lotsize as per your lotic and quentity selection (Used in case of option / Futures )
32.STEP (OTM/ATM/ ITM ) : Select OTM(+1)/ATM(0)/ ITM (-1) as per your logic works in case of options only
33.DIFFERENCE_BETWEEN 2 STRIKE : Select difference of 2 strikes you have used in APIBridge symbol setting list, like for Nifty 50 BankNifty 100
34.APIB Port : Set as per provided to you by Algoji in case of webhook / advance templet
The Segment full form is given below
EQ Equity
FUTIDX Future Index
FUTSTK Future Stock
OPTIDX Index Option
OPTSTK Stock Option
FUTCUR Futcur Currency
FUTCUM Future Commodity
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Regards,
Algoji Enterprises Private Limited
APIBridge™
Algoji Enterprises Private Limited
APIBridge™
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Regards,
Algoji Enterprises Private Limited
APIBridge™
Algoji Enterprises Private Limited
APIBridge™
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.