Indicators
Here is the list of Technical indicators supported by Streak.
Overlap Studies¶
- Simple Moving Average(SMA)
- Exponential Moving Average(EMA)
- Weighted Moving Average(WMA)
- Double Exponential Moving Average(DEMA)
- Triple Exponential Moving Average(TEMA)
- Triangular Moving Average(TMA)
- Hull Moving Average (HMA)
- Kaufman Moving Average (KMA)
- MESA Adaptive Moving Average(MAMA)
- Bollinger Bands
- Parabolic SAR (PSAR)
- Supertrend
- Alligator
- Ichimoku Cloud
- ATR Trailing Stop Loss
- Donchian channel
- Fractal Chaos Bands
- Linear regression forecast indicator
- McGinley Dynamic Indicator
- Volume Weighted Average Price (VWAP)
- VWAP Moving Average (VWAP MA)
- Keltner Channel
Oscillators¶
- Aroon Oscillator
- Moving Average Convergence Divergence(MACD)
- Commodity Channel Index(CCI)
- CCI Moving Average (Cci MA)
- Money Flow Index (MFI)
- Money Flow Index Moving Average (Mfi MA)
- Plus/Minus Directional Index (-DI,+DI)
- Average Directional Index(ADX)
- Williams %R
- TRIX
- Price Rate Of Change(PROC)
- Momentum Indicator(MOM)
- Stochastic
- Stochastic Momentum Index
- Stochastic RSI
- Trend Intensity Index (TII)
- Relative Strength Index(RSI)
- RSI Moving Average
- Awesome Oscillator
- Bollinger Bandwidth
- Bollinger %B
- Chaikin Money Flow Index
- Chande Momentum Oscillator
- Elder Force Index
- Intraday Momentum Index
- Know Sure Thing
- Moving Average Deviation
- Ultimate Oscillator
- ADX Moving average (Adx MA)
- True Strength indicator
- Swing Index indicator
- Twiggs money flow index
Volume Indicators¶
- Prev N Volume
- Opening Range Volume
- Moving Average Volume
- On-balance Volume(OBV)
- On-balance Volume Moving Average (Obv MA)
- Volume
- Positive Volume Index (PVI)
- Negative Volume Index (NVI)
- Trade Volume Index (TVI)
- Volume Oscillator
- Standard Deviation on VWAP
Volatility Indicators¶
- True Range(TR)
- Average True Range(ATR)
- Normalized True Range(NATR)
- Vortex Indicator
- Choppiness Index
- Choppiness Moving Average
- Standard Deviation
Future & Options¶
- Open Interest (OI)
- Open Interest Moving Average (OIMA)
- MACD Open Interest (MACD OI)
- Option Greeks
Price Action¶
- Open, High, Low and Close (OHLC)
- Previous Open, Previous High, Previous Low and Previous Close
- Prev N
- Opening Range
- Nth Candle
- Trade At Price
- Pivot Points
- Narrow Range
- Number
- Central Pivot Range
- Pre-market Close
- Median Price
- Median Price Moving Average (Median Price MA)
- Camarilla Pivot Points
Chart Patterns¶
- Three White Soldiers
- Morning Doji Star
- Abandoned Baby
- Tri Star
- Advance Block
- Conceal Baby Swallow
- Stick Sandwich
- Morning Star
- Kicking
- Spinning Top
- Engulfing
- Homing Pigeon
Indicators¶
Supertrend¶
Common ways to use Supertrend
- Buy Strategy
If your strategy is to buy when the supertrend indicator indicates buy (green arrows as per charts) then use: Supertrend crosses below close - Sell strategy
If your strategy is to sell when the supertrend indicator indicates sell (red arrows as per the charts) then use: Supertrend crosses above close
RSI¶
Common ways to use RSI
- Buy strategy
If your strategy is to buy when the RSI is oversold (usually indicated by the RSI being lower 20) then use: RSI higher than 20 - Sell strategy
If your strategy is to sell when the RSI is overbought (usually indicated by the RSI being higher 80) then use: RSI lower than 80
Simple Moving Average (SMA)¶
Multiple strategies can be formed with SMA
- Buy strategy
If the short term trend is bullish, then you can use: SMA(20) higher than SMA(40) - Sell strategy
If the short term trend is bearish, then you can use: SMA(20) lower than SMA(40)
Exponential Moving Average (EMA)¶
Common ways to use EMA
- Buy strategy
If the short term trend is bullish, then you can use: EMA(20) higher than EMA(40) - Sell strategy
If the short term trend is bearish, then you can use: EMA(20) lower than EMA(40)
At Price¶
Trade At price is a price based signal (usually works when the LTP of the stock is in a price range)
Example: If you want to buy NSE-SBIN at 300 (with 0.5% variation) then, when the price falls in the range 298.5 to 301.5, a buy/sell signal will be triggered.
Important
This indicator is available in the Create Basic mode and only in entry condition. Additionally, with Trade At price indicator no other entry condition is allowed.
ADX¶
ADX is a momentum indicator. It is defined by 3 components: The +DI (Plus Directional Indicator) line/value, the -DI (Minus Directional Indicator) line/value and the ADX (Average Directional Index) line/value itself. The +DI and -DI measures trend direction over time, whereas the ADX measures the strength of the trend (regardless of direction) over time.
They can be used together as shown in the examples below:
- Buy strategy: +DI(14) crosses above -DI(14) and ADX(14) higher than 20
- Sell strategy: -DI(14) crosses above +DI(14) and ADX(14) higher than 20
Parabolic SAR (PSAR)¶
SAR stands for Stand And Reverse, which means when signals appear the trader gets out of the former position and initiates a new one.
Based on Welles Wilder’s system (creator of PSAR), when the trend is down the indicator dots are above the price candles and when the trend is up, the dots are below the price candle.
Example:
- Buy signal to identify a bullish trend, PSAR crosses below Low
- Sell signal to identify a bearish trend, PSAR crosses above High
Commodity Channel Index (CCI)¶
CCI measures the current price level relative to an average price level over a given period of time.
CCI is relatively high when prices are far above their average. CCI is relatively low when prices are far below their average. In this way, CCI can be used to identify overbought and oversold levels. It is not range bound.
Common ways to use CCI:
- Buy strategy: If your strategy is to identify when the stock is oversold (usually indicated by the CCI being lower than -100) and you want to buy when the stock breaks the oversold region and crosses above then use, 20 CCI crosses above -100
- Sell strategy: If your strategy is to identify when the stock is overbought (usually indicated by the CCI being higher than 100) and you want to sell when the stock breaks the overbought region and crosses below then use 20 CCI crosses below -100
Comparators¶
All the indicator values are calculated w.r.t to the candle intervals
- higher than - The value of indicator 1 is higher than the value of indicator For ex: If the strategy is 5SMA higher than 7SMA, the trigger will happen when the value of 5SMA is above the value of 7SMA for the given candle interval
- lower than - The value of indicator 1 is lower than the value of indicator 2
For ex: If the strategy is 5SMA lower than 7SMA, the trigger will happen when the value of 5SMA is below the value of 7SMA for the given candle interval - equal to - The value of indicator 1 is equal to the value of indicator 2
For ex: If the strategy is 5SMA equal to 7SMA, the trigger will happen when the value of 5SMA is equal to the value of 7SMA for the given candle interval. - crosses above - The value of indicator 1 goes higher than the value of indicator 2
For ex: If the strategy is 5SMA crosses above 7SMA, the trigger will happen when the 5SMA line moves up above the 7SMA line for the given candle interval. The trigger will happen only if the value of 5SMA was below the value of 7SMA in the previous candle. - crosses below - The value of indicator 1 goes lower than the value of indicator 2
For ex: If the strategy is 5SMA crosses below 7SMA, the trigger will happen when the 5SMA line moves down below the 7SMA line for the given candle interval. The trigger will happen only if the value of 5SMA was above the value of 7SMA in the previous candle
Double Exponential Moving Average (DEMA)¶
DEMA reduces the lag to a greater extent as compared to an EMA. It's usage is typical to that of any other moving average. It works best when the market is trending, and not when the market is sideways. It can be used with other moving averages, OHLC prices of the candle or with a number. Example:
- Buy strategy: If the short term trend is bullish, then you can use: 10 DEMA crosses above 20 DEMA or Close crosses above 30 DEMA
- Sell strategy: If the short term trend is bearish, then you can use: 10 DEMA crosses below 20 DEMA or Close crosses below 30 DEMA
Triple Exponential Moving Average (TEMA)¶
TEMA reduces the lag to a greater extent as compared to a DEMA. It's usage is typical to that of any other moving average. It works best when the market is trending, not when the market is sideways. It can be used with other moving averages, OHLC prices of the candle or with a number. Example:
- Buy strategy: If the short term trend is bullish, then you can use 10 TEMA crosses above 20 TEMA or Close crosses above 30 TEMA
- Sell strategy: If the short term trend is bearish, then you can use 10 TEMA crosses below 20 TEMA or Close crosses below 30 TEMA
Weighted Moving Average (WMA)¶
WMA reduces the lag as compared to an SMA. It's usage is typical to that of any other moving average. It can be used with other moving averages, OHLC prices of the candle or with a number. Example:
- Buy strategy: If the short term trend is bullish, then you can use 10 WMA crosses above 20 WMA or Close crosses above 30 WMA
- Sell strategy: If the short term trend is bearish, then you can use 10 WMA crosses below 20 WMA or Close crosses below 30 WMA
Triangular Moving Average (TMA)¶
TMA is smoother than an SMA and is not as sensitive to price changes as an EMA. It is best used in highly volatile markets. It's usage is typical to that of any other moving average. It can be used with other moving averages, OHLC prices of the candle or with a number. Example:
- Buy strategy: If the short term trend is bullish, then you can use 10 TMA crosses above 20 TMA or Close crosses above 30 TMA
- Sell strategy: If the short term trend is bearish, then you can use 10TMA crosses below 20 TMA or Close crosses below 30 TMA
Money Flow Index (MFI)¶
MFI is an oscillator that uses both price and volume to measure buying and selling pressure. MFI is also known as volume-weighted RSI. It's value oscillates between 0 and 100. As a momentum oscillator tied to volume, the MFI is best suited to identify reversals and price extremes with a variety of signals.
Common ways to use MFI:
- Buy strategy: If your strategy is to buy when the MFI is oversold (usually indicated by the MFI being lower 20) then use 14 MFI crosses above 20
- Sell strategy: If your strategy is to sell when the MFI is overbought (usually indicated by the MFI being higher 80) then use 14 MFI crosses below 80
MACD and MACD Signal¶
MACD (Moving Average Convergence/Divergence) is a momentum indicator. It has 2 main components: MACD line and MACD Signal Line. Example:
- Buy strategy: If you want to buy when the MACD crosses above the MACD Signal line then use MACD(12,26,9) crosses above MACD Signal(12,26,9)
- Sell strategy: If you want to sell when the MACD crosses below the MACD Signal line then use MACD(12,26,9) crosses below MACD Signal(12,26,9)
Bollinger Bands (UBB, MBB, LBB)¶
Bollinger bands has 3 parts: Upper Bollinger Band (UBB), Middle Bollinger Band (MBB) and Lower Bollinger Band (LBB)
Bollinger Bands are volatility bands placed above and below a moving average. Volatility is based on the standard deviation, which changes as volatility increases and decreases.
They can be used together as shown in the examples below:
- Buy strategy: Buy when Close crosses above LBB(20,2)
- Sell strategy: Sell when Close crosses below UBB(20,2)
Williams % R¶
Williams % R is a range bound oscillator that oscillates from 0 to -100.
The Fast Stochastic Oscillator and Williams % R produce the exact same lines, only the scaling is different. Readings from 0 to -20 are considered overbought. Readings from -80 to -100 are considered oversold.
Common ways to use Williams % R
- Buy strategy: If your strategy is to identify when the stock is oversold (usually indicated by the Williams % R being below -80) and you want to buy when the stock breaks the oversold region and crosses above, then use, 14 Williams % R crosses above -80
- Sell strategy: If your strategy is to identify when the stock is overbought (usually indicated by the Williams % R being above -20) and you want to sell when the stock breaks the overbought region and crosses below, then use, 14 Williams % R crosses below -20
Momentum Indicator (MOM)¶
The Momentum indicator is a speed of movement indicator designed to identify the speed (or strength) of price movement. The momentum indicator compares the most recent closing price to a previous closing price (can be the closing price of any time frame). Common ways to use Momentum Indicator:
- Buy strategy: 14 MOM crosses above 0
- Sell strategy: 14 MOM crosses below 0
Price Rate Of Change (PROC)¶
The price rate of change (PROC) is a technical indicator of momentum that measures the percentage change in price between the current price and the price of periods in the past. The PROC is an oscillator that fluctuates above and below the zero line as the Rate-of-Change moves from positive to negative. Common ways to use PROC:
- Buy strategy: 14 PROC crosses above 0
- Sell strategy: 14 PROC crosses below 0
On Balance Volume (OBV)¶
On-balance volume (OBV) is a momentum indicator that uses volume flow to predict changes in stock price.Common ways to use OBV:
-
Trend Identification
- Bullish trend: Price advances and OBV also advances.
- Bearish trend: Price declines and OBV also declines.
-
Divergence
- Bullish OBV divergence: Price declines but OBV advances.
- Bearish OBV divergence: Price advances but OBV declines.
Prev N¶
Prev N and Prev N volume lets you us access the OHLCV, values of any past candle. Offset is the number that is used to refer to the candle. The offset of the current candle is '0' and '-1' is the previous offset for previous candle. Similarly, for 2nd last candle, the offset value is '-2' and so on..
Prev N should not be used with offset as 0
Prev N offset value need to be a value less than 0, since using 0 offset would mean accessing current candle value and will cause the strategy to have a look-ahead bias.
Prev N timeframe should be the same or a multiple of the Base timeframe
Example: Lets say the candle interval that you have set for a strategy is 3 min, this is the Base timeframe. Now, if you want to use Prev N, you need to keep in mind that the timeframe of Prev N should be either 3 min or it should be a multiple of 3 min, like 15min. Using different timeframes in the same strategy requires using compatible Base timeframe. If you want to use 15min timeframe with a 5min Base timeframe, it is possible. You can also use 10min in the same strategy since 5 is a factor of both 10 and 15, 5x2=10 and 5x3=15. But you should not use a 3min Base timeframe for a 10min Prev N, since 3 is not a factor of 10.
Nth Candle¶
Nth candle indicator is used to access nthe Open, High, Low and Close of any candle for that day. The candle number starts with '1' which represents the 1st candle of the day and '2' represents the 2nd candle of the day.
Info
When Opening Range / Nth candle / PrevN indicators are used and the duration as lets say 15 mins is to be used, the Candle Interval
i.e the base timeframe always needs to be equal or lower. If you want to set Opening Range(High,15 min), the candle interval needs to be equal to or lower than 15. If the candle interval is higher, the time frame will not be present in the dropdown.
Opening Range¶
Opening Range is used to access the Day’s first candle OHLCV values. Like Previous N, it also has a timeframe feature that allows users to create conditions involving two timeframes. For example, an 15 min Opening Range Breakout (ORB) strategy with a 5 min candle interval (base timeframe).
Number¶
To enter any numerical value in the conditions you need to use the Number
function and then input the required value as shown below.
Signal Candle¶
Signal Candle is the candle on the basis of which your Entry order got triggered. This indicator is only available in the Exit Condition, since the indicator gets its OHLC values only when your Entry has been triggered and a position has been entered. Let us look at an example to undersand its usecase
Entry Condition: Close(0) crosses above SuperTrend(7,3,0)
In case an entry is triggered and we want to exit the trade when the candle at which entry condition was met, it's is broken. We can use the following condition for this
Close(0) lower than Signal Candle(Low,0)
Trade Candle¶
Trade Candle is the candle on which you entered the trade after your condition is met and Entry order got triggered. So, Trade candle is simply the next candle following the Signal Candle, dicussed above. This indicator too is only available in the Exit Condition, similar to Signal candle. Therefore Trade Candle(-1) = Signal Candle(0)
Let us look at an example to understand its usecase
Entry Condition: Close(0) crosses above SuperTrend(7,3,0)
In case an entry is triggered and we want to exit the trade when the candle at which we entered, it's low is broken. We can use the following condition for this
Close(0) lower than Trade Candle(Low,0)
Candle Time¶
This indicator provides three parameters that are Minutueofcandle
, Hourofcandle
and Dayofweek
. It gives users very precise control over day of the week, hour of the day and the minute of the hour. It is important to note the Indicator parameters will also depend on the base timeframe (Candle Interval) of the strategy. Let's understand the use case of it with an example
Example on time based Entry/Exit Conditions
Candle Interval: 15 mins
Requirement A: If you want to enter the trade at 12:30 and exit the trade at 15:15, you can use the below conditions
The above condition states that when the 12:15 15-min candle closes i.e. at 12:30, an entry should be triggered. Same logic applies for exit, that is when the 15-min candle of 15:00 closes i.e. at 15:15 an exit will be triggered.
If your candle interval is 5 mins for the same Requirement A, you can update the conditions in the below manner
Entry conditions: Candle Time(hourofcandle) equal to 12 and Candle Time(minuteofcandle) equal to 25
Exit condition: Candle Time(hourofcandle) equal to 15 and Candle Time(minuteofcandle) equal to 10
.
Requirement B: If you want to trade only on Wednesday's then you can use the below condition
Candle Time(dayofweek) equal to 3
Here the number 3 indicates the thrid day of the week i.e Wednesday.