Custom trading algorithms, built for you

Your trading rules, turned into a disciplined algorithm.

I design, backtest and automate trading strategies to each client's exact specification. Your bot runs on its own cloud server, trades only in your broker account, and keeps you informed on your phone, every step of the day.

  • Tested on real 1-minute option data since 2020
  • A stop-loss at the exchange on every order
  • Your money never leaves your account
  • Pause or close everything from Telegram
Built with PythonNSE F&O · NIFTY optionsCloud serverTelegramTradingView conversion
Brokers ZerodhaAngel OneDhanFinvasia (Shoonya)InCred MoneyFlattrade
Who it's for

Built around your rules, not a template

Every project starts with a conversation about how you trade. I write your rules down exactly, test them honestly, and automate only what passes.

Active traders

Automate the setup you already trade by hand, without hours of screen time or emotional decisions.

HNIs & family offices

Rule-based option strategies with exchange-level risk controls and a clear report every day.

Educators & communities

Turn a strategy you teach into a tested, documented engine your students can study.

TradingView users

Turn Pine scripts and chart alerts into a bot that places real orders through your broker.

How we work together

Three stages, no surprises

Each stage has clear deliverables, and you approve it before the next one starts. You stay in control throughout.

01

Specify & backtest

Your idea becomes exact written rules, tested on real 1-minute option prices with all costs included.

  • A written rulebook you approve
  • Year-by-year results and drawdowns
  • Slippage and timing stress tests
02

Build & verify

A bot that reproduces the backtest trade for trade, then trades on paper with live prices.

  • A trade-by-trade match report
  • Tests for broker and network failures
  • Paper trading on your own server
03

Go live & support

Deployed with exchange stop-losses, a daily loss limit and Telegram control, then supported.

  • Start with 1 lot, then scale up
  • Daily report: live vs backtest
  • Safe updates with easy rollback
How it works

Five pieces, each with one job

Once the code is on the server, nothing depends on a laptop or an open browser. You only need your phone.

ResearchBacktests and strategy code are built and verified first.
Cloud serverAlways-on Ubuntu server in Bangalore, close to NSE. Starts the bot every weekday.
Broker APIZerodha, Angel One, Dhan, Finvasia, InCred Money or Flattrade, from a whitelisted static IP.
Telegram botSends every signal, order, exit and P&L. Takes your commands.
Your phoneOne tap to log in each morning. Then just read the updates.

A trading day, step by step

  1. Server wakes the botIt checks the NSE holiday list, then sends your broker's official login link to Telegram.
  2. Secure Telegram loginYou log in on your phone with your own password and 2FA, then send the result back with /token. The bot never sees your password.
  3. Warm-upIt loads instruments, prepares indicators from recent history and restores any position held overnight.
  4. Live marketIt builds candles from live ticks and checks every strategy's rules at each candle close.
  5. Order placementA LIMIT order at the bid with a brief chase. If it isn't filled, the trade is skipped (no market orders). Once filled, a stop-loss order is placed at the exchange straight away.
  6. Safe exitsThe resting stop is converted into a buy order in one step, so a position is never left unprotected.
  7. Day summaryTrades, P&L after costs and overnight positions, sent to Telegram. Then the bot shuts itself down.
  8. Daily reportLive results compared with the backtest, and every fill's expected price compared with the price received.
KG
KG Algo Botbot · illustrative example
Good morning. Log in to your broker: kite.zerodha.com/connect/login?api_key=•••••
/token https://127.0.0.1/?request_token=•••••&status=success
✅ Logged in. LIVE mode. TrendLock ON, Supertrend Rider ON. Daily loss limit active.
📈 BUY signal. SOLD NIFTY ATM PE × 1 lot. Stop-loss order placed at the exchange.
/status
Open: 1 position, stop resting at the exchange. Today's P&L: ₹ ••••
🔔 Squared off at 15:15. Net after costs: ₹ ••••
📋 Day done. Summary saved. Bot shutting down.
/token/status/stop/resume/flat

The bot accepts commands only from your own Telegram chat. Nobody else can control it, even if they find it.

Risk controls & disaster management

Planned for the bad days

Markets, internet connections and brokers all fail sometimes. Every bot I build plans for these failures from day one.

