Register
Tutorial

Configure MTM Risk Controls in QuantPower

This tutorial sets an MTM stop loss for your whole QuantPower account with Smart Exit: a loss amount, an optional profit target, a trailing step or a locked profit, the segments it covers, and what happens when one of them is reached. It then sets the two controls that sit beside it, the daily loss limit and the kill switch, so you know which one to use for which job. Setting all three takes about ten minutes, and it is the first thing to do before you switch on an algo.

QuantPower Research · Updated 12 Nov 2026 · 17 min read

MTM, or mark-to-market, is your profit or loss for the day at current prices, on positions that are still open and positions you have already closed. A stop loss on each trade protects that trade. An MTM stop loss protects the day: it watches the total across every strategy, every manual trade and every connected broker, and acts when the total reaches the line you set. Smart Exit, the daily loss limit and the kill switch cost no tokens; they are part of every account.

Before you start

  • A connected broker. Smart Exit reads the positions your broker holds. With two or more brokers connected, it adds them together.
  • Your numbers decided in advance. Decide the loss you can take in a day without changing your plans, before the market opens, not while a trade is moving against you.
  • The second factor set up. Arming Smart Exit and setting the kill switch both ask for your second factor (an authenticator code, or your password until you add one). See the help page on login and password problems if you have not set one up.
  • Five minutes outside market hours, the first time. Nothing you set here places an order by itself, but it is easier to read the screens without prices moving.

The three controls in one table

ControlWhat it watchesWhat it does when reachedHow long it lasts
Smart ExitToday's combined MTM in the segments you chooseStops the algos in those segments, cancels their open orders and exit GTTs, and squares off every positionUntil the end of continuous trading that day
Daily loss limitToday's loss across the accountRefuses new orders. Square-offs still go throughEvery day, until you change it
Kill switchNothing: you set it by handStops trading in the chosen segments, stops the algos in them and cancels their open orders. Places no orderUntil the segment's next session

The difference matters. Smart Exit closes positions. The daily loss limit does not close anything; it only stops new risk being added. The kill switch is the "stop everything now" button, and it also does not close positions on its own. Many traders use all three: Smart Exit as the automatic line, the daily loss limit as the backstop, and the kill switch for the moment something is clearly wrong.

A short history of the MTM stop loss

Mark-to-market is as old as futures clearing. Exchanges have valued open futures positions at the day's settlement price for well over a century, so that each day's loss is paid each day and no loss can grow unseen.1 In India, the clearing corporations of the NSE and BSE settle F&O mark-to-market losses daily, and the rules on margin collection that SEBI tightened between 2020 and 2021 made every trader feel the day's MTM in cash.2

The MTM stop loss as a trading tool came later, with option selling by individual traders. A short straddle or iron condor has several legs, each with its own stop, and a sharp move can hit several strategies at once. Traders began to set a single line for the whole day: if the account is down a fixed amount, close everything and stop. Algo platforms turned that rule into a setting. QuantPower's Smart Exit is that setting, with two refinements traders asked for: a trail that follows a good day upward, and a lock that keeps part of a profit once it has been reached.

Step 1: Open the M2M tab

Smart Exit and the daily loss limit in QuantPower's M2M settingsSmart Exit and the daily loss limit in QuantPower's M2M settings
Smart Exit and the daily loss limit in QuantPower's M2M settings

Open Algos and choose the M2M tab. It holds three things for the whole account: Smart Exit, the daily loss limit and the kill switch. The screen also shows today's MTM as it stands now, so you can see where the account is before you set anything.

The figure on this screen adds up the positions at every connected broker. If you trade at two brokers, both are in it. Your Forward test account is not: it has its own separate book, and it never mixes with real money.

Step 2: Choose the segments

Smart Exit acts on the segments you pick: for example NSE F&O only, or NSE F&O and commodity. Pick the segments where your algos and your day's trades run.

  • One segment suits a trader who runs index option strategies and holds long-term shares in the same account. Smart Exit in NSE F&O then leaves the delivery holdings alone.
  • Several segments suit a trader who runs strategies in options and commodity at the same time and wants one line for the day across both.

