Updated Model Active • AWS EC2 Production QuadraTrades Production Reference 493 / 493 Unit Tests Passed

Partial Profit Booking & Dynamic Trailing Architecture

The definitive architectural guide to QuadraTrades' updated non-linear trade management engine: front-loaded 40/30/15 scaling, +2.0R milestone lock, tiered accumulated dollar profit retention, and afternoon theta stagnation defense.

Target 1 (+1.5R)
Book 40%
Target 2 (+3.0R)
Book 30% (+2R Lock)
Target 3 (+5.0R)
Book 15%
Core Runner
15% Free-Roll

1 Architectural Transformation: Old vs. Updated Model

How each parameter was upgraded to resolve the profit giveback paradox and maximize net realized expectancy.

Parameter / Mechanism Previous Model (Before Oct 11) Updated Model (Current Production) Impact & Strategic Benefit
Target 1 Scaling (+1.5R) 20% Position Booked 40% Position Booked Doubles upfront banked cash cushion; covers all friction.
Target 2 Scaling (+3.0R) 30% Position Booked (50% cum) 30% Position Booked (70% cum) Banks cumulative 70% profit before major market pullbacks.
Target 3 Scaling (+5.0R) 20% Position Booked (70% cum) 15% Position Booked (85% cum) Harvests windfall multi-R expansion on high-momentum days.
Core Free-Roll Runner 30% Position Size 15% Position Size Minimizes capital at risk while capturing 8R–10R+ mega expansions.
Milestone 2 Stop Floor +1.5R Lock (1.5R giveback gap) ≥ +2.0R Lock Floor Eliminates the 1.5R gap; caps giveback to ≤ 1.0R at Target 2.
Dynamic Trailing States Only at RUNNER (≥ 5.0R) Active in PARTIAL_1, PARTIAL_2, RUNNER Protects profits from the exact moment +1.5R is reached.
Retracement Protection Math 20% Total Premium Drop Tiered Dollar Gain Retention (65%/75%/80%) Anchors to accumulated profit; prevents 85% giveback on high premiums.
Midday Theta Defense None (Held into 15:20 EOD) Afternoon Theta Stagnation Defense Exits flat trades after 25m post-13:00 IST at 85% peak gain.

2 The 4-Stage Milestone Waterfall in the Updated Model

Visual progression from trade entry to final runner liquidation.

STAGE 1 100% Size

Trade Entry & Initial Risk

Position initialized via 70%+ confluence setup. Structural stop-loss placed beyond swing level or FVG boundary.

Stop Level:
Structural SL (Max 35 pt)
STAGE 2 Book 40% Qty

Target 1 (+1.5R Hit)

Immediately banks 40% cash cushion. Hard stop raised to Breakeven (+2 pt buffer). Dynamic Runner Engine activated!

Protective Stop:
BE (+2 pt) / 65% Gain Lock
STAGE 3 Book 30% Qty

Target 2 (+3.0R Hit)

Banks 30% (70% cumulative booked). Stop ratchets to at least +2.0R lock floor or 75% peak dollar profit retention.

Protective Stop:
≥ +2.0R / 75% Gain Lock
STAGE 4 Book 15% Qty

Target 3 (+5.0R Hit)

Books 15% (85% cumulative booked). Remaining 15% holds as pure free-roll runner trailed along 5m swings & 80% gain lock.

Protective Stop:
5m Swing / 80% Gain Lock

3 Interactive Lot Scaling & P&L Calculator (Updated Model)

Simulate any option trade in real time to view exact whole-lot allocations, milestone trigger LTPs, and guaranteed cash locked.

Risk Geometry (1R)
₹15.00 / Share
Total Risk: ₹1,950.00
Milestone 1 (+1.5R)
LTP: ₹192.50
Book: 52 Qty (40%)
Bank: +₹1,170.00
Milestone 2 (+3.0R)
LTP: ₹215.00
Book: 39 Qty (30%)
Bank: +₹1,755.00
Milestone 3 & Runner
LTP: ₹245.00
Book: 20 Qty (15%)
Runner: 19 Qty (15%)
Guaranteed Cumulative Banked at Milestone 2 (+3.0R):
₹2,925.00 Banked (1.50R of Total Position Risk)
Trailing Stop at M2: ₹200.00 (+2.0R Lock Floor)

4 Exchange Whole-Lot Discretization Logic (NSE Compliance)

Ensuring zero order rejections on the National Stock Exchange of India.

1. Strict Lot Multiple Quantization

Because NSE index options only permit transactions in integer multiples of the contract lot size (e.g. 65 shares per lot), partial percentage calculations are quantized using whole-lot rounding:

target_units = int(round((total_qty * target_pct) / lot_size) * lot_size)
booked_qty = min(target_units, remaining_qty - lot_size)

This prevents fractional share rejections while guaranteeing that at least 1 whole lot remains for subsequent milestone runners.

2. Small-Capital Single-Lot Policy (NSE Discretization Solution)

When trading exactly 1 lot (e.g. 65 shares), quantity cannot be partially split into fractional lots on the NSE. The engine applies our institutional policy:

Quick Harvest Profile (Chop/Range/Reversal):
• At +1.5R: Stop moves to Breakeven (+1 pt buffer)
• At +2.5R (Target 2): 100% Position Harvested (ExitReason.TARGET_REACHED)
Standard & Trend Profiles:
• At +1.5R: Stop moves to Breakeven
• At +3.0R: Stop ratchets to +2.0R guaranteed lock floor
• At +5.0R: Stop ratchets to +3.0R lock or optional full exit
• Parabolic Climax (+8R/+10R): 100% Terminal Harvest

Guarantees that 1-lot accounts harvest institutional gains without giving back profits during choppy re-accumulations.

4B Terminal Blow-Off Expansion Harvest (Mega-R Profit Take)

Algorithmic 100% position liquidation at statistical expansion ceilings.

STANDARD_BALANCED
+8.0R Harvest
BOS, Cont, 5m swings
TREND_RUNNER
+10.0R Harvest
TrendDay, High ADX
EXPIRY_GAMMA
+12.0R Harvest
0DTE Delta explosion
QUICK_HARVEST
+4.5R Harvest
Mean reversion limit

5 Afternoon Theta Stagnation Defense (Post-13:00 IST)

The algorithmic defense against midday options time decay.

The Problem: Non-Linear Afternoon Theta Decay

In weekly NIFTY options, options lose extrinsic value non-linearly after 13:00 IST. If spot consolidates sideways for 30–60 minutes, an option can lose 15–30 points of premium pure theta decay even if the underlying index does not reverse.

Trigger Condition:
• Current Time ≥ 13:00 IST
• Trade is in green (Current Gain ≥ +1.5R)
• Time since highest premium ≥ 25 minutes
Action Taken: Ratchet Trailing Stop to 85% of Peak Gain

This single defense saved over ₹3,168 in Trade #24 and ₹3,161 in Trades #16 & #17 during last week's sessions!

6 Code Implementation & Production Verification

Active production modules running on AWS EC2 systemd service.

trade_management/trade_manager.py
• milestone_1_booking_pct = 0.40
• milestone_2_booking_pct = 0.30
• milestone_3_booking_pct = 0.15
• Ratchets M2 stop to Entry + (2.0 * Risk)
• Evaluates runner engine across PARTIAL_1, PARTIAL_2, RUNNER
trade_management/runner_engine.py
• Tiered Gain Retention: 65% (<2.5R), 75% (<4.0R), 80% (≥4.0R)
• Afternoon Theta Stagnation defense (post-13:00 IST 25m flatline)
• 5-minute structural swing trailing
• Opposing CHoCH early invalidation exit