Ask any experienced Indian retail trader what kills portfolios faster than a bad stock pick, and they'll tell you: forgetting to set a stop-loss. You buy a position with full conviction. The market turns. You tell yourself it'll recover. It doesn't. By the time you exit, a manageable 5% loss has become a portfolio-destroying 25% drawdown.
The solution isn't more discipline — it's automation. This is exactly what ARJUN AI Trader does. Every time it buys a stock through Zerodha Kite or Alice Blue, it simultaneously places a stop-loss market (SL-M) order. The stop-loss is placed before the buy order even fills. You cannot forget it because the bot doesn't give you the choice.
In this article, I'll walk through exactly how this works — the technical mechanics, the order types used, why we chose SL-M over bracket orders, and how you can start using it today.
Why Stop-Loss Discipline Is Harder Than It Sounds
Cognitive psychology has a name for the behaviour that gets traders into trouble: loss aversion asymmetry. Humans feel the pain of a loss roughly 2x as intensely as the pleasure of an equivalent gain. This sounds like it should make us more cautious — but it has the opposite effect on trading behaviour.
When a position goes against us, the pain of realising the loss (by hitting stop-loss) feels worse in the moment than holding on and hoping. So we hold. We lower the stop-loss. We convince ourselves the thesis hasn't changed. Meanwhile, the loss compounds.
- NSE intraday reality: If you're busy at work and your position drops 8% during market hours, you often don't even see it until the damage is done.
- Positional trading reality: A stock you bought for a 30-day horizon can gap down 12% on bad results overnight. Without a pre-placed SL, you wake up to a decision made under panic.
- Psychology under stress: Research consistently shows that stop-loss decisions made in real-time, while watching a position fall, are far worse than decisions made pre-trade when you're calm and objective.
The best stop-loss is the one placed at order entry — before emotions are involved. Automation enforces this discipline mechanically, every single time, with zero exceptions.
How ARJUN Places Stop-Losses: The Technical Mechanics
ARJUN AI Trader connects to your broker via their official API — Zerodha Kite Connect or Alice Blue ANT API. When it identifies a high-conviction buy signal from the FutureGain AI engine, it executes a two-order sequence:
Step 1: Market Buy Order
A CNC (Cash-and-Carry) market buy order is placed for the configured position size. The order executes at the prevailing market price. Once filled, the API returns the actual fill price and quantity.
Step 2: SL-M Sell Order (Immediate)
Within seconds of the buy filling, ARJUN places a Stop-Loss Market (SL-M) sell order. The trigger price is calculated as:
The stop-loss percentage is configurable (default: 5% for short-term trades, 8% for mid-term). When the market price falls to the trigger, the SL-M order converts to a market sell order, exiting the position at the best available price.
Why SL-M Instead of Bracket Orders?
You might be wondering: why use a separate SL-M order rather than bracket orders (BO), which bundle the buy, stop-loss, and target into a single order?
Three reasons:
- Bracket orders are intraday only. Zerodha's bracket orders must be squared off before market close. ARJUN trades positional (CNC) positions — multi-day holds — which bracket orders don't support.
- SL-M orders persist until triggered or cancelled. A Good-Till-Triggered (GTT) or a regular SL order survives overnight, protecting you from gap-down opens.
- More flexibility. ARJUN can update the stop-loss as the position appreciates (trailing stop-loss logic), which isn't possible with fixed bracket orders.
Zerodha Kite vs Alice Blue: API Differences
ARJUN supports both Zerodha Kite Connect and Alice Blue ANT API, but they have different implementations:
Zerodha Kite Connect
Zerodha uses the GTT (Good-Till-Triggered) system for overnight stop-losses. A GTT order is placed via POST /gtt/orders with the trigger and limit price. GTT orders persist indefinitely until triggered or cancelled — perfect for multi-day positional trades. Kite also supports regular SL orders that expire at market close, which ARJUN uses for the same-day protection window.
Alice Blue ANT API
Alice Blue's API uses a different order placement structure. SL-M orders are placed with order_type: "SL-M" and a trigger_price field. One important difference: Alice Blue's SL orders must be for the same product type (CNC) as the buy order, which ARJUN handles automatically.
ARJUN never moves your funds. It places orders through your own broker account using API tokens you generate and control. You can revoke access at any time from your broker's dashboard.
What Happens When the Stop-Loss Triggers?
When the stock price falls to the trigger level, the broker's exchange connectivity executes the SL-M order at the best available market price. ARJUN receives the execution confirmation via webhook or polling and:
- Records the exit in the trade log with entry price, exit price, P&L, and hold duration
- Cancels any associated GTT orders that are no longer valid
- Sends you a Telegram notification summarising the exit
- Makes the freed capital available for new buys in the next analysis cycle
Getting Started with ARJUN AI Trader
ARJUN AI Trader is available as part of the FutureGain ARJUN plan (₹4,999/month). Setup takes about 15 minutes:
- Subscribe to ARJUN plan at futuregain.in/pricing
- Generate API credentials from your Zerodha Kite or Alice Blue developer portal
- Add your trading account in the FutureGain Profile section
- Configure your daily budget and stop-loss percentage (default: 5%)
- Enable ARJUN — the bot begins trading during NSE market hours
Important Disclaimer: FutureGain is not registered with SEBI. Automated trading involves risk of capital loss. Past performance is not indicative of future results. Only trade capital you can afford to lose. Always consult a SEBI-registered investment advisor before automated trading.
Start Trading with Automatic Stop-Loss Protection
ARJUN AI Trader on Zerodha & Alice Blue. Every trade protected. No manual stop-loss required.
See ARJUN Plan →