The MTM that Smart Exit watches is the MTM of the segments you chose, not the whole account. Check the figure on the screen after you pick them.

Step 3: Set the stop-loss

Switch on Stop-loss and enter the loss, in rupees, at which the day ends. Smart Exit fires when today's MTM in your segments reaches that loss.

A common way to choose the figure is a fixed share of trading capital. Many traders use 1% to 3%:

Capital1%2%3%
₹2,00,000₹2,000₹4,000₹6,000
₹5,00,000₹5,000₹10,000₹15,000
₹10,00,000₹10,000₹20,000₹30,000
₹25,00,000₹25,000₹50,000₹75,000

Two checks before you settle on a number:

  1. Add up the stops of your algos. If you run three strategies whose own stops could lose ₹4,000, ₹3,000 and ₹5,000 on the same day, the worst case without Smart Exit is ₹12,000. Set the account line below that, so it acts before every strategy has hit its own stop.
  2. Leave room for slippage. Exits are market orders. In a fast market the fills can be worse than the price at the moment Smart Exit fired. If the most you can lose is ₹10,000, set the line a little lower, for example ₹9,000.

Step 4: Set a profit target (optional)

Switch on Target to end the day once the MTM reaches a profit, for example ₹15,000. When it is reached, Smart Exit squares off and stops the algos in its segments, exactly as for a loss.

A target is a choice, not a rule. It locks in a good day, and it also cuts a strong day short. Traders who run option selling strategies often use one, because their best days are capped anyway. Traders whose strategies make most of their money on a few large days often leave it off and use a trail or a lock instead.

Step 5: Set a trailing step (optional)

Switch on Trail and enter an amount, for example ₹3,000. Smart Exit then remembers the highest MTM of the day, and fires if the MTM falls that far from its peak.

TimeMTMHighest so farDrop from the highTrail of ₹3,000
10:00₹2,000₹2,000₹0Waits
11:15₹7,500₹7,500₹0Waits
12:30₹6,000₹7,500₹1,500Waits
13:45₹9,800₹9,800₹0Waits
14:20₹6,700₹9,800₹3,100Fires: the drop passed ₹3,000

The trail starts from the MTM at the moment you arm Smart Exit. If you arm it while the day is already down ₹2,000, the peak starts at −₹2,000 and moves up from there. Set the step wide enough that normal swings during the day do not trigger it. A step smaller than the usual intraday movement of your positions will close a good day for no reason.

Step 6: Lock a profit (optional)

Lock profit and trail is a different way to protect a good day. It has four numbers:

  • Reach: the MTM at which the lock starts.
  • Lock at: the profit kept once the reach is hit.
  • Every: each further amount of profit that raises the lock.
  • Raise by: how much the lock rises each time.

An example with reach ₹2,000, lock at ₹1,000, every ₹500 and raise by ₹250:

MTM reachedProfit lockedWhat happens if the MTM falls back
Below ₹2,000Nothing yetNo lock
₹2,000₹1,000Exit if the MTM falls to ₹1,000
₹2,500₹1,250Exit if the MTM falls to ₹1,250
₹3,400₹1,500Exit if the MTM falls to ₹1,500

The locked level only ever rises. Once a profit is locked, a later fall does not lower it. The lock differs from the trail in one useful way: it does nothing until the day is already in profit, so it never closes a day that is still finding its feet.

Step 7: Arm Smart Exit

Check the numbers, then tap Arm. Arming asks for your tap and your second factor, because once armed, Smart Exit can close every position in its segments without asking again.

The screen then shows Smart Exit as armed, with the MTM now and how far it is from each line. It stays armed until the end of continuous trading that day (3:40 PM for F&O since 3 August 20263), and then disarms by itself. Arm it again the next trading day. You can disarm it at any time from the same screen.

Step 8: Set the daily loss limit

