Strategy Premise A Stochastic oscillator is a momentum indicator that compares a particular closing price of a security to a range of its prices over a certain period of time. The sensitivity of Stochastic to market movements is reducible by adjusting that time period or by taking a moving average of the result. Stochastic is used to generate overbought and oversold trading signals which consist of two lines:
one reflecting the actual value of the oscillator for each session. And other reflecting its three-day simple moving average.
Strategy Logic Long Entry: When Stochastic Oscillator Cross over Simple Moving Average, Send LE.
Long Exit: Either when SL or Target is hit. If SL/TGT is not hit and Stochastic Oscillator Cross Under Simple Moving Average, send LX and SE.
Short Entry: When Stochastic Oscillator Cross Under Simple Moving Average, Send SE.
Short Exit: Either when SL or Target is hit. If SL/TGT is not hit and Stochastic Oscillator Cross over Simple Moving Average, SX and LE.
Stochastic Oscillator Strategy Parameters for TradingView Charts
1.Stochastic Length :The default setting for the Stochastic Oscillator is 14 periods, which can be days, weeks, months or an intraday timeframe
2.D Line Length : The d line is the sma of k line , the default length for this is set to 3 periods , which can be days, weeks, months or an intraday timeframe
3..Upper Trigger Line: The stochastic oscillator is range-bound, meaning it is always between 0 and 100. readings over 80 are considered in the overbought range
4.Lower Trigger Line: The stochastic oscillator is range-bound, meaning it is always between 0 and 100. readings over 80 are considered in the overbought range readings under 20 are considered oversold.
5.Alert_Message : Need to copy while creating alert into Message Box
7.Start Time Stop Time (Session 1) : Intraday / Positional start time and end time of trade for session 1
8.End Session 1 : Define time to exit any existing position taken in session 1 so that exchange charges will not apply
9.Use Second Session : Check this to use second intraday session
10.Start Time Stop Time (Session 2) : Intraday / Positional start time and end time of trade for session 2
11.End Session 1 : Define time to exit any existing position taken in session 2 so that exchange charges will not apply
12.Use Target : check if you want to set required target if not cheque will not applicable
13.Use StopLoss : Cheque if you want to set stop loss if not cheque will not applicable
14.Trailling Stoploss : Cheque if you want to set trailing stop loss if not cheque will not applicable
15.Point Or Percentage For TG SL : Use Points or Percentage as per your choice
16.Target : Set as per the selection of (Point Or Percentage For TG SL)
17.Stop Loss : Set as per the selection of (Point Or Percentage For TG SL)
18.TSL_Type : Select as per your logic in %/ATR/Points
19.TSL_Input : Set in case you select %/Points in TSL_Type
20.ATR Length : Set as per your logic if you select ATR in the field of TSL_Type
21.ATR_Mult : Set as per your logic if you select ATR in the field of TSL_Type
22.Segment : Select segment of your logic EQ/FUTIDX/FUTSTK/OPTIDX/OPTSTK/FUTCUR/FUTCUM (Used in case of option / Futures )
23.Select Expiry Date : Select the expiry date of your trade as per the segment you selected (Used in case of option / Futures )
24.Select Expiry Month : Select the expiry Month of your trade as per the segment you selected (Used in case of option / Futures )
25.Year : Select the expiry Year of your trade as per the segment you selected (Used in case of option / Futures )
26.Quantity : Enter the quantity in which you want to trade (Used in case of option / Futures )
27.Product Type : Select MIS/Normal/ CNC as per your logic (Used in case of option / Futures )
28.Order Type : Select Market/Limit as per your logic (Used in case of option / Futures )
29.Strategy Tag : Enter the value in case you are using webhook / advance template in APIBridgeTM
30.Lotsize : Enter the lotsize as per your lotic and quentity selection (Used in case of option / Futures )
31.STEP (OTM/ATM/ ITM ) : Select OTM(+1)/ATM(0)/ ITM (-1) as per your logic works in case of options only
32.DIFFERENCE_BETWEEN 2 STRIKE : Select difference of 2 strikes you have used in APIBridge symbol setting list, like for Nifty 50 BankNifty 100
33.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