Skip to main content

Candle Data

What is Candle Data?

The Candle Data feature allows users to add candlestick data for a selected symbol.
This is similar to selecting a symbol on TradingView, but with additional flexibility.

Unlike standard charting tools, users can select multiple data points and build strategies using multiple data sources and indicators.


Adding Candle Data

Users can add Candle Data by selecting a symbol and configuring the following options:

Element Name

Each Candle Data entry must have an Element Name, which serves as a unique identifier in the strategy framework.
Users can assign custom names to elements for better organization.

tip

What is the Element Name?
The Element Name is a unique identifier for Candle Data or Indicators.
It allows the system to recognize and use the data in strategy execution.
Users can assign names as per their preference.


Types of Data

Users can select different types of market data:

1. Spot Data

  • Selects spot prices for the chosen symbol.
  • For indices, it represents the index price (e.g., NIFTY, BANKNIFTY).
  • For stocks, it represents cash market prices.

2. Futures Data

  • Selects Futures contract prices for the chosen symbol.
  • Users can choose between available expiry dates based on contract type.
  • Expiry selection includes Monthly/Weekly contracts (if available for selected symbol).

3. Options Data

  • Selects Options contract prices for the chosen symbol.
  • Users can choose:
    • Option Type: Call (CE) / Put (PE).
    • Expiry Type: Monthly / Weekly (based on availability as per selected symbol).
    • Expiry Number: Current, Next, Next+1 (for selecting exact expiry).
    • Strike Selection:
      • Users can choose strikes based on moneyness (ATM, ITM, OTM).
      • Supports selection of up to 10 strikes OTM/ITM.

Additional Configurations

1. Duration

  • Determines how much historical data needs to be fetched from the database.
  • If 0 is selected, data will be fetched only from the current market session.
  • If 1 is selected, the system will also fetch the previous day’s data.
  • Affects indicator calculations:
    • More historical data = More accurate indicators.
    • Higher duration = Increased latency due to more data processing.

Example Calculation (1-Minute Timeframe):

  • Market hours: 9:15 AM - 3:30 PM (375 one-minute candles per day).
  • 15-Minute timeframe:
    • A full trading day contains 375 ÷ 15 = 25 candles.
  • If duration = 0, only current day's data is available.
  • If duration = 1, previous day's data is included for better indicator accuracy.

2. Candle Type

Users can select how they want the candle data to be structured:

Candlestick (Standard)

  • Provides OHLC (Open, High, Low, Close) values per timeframe.

Heiken Ashi


3. Expiry Selection (For Futures & Options)

  • Available only for Futures & Options.
  • Expiry Type: Choose between Weekly or Monthly contracts.
  • Expiry Number: Select the contract number in sequence (e.g., Current, Next, Next+1).

4. Strike Selection (For Options)

  • Available only for Options Data.
  • Strike selection allows choosing strikes based on moneyness:
    • Strike at / Moneyness:
      • Select ATM, ITM, or OTM strikes.
      • Supports up to 10 strikes away from the underlying price.
warning

Be cautious when selecting high duration values as it may increase latency due to large data fetches. But select duration which will be essential for calculating correct indicator values.