Below Smart Exit, set the daily loss limit. Once today's loss reaches it, QuantPower refuses new orders for the rest of the day: from your algos, your signals and your own taps. A square-off is never blocked, so you can always close what you hold.

Set the daily loss limit a little beyond your Smart Exit stop-loss. If Smart Exit fires at ₹10,000 and the fills take the loss to ₹10,600, a daily loss limit of ₹12,000 then stops anyone, including you, from opening a fresh trade to win it back. That is its real job: it is the guard against the trade you would place in frustration.

You can also set a maximum number of orders a day. It is optional, and it is useful as a second guard against a strategy that misbehaves and sends orders in a loop.

Step 9: Know where the kill switch is

The kill switch is on the same tab. Choose the segments and confirm with your second factor. QuantPower then:

  1. Stops trading in those segments until each segment's next session.
  2. Stops every running algo in them.
  3. Cancels their open orders.

It places no order and does not close positions. If you also want to close everything, use Exit all on the positions screen, which stops the running algos first and then squares off. Use the kill switch when something is clearly wrong and you want nothing new to happen while you look: a strategy sending orders you did not expect, a broker session behaving oddly, or a market event you want to sit out.

Reading the M2M tab during the day

Once Smart Exit is armed, the M2M tab becomes a one-screen summary of the day's risk. Read it from top to bottom:

What you seeWhat it tells you
Today's MTMThe combined profit or loss in the segments Smart Exit covers, at current prices
Distance to the stop-lossHow much more the day can lose before Smart Exit fires
Distance to the targetHow much more profit before the day ends on the target, if you set one
Highest MTM todayThe peak the trail is measured from, if the trail is on
Locked profitThe profit the lock now keeps, once the reach has been hit
Daily loss limitToday's loss against the limit, and whether new orders are still accepted
Kill switchOff, or the segments stopped and when each one resumes

Two habits make the screen more useful. First, look at the distance to the stop-loss rather than the MTM itself: a day that is down ₹3,000 with ₹9,000 left before the line is a normal day, not an emergency. Second, after any large move, glance at the highest MTM and the locked profit. If a trail or lock is close to firing, decide now whether you are content with that, instead of being surprised by it.

The figures update over the live connection while the app is open. If the app has been in the background on a phone for a while, open the tab again before you act on what you see.

How Smart Exit closes the day

When a line is reached, Smart Exit works in this order:

  1. Stops the algos in its segments, so none of them opens a new trade while the exits go out.
  2. Cancels open orders and exit GTTs in those segments, at the broker each order went to.
  3. Squares off every position in those segments with market orders that only reduce the position. Each exit goes to the broker that holds the position.
  4. Retries any exit that did not go through. If a broker does not answer or an exit is refused, Smart Exit tries again, with a growing gap between tries, and shows what is still owed.
  5. Tells you in the app, with the reason: target, stop-loss, trail or lock.

Smart Exit reads the positions your broker reports. If a broker does not answer, the risk checks refuse new orders rather than assume there is nothing open. "No answer" is never read as "no positions".

A worked example

This example is hypothetical, with figures chosen to show how the controls work together.

A trader with ₹6,00,000 of capital runs two Nifty option algos and trades Bank Nifty futures by hand. Before the open she sets:

  • Smart Exit on NSE F&O: stop-loss ₹12,000, no target, lock profit with reach ₹8,000, lock at ₹4,000, every ₹2,000, raise by ₹1,000.
  • Daily loss limit: ₹15,000.

10:40. A sharp fall hits the short straddle algo and the futures trade together. The combined MTM falls to −₹9,800.

10:55. The fall continues. At −₹12,000, Smart Exit fires. It stops both algos, cancels a pending GTT on the futures, and sends market exits for every F&O position. The fills come back slightly worse, and the day's loss settles at −₹12,450.

11:20. The trader, annoyed, tries to sell an option to win some of it back. The daily loss limit is ₹15,000 and today's loss is ₹12,450, so the order goes through. She loses another ₹2,800. The loss now stands at ₹15,250.