01
Server or internet goes downStop-loss orders already sit at the exchange, so you stay protected even if the bot is offline.
02
Stop order rejectedThe bot buys the position back immediately, pauses, and alerts you.
03
Bot and broker disagreeBefore every entry it compares the broker's open positions with its own records, and pauses if they differ.
04
A bad dayA daily loss limit stops new trades automatically. /stop and /flat work from your phone at any time.
05
Price feed freezesA watchdog notices when ticks stop, reconnects the feed and tells you.
06
Broker rejects an orderThe bot quotes the broker's exact reason, pauses without retrying blindly, and waits for your /resume.
07
Restart mid-dayThe day's login, positions and strategy state are saved to disk. On restart, the bot rebuilds today's candles and carries on.
08
Telegram is downTrading continues normally. Only the message is lost, and everything is still written to the log.
09
Keys and accessAPI keys live only on your server, in a file only the bot can read. Orders work only from the whitelisted IP.
10
Updates and rollbacksChanges are tested on replayed data, deployed after market hours with a dated backup, and reversible in minutes.
11
Paper before liveEvery bot runs in paper mode on live prices first, then goes live with 1 lot and scales up slowly.
12
You stay in controlLive mode, lot sizes and deployments change only with your explicit approval.
Reference strategies · KG Algo Suite

Examples of what I build and run

Six rule-based NIFTY weekly option strategies, each backtested on 1-minute option data from 2020 and automated end to end. Use them as they are, or as a starting point for your own rules.

IntradayKG-01

TrendLock Intraday

Sells an at-the-money option in the direction of the trend, but only when four independent trend checks agree: opening range breakout, VWAP, Supertrend and moving averages.

  • Exits on a moving-average flip or at day end
  • Exchange stop-loss on every trade
  • TrendLock+ variant skips low-premium signals
Expiry dayKG-02

Expiry Decay Catcher

On weekly expiry days, notes the at-the-money call and put prices after the opening rush, then sells each one only after it has started to lose value.

  • Each leg traded independently
  • Separate stop on each leg
  • Squared off before the close
PositionalKG-03

Supertrend Rider

Follows the Supertrend on 10-minute NIFTY candles and always holds one sold option on the trend side, switching sides when the trend changes colour.

  • Held overnight (NRML)
  • Rolls to the next weekly expiry automatically
  • Shifted candle grid avoids crowded flips
OvernightKG-04

Overnight Premium Drop

Each morning it picks the call and put trading near a set premium, and sells a leg only if that premium falls sharply during the day. Positions close the next morning.

  • Waits for the market to confirm first
  • Stop held overnight at the exchange
  • Exits the next morning
Weekly · 1 dayKG-05

Weekly Shield Strangle: Quick

Sells an out-of-the-money call and put the day before weekly expiry and holds both into expiry day, collecting the final day's time decay.

  • Defined entry time, no guesswork
  • Separate stop on each leg
  • Closed on expiry afternoon
Weekly · 2 daysKG-06

Weekly Shield Strangle: Classic

Enters two trading days before weekly expiry to collect two days of time decay, with the same leg-by-leg protection.

  • Wider strikes, longer hold
  • Separate stop on each leg
  • Can run alongside the Quick version
Questions clients ask

Frequently asked questions

If your question isn't here, ask it directly. I'm happy to explain anything before you decide.

Who holds my money?

You do. The bot trades only in your own broker account. I never hold client funds, and I never ask for your broker password.

Do you guarantee returns?

No. Nobody can honestly guarantee trading returns. I show you how a strategy behaved in the past, including its losing periods, and the bot follows the rules you approved. Markets can and do behave differently in future.

Which brokers do you support?

Zerodha (Kite Connect), Angel One (SmartAPI), Dhan, Finvasia (Shoonya), InCred Money and Flattrade. Other brokers with a proper order API can be discussed for your project.

Do I need to keep my laptop on?

No. The bot runs on a cloud server that starts itself every weekday. Your only daily task is a one-tap login from your phone.

What if the server or internet fails?

Every open position has a stop-loss order resting at the exchange, so it stays protected even if the bot goes offline. See the risk controls above for all twelve safeguards.

Can you automate my TradingView strategy?

Yes. Pine scripts and chart setups can be turned into exact rules, backtested on option data, and then automated with proper order handling.

Can the rules be changed later?

Yes. Changes are tested on replayed data first, then deployed after market hours with a backup, so they can be undone quickly.

How is pricing decided?

Each project is quoted individually, based on the strategy's complexity, the broker, and whether you need ongoing hosting and support. Tell me about your idea and I'll send a clear quote.

Have a strategy in mind?

Tell me your rules, or just the idea. I'll reply with what it takes to test and automate it.

Book a consultation

Important: KGINPLAY provides strategy development, backtesting and automation services. It does not give investment advice and does not handle client funds. Bots run in the client's own broker account and under the client's own control. Backtest results come from historical data and do not guarantee future returns. Trading in futures and options carries substantial risk: SEBI studies found that 9 out of 10 individual traders in equity F&O lost money. Clients are responsible for following SEBI and their broker's rules on algorithmic trading.

Also from KGINPLAY · Apps by KG Studios

Calm games and helpful apps

Alongside trading systems, I make ad-free brain games rooted in classic and traditional Indian play, and everyday apps that keep your data on your phone.

Brainvita app icon

Brainvita: Peg Solitaire

KG Studios · Board & Puzzle
Available on Google Play FreeRated 3+No adsOffline

