# Indicators

Here is the list of Technical indicators supported by Streak.

### Overlap Studies¶

1. Simple Moving Average(SMA)
2. Exponential Moving Average(EMA)
3. Weighted Moving Average(WMA)
4. Double Exponential Moving Average(DEMA)
5. Triple Exponential Moving Average(TEMA)
6. Triangular Moving Average(TMA)
7. Hull Moving Average (HMA)
8. Kaufman Moving Average (KMA)
10. Bollinger Bands
11. Parabolic SAR (PSAR)
12. Supertrend
13. Alligator
14. Ichimoku Cloud
15. ATR Trailing Stop Loss
16. Donchian channel
17. Fractal Chaos Bands
18. Linear regression forecast indicator
19. McGinley Dynamic Indicator
20. Volume Weighted Average Price (VWAP)
21. VWAP Moving Average (VWAP MA)

### Oscillators¶

1. Aroon Oscillator
2. Moving Average Convergence Divergence(MACD)
3. Commodity Channel Index(CCI)
4. Money Flow Index(MFI)
5. Plus/Minus Directional Index (-DI,+DI)
7. Williams %R
8. TRIX
9. Price Rate Of Change(PROC)
10. Momentum Indicator(MOM)
11. Stochastic
12. Stochastic Momentum Index
13. Stochastic RSI
14. Trend Intensity Index (TII)
15. Relative Strength Index(RSI)
16. RSI Moving Average
17. Awesome Oscillator
18. Bollinger Bandwidth
19. Bollinger %B
20. Chaikin Money Flow Index
21. Chande Momentum Oscillator
22. Elder Force Index
24. Know Sure Thing
25. Moving Average Deviation
26. Ultimate Oscillator

### Volume Indicators¶

1. Prev N Volume
2. Opening Range Volume
3. Moving Average Volume
4. On-balance Volume(OBV)
5. Volume
6. Positive Volume Index (PVI)
7. Negative Volume Index (NVI)
9. Volume Oscillator

### Volatility Indicators¶

1. True Range(TR)
2. Average True Range(ATR)
3. Normalized True Range(NATR)
4. Vortex Indicator
5. Choppiness Index
6. Choppiness Moving Average

### Future & Options¶

1. Open Interest (OI)
2. Open Interest Moving Average (OIMA)
3. MACD Open Interest (MACD OI)
4. Option Greeks

### Price Action¶

1. Open, High, Low and Close (OHLC)
2. Previous Open, Previous High, Previous Low and Previous Close
3. Prev N
4. Opening Range
5. Nth Candle
7. Pivot Points
8. Narrow Range
9. Number
10. Central Pivot Range
11. Pre-market Close

### Chart Patterns¶

1. Three White Soldiers
2. Morning Doji Star
3. Abandoned Baby
4. Tri Star
6. Conceal Baby Swallow
7. Stick Sandwich
8. Morning Star
9. Kicking
10. Spinning Top
11. Engulfing
12. Homing Pigeon

### Indicators¶

#### Supertrend¶

Common ways to use Supertrend

If your strategy is to buy when the supertrend indicator indicates buy (green arrows as per charts) then use: Supertrend crosses below close
2. 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

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

If the short term trend is bullish, then you can use: SMA(20) higher than SMA(40)
2. 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

If the short term trend is bullish, then you can use: EMA(20) higher than EMA(40)
2. 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 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:

1. Buy strategy: +DI(14) crosses above -DI(14) and ADX(14) higher than 20
2. 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:

1. Buy signal to identify a bullish trend, PSAR crosses below Low
2. 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:

1. 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
2. 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

1. 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
2. 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
3. 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.
4. 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.
5. 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:

1. 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
2. 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:

1. 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
2. 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:

1. 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
2. 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:

1. 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
2. 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:

1. 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
2. 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:

1. 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)
2. 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:

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

1. 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
2. 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:

1. Buy strategy: 14 MOM crosses above 0
2. 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:

1. Buy strategy: 14 PROC crosses above 0
2. 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

2. Bearish trend: Price declines and OBV also declines.
• Divergence

1. Bullish OBV divergence: Price declines but OBV advances.
2. 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. To know more about this, you can read this blog

#### 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 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

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