11:35. She tries again. The daily loss limit has been reached, and the order is refused with the reason on screen. The day is over.

The lesson she draws: set the daily loss limit closer to the Smart Exit line. With a limit of ₹13,000, the 11:20 trade would have been refused.

A second, better day: by 13:00 the same setup is up ₹11,500. The lock reached ₹8,000 earlier and locked ₹4,000; each further ₹2,000 raised it by ₹1,000, so at ₹11,500 the locked level is ₹5,000. At 14:10 the market turns and the MTM falls to ₹5,000. Smart Exit fires on the lock, and the day ends with about ₹4,800 after the exit fills, instead of a loss.

Per-algo limits and the account line

Each algo can also carry its own M2M target and stop-loss in rupees, its own percentage limit, and its own lock profit and trail (set in the algo's exits, not on the M2M tab). These and Smart Exit do different jobs:

LevelSet whereProtects
Leg stop-lossEach leg of an algoOne option or future
Algo M2M stop-lossThe algo's exitsOne strategy
Smart ExitAlgos → M2MThe whole day, across strategies, manual trades and brokers
Daily loss limitAlgos → M2MNew risk after a bad day

A good order is to set the legs first, then each algo, then the account. Each level should be wider than the one below it, so the account line acts as the last line, not the first. The guide to the MTM stop loss covers how traders set each level.

Common mistakes

  • A stop-loss tighter than one strategy's normal swing. If one straddle can move ₹6,000 against you and back in a quiet morning, an account line of ₹5,000 will close the day for no reason.
  • Forgetting to arm it again. Smart Exit lasts one day. Arm it each morning, or before your first algo enters.
  • Setting the daily loss limit equal to Smart Exit. Then the exit fills themselves can push the loss past the limit before you have decided anything. Leave a gap.
  • Using the kill switch to close positions. It stops new trading but places no order. Use Exit all or Smart Exit to close.
  • Assuming an exact loss. Exits fill at market prices. The final figure can be larger than the line.
  • Leaving out the second broker. If you trade at two brokers but chose a segment the second broker's positions are not in, they are outside the line.

Common problems

ProblemWhat to check
The final loss was larger than the stop-lossExpected in fast markets. Set the line with room for slippage
Smart Exit did not fireIt was not armed today, the positions were in a segment you did not choose, or the day's trading had ended
A position was not closedRead the activity line: an exit refused by the broker is retried, and the screen shows what is still owed
The MTM differs from the broker's figureBrokers count day P&L slightly differently. Compare the positions first, then the prices
New orders are refusedThe daily loss limit was reached, the kill switch is on for that segment, or the maximum orders a day was reached
Arming asks for a code you do not haveSet up the second factor in Settings → Security first

Setting the numbers: three examples

The right figures depend on how you trade. These three profiles are examples, not advice; they show how the same controls are set differently.

An option seller with one strategy

A trader with ₹4,00,000 runs one Nifty short straddle algo on most days. The straddle has a 30% stop on each leg and an algo M2M stop of ₹6,000.

ControlSettingWhy
Smart Exit stop-loss₹7,000A little beyond the algo's own stop, as the last line if the algo's exit is slow
Smart Exit target₹5,000A short straddle's best day is limited by the premium collected
Trail or lockOffThe target already ends a good day
Daily loss limit₹8,000Stops a revenge trade after Smart Exit fires

Several strategies across two segments

A trader with ₹15,00,000 runs four algos: two Nifty option strategies, a Bank Nifty futures strategy and a crude oil strategy on MCX. Each has its own stop. On a bad day, three of them can lose together.

ControlSettingWhy
Smart Exit segmentsNSE F&O and commodityOne line across both
Smart Exit stop-loss₹30,0002% of capital, below the sum of the four strategies' stops
Lock profitReach ₹20,000, lock ₹10,000, every ₹5,000, raise by ₹2,500Keeps part of a good day without a fixed target
Daily loss limit₹35,000A gap above Smart Exit for slippage
Maximum orders a day300A guard against a strategy that loops

The crude oil strategy trades in the evening. Smart Exit lasts to the end of continuous trading in the segments chosen, so with commodity included it stays armed for the evening session too.

A manual trader who uses algos only for exits

A trader with ₹2,00,000 trades by hand from the chart and the Scalper and uses no algos.

ControlSettingWhy
Smart Exit stop-loss₹4,0002% of capital, for the day's manual trades
Trail₹2,500Follows a good morning upward
Daily loss limit₹4,500The most important control for a manual trader

For a trader who places every order by hand, the daily loss limit does most of the work. It is the one control that stops the next trade, not only the current one.

On expiry day

Expiry days need more room, not less. Option prices move faster in the last hours, and SEBI's rules add an extra 2% margin on short index options on expiry day.5 Two adjustments help:

  • Check the line against the size you trade on expiry. If your expiry-day strategy trades more lots than your other strategies, a line set for an ordinary day may be too tight for it.
  • Arm Smart Exit before the first expiry entry. Expiry strategies often enter in the afternoon, after the morning's settings have been checked.

If you would rather not trade expiry at all on a given day, set the kill switch for the F&O segment in the morning. It lasts until the next session.

A morning checklist

  1. Open Algos → M2M and read the MTM. It should be zero before the open, apart from overnight positions.
  2. Check that the daily loss limit and the maximum orders a day are set.
  3. Choose the segments for Smart Exit and enter the stop-loss and any target, trail or lock.
  4. Arm Smart Exit with your second factor.
  5. Check each algo card: the broker is signed in and the algo will run today.
  6. Keep the kill switch and the steps for how to pause automation in mind for the moment something looks wrong.

Where account-level risk control is going

Two changes are already visible. Brokers in India now carry responsibility for every algo order that passes through them under SEBI's retail algo framework, in force for every broker from 1 April 2026, and account-level limits are one of the controls they expect.4 And traders increasingly run several strategies at once, across more than one broker, which makes a single line for the whole day more useful than a stop on each strategy alone. The direction is towards fewer, clearer account rules that work across brokers, rather than more settings on each strategy.

Next steps

  • Learn the meaning of MTM and how it is calculated.
  • Read how a trailing stop loss works on a single trade.
  • Check today's positions with the tutorial on managing open positions.

Start with 500 free tokens

Connect your broker, build a strategy and test it on paper before a single live order goes out.

Frequently asked questions

Does Smart Exit cost tokens?

No. Smart Exit, the daily loss limit, the maximum orders a day and the kill switch are part of every account and cost no tokens.

Does Smart Exit close my long-term holdings?

Only if you include the cash segment and the holdings show up as today's positions. Choose the F&O segment alone if you want Smart Exit to leave delivery holdings untouched.

Can I change Smart Exit after arming it?

Disarm it, change the numbers and arm it again. Arming again asks for your second factor, and the trail starts from the MTM at that moment.

What happens to my algos after Smart Exit fires?

The algos in its segments are stopped and their positions squared off. They do not restart by themselves that day. You can switch them on again from the algo card if you choose.

Does Smart Exit cover my Forward test account?

No. The Forward test account has its own separate book and never mixes with real money. Smart Exit, the daily loss limit and the kill switch cover your real brokers.

References

  1. CME Group, "Daily settlement" and mark-to-market in futures clearing (cmegroup.com)
  2. SEBI, circulars on the collection of upfront margins and the peak margin framework, 2020 and 2021 (sebi.gov.in)
  3. NSE, revision of trading hours for equity derivatives, effective 3 August 2026 (nseindia.com)
  4. SEBI, circular on safer participation of retail investors in algorithmic trading, 4 February 2025, in force for every broker from 1 April 2026 (sebi.gov.in)
  5. SEBI, circular "Measures to strengthen Equity Index Derivatives framework for increased investor protection and market stability", 1 October 2024: extreme loss margin of 2% on short options on expiry day (sebi.gov.in)
Trading involves substantial risk. A stop loss does not guarantee an exit at a specific price. This page is for information and is not investment advice.