QuantsappFaster in the app: live data, alerts, tradingOpen
Log inStart free
Option buyingIntradayNIFTYhigh complexity

Ellipse tangent breakout

This intraday option-buying strategy turns a geometric chart idea into rules. It joins the last swing low and swing high on 5-minute NIFTY futures bars with a quarter-ellipse, takes the ellipse's tangent at a balance point as a trigger line, and buys an at-the-money option when price closes through that line. The aim is to spot when a swing has run out of steam and is turning.
Draws a curved trigger line between the last NIFTY swing high and low and buys the ATM option against the last swing when price closes through it.
Market viewFades moves (mean reversion)
TradesNIFTY weekly ATM call or put, bought
RiskLimited to the premium paid
CapitalPremium only
SuitsAdvanced
Trades a month21.3
Typical hold1.6 hours
Profitable months6 of 12
Longest losing run10 trades
Made money inTrend days that close near the high or lowMarkets below their 20-day averageIndia VIX above 14.5
Lost money inQuiet sessions with a range under 0.75%Markets above their 20-day averageNIFTY weekly expiry day
Default settings
Symbol
Bar min
Pivot bars
Entry start
Last entry
SL %
Target %
Exit time
Max cross age bars
Lots
Backtest this strategy →Change any setting, pick your own period and run it in the Quantsapp web app. Backtesting is part of the Max plan. Pro+ members can use it now as a free trial.
1

How it trades

What it trades
Universe
NIFTY Intraday · 1 Oct 25 → 30 Sep 26
Enters
5-min close through the ellipse tangent line, 09:30-14:45 (put after up-swing)
Legs
BUY CE · ATM · Nearest weekly · 1 lotBUY PE · ATM · Nearest weekly · 1 lot
Exits
stop 30% of the premium paidtarget 60% gain on the premiumtime 15:15
Re-entry
Next ellipse signal; one position at a time
Pivots
a pivot high is a bar whose high is >= the PIVOT_BARS highs before it and > the PIVOT_BARS highs after it - so it is only known PIVOT_BARS bars later; pivot lows mirror it.
Ellipse
when a pivot high is confirmed after a pivot low (an up-leg; "bearish zigzag") a quarter-ellipse is centred at (low's bar, high's price) with semi-axes a = bars from low to high and b = low - high; a pivot low after a high mirrors it (centre (high's bar, low's price), b = high - low). It is sampled at every whole degree 0..90 (bar positions rounded down, repeats dropped).
Tangent
the sampled point where the price travel before it and after it are most nearly equal; the trigger line goes through that point with the ellipse's slope there, -(b^2 x) / (a^2 y) (x, y measured from the centre), extended forward bar by bar.
Entry
after an up-leg ellipse, the first close BELOW the line -> buy the ATM put; after a down-leg ellipse, the first close ABOVE the line -> buy the ATM call (nearest weekly, LOTS). Bars are scanned from the second pivot on; a signal is acted on when it is known (the bar it is found on), between ENTRY_START and LAST_ENTRY, one position at a time; each ellipse signals once.
Stop
SL_PCT % of the premium paid. Target: TARGET_PCT % of the premium. Exit: EXIT_TIME.
2

Results

PRE-BUILT · DEFAULTS
NIFTY · 2025-10-01 → 2026-09-30 · 256 trades · before costs
Net P&L+₹14,308
Win rate37%
Max drawdown−₹38,795
Avg per trade+₹56
Profit factor1.06
Worst trade−₹4,465
3

Where it made and lost money

Bought options need movement, and this test shows it plainly. On trend days that closed near their high or low the strategy made ₹45,603 over 68 trades, while 115 trades on quiet sessions lost ₹40,232: with a range under 0.75%, the option rarely reached its 60% target and lost value to time instead. Direction mattered as much. In markets below their 20-day average it made ₹72,815 over 120 trades, but lost ₹55,891 over 132 trades in uptrends, because many signals are puts bought after up-swings, which pay best when the market keeps sliding. Expiry days, when ATM premiums decay fastest, lost ₹15,799 over 66 trades.

Trend going in
Uptrend (NIFTY above its 20-day average)−₹55,891132 trades32% won
Downtrend (NIFTY below its 20-day average)+₹72,815120 trades42% won
Kind of session on the entry day
Quiet session (range under 0.75%)−₹40,232115 trades34% won
Trend day (closed near the high or low)+₹45,60368 trades40% won
Choppy day (wide range, closed mid-range)+₹11,55469 trades39% won
Session direction on the entry day
NIFTY closed above its open−₹23,914118 trades31% won
NIFTY closed below its open+₹40,838134 trades43% won
Day of the week
Monday−₹26,47049 trades31% won
Tuesday−₹10,33263 trades29% won
Wednesday+₹3,13441 trades37% won
Thursday+₹14,47748 trades48% won
Friday+₹31,10449 trades43% won
Expiry day (NIFTY weekly)
Expiry day−₹15,79966 trades27% won
Other days+₹32,723186 trades40% won
How the entry day opened
Gap up of 0.4% or more−₹10,20338 trades34% won
Flat open+₹24,924176 trades39% won
Gap down of 0.4% or more+₹2,20438 trades29% won
India VIX the evening before
VIX below 11.5 (calm)−₹2,45268 trades35% won
VIX 11.5-14.5 (normal)+₹2,743114 trades39% won
VIX above 14.5 (nervous)+₹16,63470 trades36% won
The same trades, split by the market conditions around each entry, before costs.
4