The classic marble puzzle families have loved for generations, now with glass marbles that hop, roll and clink like the real thing.

Jump marbles over each other and capture them until only one remains. Finish in the centre and you're a Genius.

Brainvita home screen
Choose your board
Playing Brainvita
Jump & capture
Genius rank
Earn Genius
Hall of Fame
Hall of Fame
History card
History cards
French board
French board

Pallanguzhi

Traditional Indian board game
Volunteers neededVs computer2 players

The South Indian game of fourteen pits and tamarind seeds, played in homes and temple courtyards for centuries.

Pallanguzhi · TNAli Guli Mane · KAVamana Guntalu · AP/TSKuzhipara · KL
  • Easy and Advanced rule sets
  • Three computer levels, up to 5 moves ahead
  • Pass-and-play for two players
Talking Buddy icon

Talking Buddy

Kids' learning companion
In developmentNo internet neededParent PIN

A friendly little 3D robot tutor that lives on your child's screen, asks quick quizzes and reminds them to take breaks.

  • Quizzes, fun facts and dances
  • Break reminders for healthy screen time
  • Speaks English, Tamil and Telugu
  • Private by design: no internet permission

PA Assistant

Personal assistant · Productivity
In developmentVoice commandsOffline

Your life organised in one private app: tasks, agenda, health, money and the special dates that matter.

  • Plan: to-dos, agenda and notes
  • Health: BMI, sugar log, doctor visits, meals
  • Money: spending and insurance
  • Offline voice: "remind me to buy milk"
Beta testing

Help launch the next apps

Volunteers helped Brainvita reach Google Play. Pallanguzhi, Talking Buddy and PA Assistant need testers now. Get early access for free and help shape the final release.

Sign up as a volunteer

You need an Android phone and a Google (Gmail) account. Your email is used only to add you to the test, and never shared.

  1. Fill in the short formName, Gmail, phone model and the apps you'd like to test.
  2. Get your inviteYou're added to the Google Play test and sent a private link.
  3. Install from Google PlayTap "Become a tester", then install like any app.
  4. Use it for 14 daysGoogle requires this before a public launch.
  5. Share feedbackBugs and ideas welcome. You'll be credited as an early supporter.

Windows and iPhone are next

The apps are coming to the Microsoft Store and the App Store. Get one email on launch day.

Coming soonMicrosoft Store Coming soonApp Store Notify me
Learning games · Any class, any subject, any board

Studies that feel like play

Some children switch off the moment a textbook opens. I turn their lessons into games they actually want to finish. Every game is built from the student's own syllabus, CBSE or Tamil Nadu State Board, so every point they score is something they've learned.

Straight from the textbook

Built page by page from the actual chapter, so nothing is off-syllabus and nothing important is skipped.

Story and characters

A friendly guide, a story to follow and missions to complete: escape rooms, quiz shows and adventures instead of plain question lists.

Learn by doing

Drag-and-sort, memory match, virtual experiments and build-it games, with spoken feedback in English or Tamil.

Rewards, not red marks

Stars, levels, badges and gentle hints keep them going, and they earn a certificate for every chapter they finish.

Already built · Class 7

Real lessons, turned into games

A selection of what a Class 7 student is already playing (and learning) at home.

Science · CBSE

Digestion & the human bodyAcids, bases & saltsMetals & non-metalsChanges around usLight, shadows & reflectionEarth, moon & sun

Social science · CBSE

Tribal communitiesRegional cultures & dancesMedia & democracyState governmentElectionsHistory

Maths & computer science

Equations questRatio & proportion: build a dream houseCyber safety quest

Tamil · Tamil Nadu State Board

Class 7 Tamil, Units 1–3Played fully in TamilEnglish hints you can turn off

Exam preparation

Science Talent Test practiceAnnual exam revision games

Any class, any stream

Classes 1 to 12Science · Commerce · ArtsCBSE · Tamil Nadu State BoardEnglish or Tamil

Have a child who won't open the book?

Tell me the class, board and chapter. The game runs on a computer, tablet or phone, and works offline too.

Request a learning game
Portrait of KG, founder of KGINPLAY
KGFounder, KGINPLAY · Publishes apps as KG Studios
About

Knowledge in Play: a small studio with a simple idea

KGINPLAY began with two passions: the discipline of rule-based trading and the classic games I grew up with. Both reward patience, planning and sticking to the rules.

Today I build custom trading algorithms for clients, tested honestly and automated with care, and I make calm, ad-free apps published on Google Play as KG Studios. Every project is built personally, tested by real people, and designed to respect your time, your money and your privacy.

Honest testingReal data, full costs, losing periods shown.
Safety firstExchange stops and loss limits on every bot.
PrivacyYour keys and data stay on your server and phone.
Made in IndiaFor traders and families everywhere.