kotak-logo
Algorithmic Trading Logo Light Mode

Kotak

Stockshaala

Module 2
Data and Platforms for Algo Trading
Course Index
Read in
English
हिंदी

Chapter 2 | 2 min read

Understanding Data in Trading

If strategy is the brain of an algo, then data is the fuel. Without data, your algo is just sitting there — clueless.

In this chapter, we’ll understand what kind of data algos use, where it comes from, and how it helps in making trading decisions.

In trading, data simply means information about what’s happening in the market.

The most common data points are:

  • Price – Open, high, low, close (OHLC)
  • Volume – How many shares/contracts were traded
  • Time – When exactly a trade happened
  • Indicators – Calculated values like RSI, MACD, Moving Averages

Your algo looks at these data points and checks:

“Do they match the conditions I’ve set? If yes, take action.”

  1. Historical Data (Past)
    a. This is data from the past — say, last 1 year’s price movement.
    b. It is used for backtesting your strategy.
    c. Helps answer: “If I had used this logic earlier, would it have worked?”

Note: Make sure historical data is adjusted for splits/dividends and has no missing timestamps—otherwise indicators and backtests will be wrong.

a. This is near real-time market data (often 1-minute bars, sometimes tick-by-tick). Retail feeds may lag 1–15 minutes, so use a real-time source for live trades.
b. Algos use this to make decisions on the fly.
c. Helps answer: “Should I enter or exit this trade now?”

Example: Using Data in a Simple Strategy

Let’s say your rule is:

Buy a stock if its 5-day moving average crosses above the 20-day moving average.

To check this, your algo needs:

  • The last 20 days’ closing prices (historical data)
  • Current price (real-time data)
  • Time stamps to see when the crossover happens

This data feeds into your logic and tells the system: “Yes, crossover happened. Time to buy!”

Timeframes Matter

Data can come in different timeframes:

  • 1-minute candles (intraday scalping)
  • 15-minute (short-term)
  • Daily (swing or positional trading)
  • Weekly (longer-term investing)

The same stock can look totally different in different timeframes. So you need to choose a timeframe that matches your trading style.

The better your data, the better your decisions.

  • Bad or laggy data = Missed trades, wrong entries
  • Clean and timely data = Smooth algo performance
  • Data is the language that algos understand. You don’t have to code to grasp it—just learn to use it well. (We’ll cover both no-code and code paths.)

In the next chapter, we’ll explore the platforms and tools that help you run algos in India — no coding required. Let’s go!

Is this chapter helpful?
Previous
What Goes Into an Algo
Next
Platforms You Can Use to Run Your Algo

Disclaimer: This article is for informational purposes only and does not constitute financial advice. It is not produced by the desk of the Kotak Neo Research Team, nor is it a report published by the Kotak Neo Research Team. The information presented is compiled from several secondary sources available on the internet and may change over time. Investors should conduct their own research and consult with financial professionals before making any investment decisions. Read the full disclaimer here.

Investments in securities market are subject to market risks, read all the related documents carefully before investing. Brokerage will not exceed SEBI prescribed limit. The securities are quoted as an example and not as a recommendation. SEBI Registration No-INZ000200137 Member Id NSE-08081; BSE-673; MSE-1024, MCX-56285, NCDEX-1262.

Discover our extensive knowledge center

Explore our comprehensive video library that blends expert market insights with Kotak's innovative financial solutions to support your goals.

PreviousCourse IndexNext