About this strategy

  1. Build 5-minute bars of the NIFTY future, running continuously across sessions.
  2. Mark swing highs and lows: a bar whose high (or low) beats the 25 bars on either side, which is only known 25 bars later.
  3. When a new swing high follows a swing low, draw a quarter-ellipse joining them; a swing low after a high draws the mirror image.
  4. Find the point on the ellipse where the price travel before and after it is most evenly split, and extend the tangent at that point forward as the trigger line.
  5. After an up-swing ellipse, the first close below the line buys the ATM put of the nearest weekly expiry; after a down-swing ellipse, a close above it buys the ATM call.
  6. Take signals only between 09:30 and 14:45, one position at a time, each ellipse firing once.
  7. Exit at a 30% loss or a 60% gain on the premium, or at 15:15.

Why traders use it

Straight trendlines drawn between swings are subjective, and different traders draw them differently. The ellipse gives a curved, fully defined path between two pivots, so the trigger line is the same every time. A close through it suggests the momentum of the last swing has faded. Buying options rather than futures limits the loss to the premium, and the 60% target against a 30% stop aims for winners twice the size of losers.

Works best whenTrend days, especially in a market already below its 20-day average and with India VIX above 14.5, when the turn signalled by the line becomes a sustained move the bought option can ride to its target.
Struggles whenQuiet sessions with a narrow range, steady uptrends where put signals keep failing, and Tuesday expiry days when ATM premiums decay fastest.

The year in plain words

From 1 Oct 2025 to 30 Sep 2026 on NIFTY the strategy bought 256 options, won 37% and made ₹14,308 before costs, a profit factor of just 1.06. After ₹20 per order and bid-ask slippage only ₹1,461 was left, effectively break-even. Average wins of about ₹2,813 roughly offset losses of about ₹1,544, as intended, but 115 trades hit the stop against 47 targets, and 94 ran to 15:15. Months swung widely: November 2025 lost ₹19,413 while March and July 2026 each made over ₹18,700. The maximum drawdown before costs was about ₹38,800.

What the settings do

Bar minThe bar length in minutes. Longer bars produce fewer, slower pivots and ellipses.Pivot barsHow many bars on each side a swing must dominate. Larger values find only major swings but confirm them later, so signals arrive later too.Entry startThe earliest time a signal may be traded.Last entryThe latest time a signal may be traded, leaving room for the target before the square-off.SL %The stop, as a percent of the premium paid. A wider stop survives more noise but loses more when hit.Target %The profit target, as a percent of the premium paid.Exit timeWhen any open option is sold.Max cross age barsDrops signals whose crossing happened more than this many bars before it was confirmed. Zero keeps every signal, however late.

Risks

  • Swings are confirmed 25 bars late, about two hours on 5-minute bars, so many entries come well after the actual crossing.
  • Bought options lose time value on every quiet afternoon, which is why 94 trades ended at the time exit.
  • The edge before costs is thin enough that spread and brokerage remove nearly all of it.
  • The rolled futures series can jump at a monthly roll, which can shift a trigger line.

Who it suits

Technically minded traders interested in testing a precise geometric reversal rule, who prefer the defined risk of buying options and can tolerate a low win rate and uneven months.

5

Questions traders ask

What is the ellipse tangent strategy?

It draws a quarter-ellipse between the latest swing low and swing high, then uses the tangent at one point on that curve as a trigger line. When price closes through the line against the last swing, the strategy buys an ATM option in the new direction.

Is the ellipse tangent breakout profitable?

Barely. On NIFTY from 1 Oct 2025 to 30 Sep 2026 it made ₹14,308 before costs and ₹1,461 after ₹20 per order and bid-ask slippage, with a 37% win rate. Statutory charges were not included. Past results do not guarantee future ones.

Does this strategy repaint?

Not in this backtest. It only uses swing points after they are fully confirmed, so nothing it trades on changes later. The price of that honesty is lag: confirmation needs 25 more bars, so signals can arrive hours after the crossing.

Why buy puts after an up-swing?

An up-swing ellipse traces the rally just finished. A close below its tangent suggests that rally is fading, so the strategy buys a put to trade the turn lower. A down-swing ellipse works the other way, buying a call.

6

Before you rely on it

WATCH OUTConfirmed pivots lag by PIVOT_BARS bars (~2 hours at 5 minutes), so signals are late; ghost signals repaint. Gross of costs.
WHERE THE RULES WERE UNCLEAR · OUR CHOICES- Direction follows the source CODE: an up-leg ellipse fires a SELL (put) on a close below its line and a down-leg ellipse a BUY (call) on a close above. The spec's one-line summary has the two the other way round. - Only CONFIRMED pivots - the "ghost" early signals use a pivot that is not confirmed yet and repaint, so they are left out (no lookahead either way). The market-structure filter is off (its rules are not in the source). - The source's look-back for a pivot adapts to the last leg (clamped 5..500 bars); here it is PIVOT_BARS on both sides. The ellipse always joins the latest low and high (the source's "connected" case). - Because a pivot is confirmed PIVOT_BARS bars late, the first crossing may lie in those bars: the trade is taken when the crossing becomes known, at that bar's close - as the source does in a live run. That can be hours (and hundreds of points) after the crossing itself; MAX_CROSS_AGE_BARS > 0 drops such stale signals. - The source has no exits of its own (run-level SL/target): the spec's 30% / 60% / 15:15. Warm-up: the bars of WARMUP_DAYS sessions before the start. - The NIFTY future is the rolled near month, so the line can jump at a monthly roll (library gap R2-A3).
Also known asGhostTangentCrossings
Backtests run on historical NSE data with fills at the last traded price. "Before costs" excludes brokerage, taxes and slippage. Quantsapp is not recommending any strategy; it is just a backtesting utility. Past results are not a promise of future returns.

Log in or sign up

Enter your mobile number. New to Quantsapp? The same OTP creates your free account.

+91

By continuing you agree to the Terms of Use and Privacy Policy.