Scalping Control Center

FastAPI + WebSocket dashboard
no position
not ready
Instrument NFO NIFTY 13 JAN 25750 PUT Runner - Underlying LTP - Strike LTP -
Snoozed: OFF

Live Logs (Combined)

Retracement (125m)
Stage
-
Support/Resistance
-
Direction
-
FRAR | SNR
-
Channel Bias
-
Retracement (Daily)
Stage
-
Support/Resistance
-
Direction
-
FRAR | SNR
-
Channel Bias
-
Overall
Trend Flag
-
Trend Cross
-
Trend / Zone Score
-
OC Verdict
-
OC Score
-
Top DZ
-
0/0

Unified Settings

Runtime changes eligible for live push: 0
= eligible for the next live push (checked here, on every section below). All other checkboxes are ordinary feature switches.
General / Main Settings
Token Generator Generate 1 Dhan access token — written to all 5 slots
Enter your Dhan credentials once. Click Generate to create one access token (Dhan allows only one valid token per account at a time) and save it to all 5 slots in the database.
MAIN
FUTURE
ATM PUT
ATM CALL
WS LTP
5-Slot Token Entry Paste one independent token per slot — each from a different Dhan account
Use this when each WebSocket feed is backed by a different Dhan account. Paste the pre-generated access tokens below and click Save All to persist them to the database. Leave any slot blank to keep its current value.
Dhan Credentials
Multi Instrument Tokens
Telegram
Instrument Selection
Expiry-Restricted Day Mapping
Engine Controls
Data Sources
Time Intervals And Scheduling
Logs And Runtime Visibility
BUY V2 — Entry Region, Trigger Criteria (TIE) & Qty Rules Settings
Buy Settings
Rules enforced live: 'None' trigger is Inside-DZ only; Indicators-only buying beyond the DZ requires a Sell Indicator selected (visible funnel reasons, never silent). Entry location is stamped per trade (dz / proximity / outside). Note: outside-rulebook exits (event-based Sell-Indicator/Health exits + entry-anchored backstop) land with the SELL-cycle phase — until then proximity/anywhere entries use the dual-SL (zone-anchored) protection.
Enable Fixed Target
Target Mode
Targets ONLY — the Stop Loss is a separate section below (dual-SL architecture). SZ targets are checked against Trading-Strike LTP; Retracement targets against Underlying LTP.
Buying Initial SL — Position Stop
The stop protecting the position, computed at buy time: Strict/Loose over the enabled methods below. Independent of the Zone Invalidation Stop_Loss (Zone Settings), which protects zone integrity — both are stored and monitored; whichever is hit first exits.
Sell-side settings (Sell All Single Shot, SL/Target Mode, Trailing, Tertiary Trailing) have moved to SELL V2 Settings.
DITS V2 — BUY Trigger Criteria (TIE)
Observer-only phase: these settings drive the TIE V2 dashboard, all four always-running evaluators and the research capture. Promotion to live execution is a separate, evidence-gated step.
Attribute Registry — 11 attributes (🟢 core · 🟡 valuable · ⚪ optional — advisory only · weights renormalize over the enabled set)
SelAttributeSupp ≥Confl <Weight
Institutional Strength
Liquidity Strength
Pressure Strength
Dynamic Cluster Strength
Cluster Persistence
Cluster Velocity
Market Control (−100…+100)
Trend
Option Chain
Channel Health
Multi-Instrument Agreement
RRR Settings
Buy Qty Rules
Advanced: Session Qty Clamp, Force-Entry Cooldown & Scoring Formula (Non-Mandatory)
DITS V2: these were previously hardcoded in source. Rarely tuned -- changed defaults keep today's exact behaviour.
Score Thresholds & Trend Adjustments
Trend Weights
Zone Weights & Bonuses
Option-Chain Confirm Weights
Diagnostics
Enable
Enable (read-only observation, writes RW_Data_Excel/tir_repository.db)
SELL V2 — Exit Intelligence Threat Tuning (Engine 2)
Per-threat sensitivity for the 10-threat SELL Intelligence registry (see the SELL Intelligence card on the TIE Dashboard). Warn/Critical are severity levels (0-100) driving the SAFE/WATCH/CRITICAL state; Weight is this threat's share of the combined SOFT Threat Score. HARD threats bypass scoring entirely and trigger a FULL exit the instant Critical is breached (subject to the SELL Decision Engine's Advisor Role setting above/below).
Buying SL Proximity HARD
Zone SL Proximity HARD
Zone / Structure Failure SOFT
Momentum Weakening SOFT
Institutional Exit Pressure SOFT
Health Decay SOFT
Indicator Exit SOFT (folds into Momentum Weakening unless promoted)
Time Exposure HARD
Emergency HARD (highest priority)
Profit Opportunity OPPORTUNITY (feeds the Planner, not the Decision Engine)
SELL V2 — Exit Decision (SELL-2), Order Execution (SELL-3) & Promotions (SELL-5) Settings
Sell Settings
Enable Tertiary Trailing
Applies once a tranche's tertiary trailing is active (see Tertiary Trailing above). Support Dynamic Cluster only engages when Position Health has a qualified support candidate below current price; otherwise it behaves identically to Fixed Points for that tick.
Exit Decision Engine (Engine 3)
Engine 2 (Exit Intelligence) and Engine 3 (Exit Decision) always compute and shadow-log every tick regardless of this setting -- that is required for the parity view above to mean anything. No Advisor Role (default): Engine 3's verdict never reaches real execution -- zero behaviour change, pure observer. Advisor Role: Engine 3's verdict is actually acted on -- a FULL verdict (any HARD threat: Buying SL, Zone SL, Time Exposure, Emergency, or a promoted Indicator Exit) triggers a full exit; a PARTIAL verdict (SOFT Threat Score armed, not cooldown-suppressed) triggers a partial exit of whichever tranche Engine 3 picks. Review the SELL Intelligence card's evidence before switching to Advisor Role.
Order Execution Engine (Engine 5, SELL-3)
Fill-status tracking (placed vs filled, broker error, on the SELL Intelligence card above) is always on -- pure broker observation, zero execution risk. This toggle controls ONLY whether a failed protective sell order placement is actually retried, and whether the circuit breaker (EXIT_FAILED_MANUAL, which stops further auto-exit attempts until manually cleared) is allowed to trip. With this off, a placement failure behaves exactly as before (fail once, log, move on).
Evidence-Gated Promotions (SELL-5)
Both always compute and shadow-log/publish every tick regardless of these toggles (see the SELL Intelligence card above) -- review real evidence there before turning either on. Both default OFF.
Strike Change Engine (SCE) Settings
Strike Change Engine (automatic CALL/PUT flip logic)
Hard Mode is the permanent, byte-for-byte-unchanged benchmark. Extreme/Intermediate use the Channel Health Engine (Demand vs Supply Health, Velocity, Consistency, Persistence) to bias CALL/PUT instead. The Channel Health Engine always runs in the background regardless of mode, purely to log a shadow comparison against whichever mode is actually live. Strike Switch Execution (Extreme/Intermediate only): "Inside DZ" only switches once today's existing DZ containment/armed-window conditions are met. "Outside DZ" allows an early strike-context switch (never a BUY) as soon as Daily Retracement, 125-Min Retracement, and Channel Health all agree on the same side.
V2 — Two Stages, Five Voters (config live-plumbed · voting engine lands next round, shadow-first)
VoterOnWeight
Retracement Daily
Retracement 125-Min
Depth / Channel Health
Option Chain (shadow)
Trend (shadow)
VoterOnWeight
Retracement Daily
Retracement 125-Min
Depth / Channel Health
Option Chain (shadow)
Trend (shadow)
V2 — Anti-Retrigger (Three Locks)
Live Strike / Side Override (critical -- switches the traded option instrument)
Leave Strike Price and LTP blank to switch only the side (CALL/PUT) on the current strike. Included in the next Push Live only when Side changes, or a Strike Price/LTP is entered. Same safety gate as all other live pushes: blocked while a position is open, a buy is pending, or the arm window is active.
Zone Settings
Common
Zone Invalidation Stop_Loss
Owned exclusively by the Zone Formation Engine (DITS V2 SL/Targets spec). DZ: Zone_Low − strict/loose(Fixed, ATR). SZ: Zone_High + strict/loose(Fixed, ATR). Strict = tighter (smaller buffer), Loose = wider. Single source of truth for zone invalidation; no other module calculates it.
Targets
DZ Requirements
SZ Requirements
Zone Weights
The weighted score above is also compared against the two thresholds below to label a zone Strong / Normal / Weak (used by the DZ/SZ Selection filters).
Zone Thresholds
Trend Parameters
Zone Filters
Enable
Enable
Merge DZ Overlaps
Merge reduces overlapping zones while avoiding wide “coverage zones”.
Merge SZ Overlaps
Merge reduces overlapping zones while avoiding wide “coverage zones”.
Depth Settings
1. Depth Data Configuration
2. Cluster Configuration
3. Institutional Activity Detection
H. Multi-Timeframe Weight Matrix (max 4 if not OFF)
Time
Weightage (Total=100)
OFF
1m
5m
15m
30m
60m
User (min)
I. Institutional Scoring Weights (Total = 100)
J. Zone Validation
K. Trade Filter
L. Zone Health Filter
M. TDI Cluster Weights
N. TDI Institutional Weights
O. TDI Liquidity Weights
P. TDI Pressure Weights
Q. TDI Trade Score Weights
R. TDI Dominance Weights
S. TDI Market Control Weights
T. TDI Qualification Thresholds
U. Multi Instrument Weights
W. Multi Instrument Consensus, Triggers, and Hysteresis
X. Position Health Engine Core
Y. Position Health Windows, Weights, and CSV
Option Chain Settings
Attributes
Direction Thresholds
Non-zero thresholds reduce noisy direction flips.
Score Thresholds
Weights
Option Chain Analytics (Multi-TF)
Buy (TF + Weight)
Sell (TF + Weight)
Indicator Settings
Buy Side Indicators
HM-Buy: Configuration (Independent RSI/EMA/WMA, Advanced)
HM-Buy computes its own RSI/EMA/WMA series with the periods below -- independent from Sell Side's HM (and from RSI14/other indicators). R=RSI, E=EMA of RSI, W-Short=WMA of RSI (fast), W-Long=WMA of RSI (slow). Bullish-only: fires on a fresh bullish crossover (prior tick NOT E>W-Short>W-Long, current tick IS) in the low RSI band, or a fresh crossover / already-established uptrend with gaps not shrinking in the high RSI band -- ALL cases additionally require R(t) > E(t) -- see full formula in chat history.
EMA Crossover: Configuration (Independent Fast/Slow, Advanced)
EMA-Fast vs EMA-Slow crossover on price close, independent from Sell Side's EMA Crossover. Gap = EMA-Fast - EMA-Slow. Fires on a fresh bullish crossover (both rising), or an already-established uptrend with the gap strictly expanding, or a fresh crossover with the gap not shrinking.
Sell Side Indicators
Feeds SET_INDICATORS_BASED_SELL_CONDITION_FLAG, a real input to SELL V2's Exit Intelligence (folds into Momentum Weakening, or promotes to its own HARD threat if enabled there). Whether a selection here can actually drive a real exit depends on SELL V2's Advisor Role setting.
HM-Sell: Configuration (Independent RSI/EMA/WMA, Advanced)
HM-Sell computes its own RSI/EMA/WMA series with the periods below -- independent from Buy Side's HM. R=RSI, E=EMA of RSI, W-Short=WMA of RSI (fast), W-Long=WMA of RSI (slow). Bearish-only, the literal mirror of HM-Buy: fires on a fresh bearish crossover (prior tick NOT E<W-Short<W-Long, current tick IS) in the high RSI band, or a fresh crossover / already-established downtrend with gaps not shrinking in the low RSI band -- ALL cases additionally require R(t) < E(t).
EMA Crossover: Configuration (Independent Fast/Slow, Advanced)
EMA-Fast vs EMA-Slow crossover on price close, independent from Buy Side's EMA Crossover, the literal bearish mirror. Gap = EMA-Fast - EMA-Slow. Fires on a fresh bearish crossover (both falling), or an already-established downtrend with the gap strictly expanding more negative, or a fresh crossover with the gap not shrinking back toward zero.
General
Indicators run on real closed 1-min candles; between candle closes, this short interval builds a live sub-candle so the reading updates every tick instead of waiting for the minute to close.
RSI & ADX
MACD & Bollinger
Stochastics

Trade Intelligence Engine (TIE) V2 DASHBOARD

Top DZ
-
Top DZ Range
-
Proximity Range
-
DZ Position
-
Top SZ
-
Top SZ Range
-
SZ Proximity Range
-
BUY/SELL
-
OC Verdict
-
OC Score
-
Trend
-
Buy Mode
-
Indicator Values (selected indicators, live)
-
125-min Retracement
-
Daily Retracement
-
BUY Stages
Channel Health Engine
Waiting for an active retracement battle…
Zone Hierarchy
Demand Zones
Supply Zones
Feed Monitor
DHAN_MAIN_TOKEN
-
DHAN_FUTURE_TOKEN
-
DHAN_ATM_PUT_TOKEN
-
DHAN_ATM_CALL_TOKEN
-
Feed Status Table
Data Feed Sources, Routing & Latency (Component | Provider | Transport | Mode | Status | Latency)
Transport shows whether each feed goes direct or via Redis (e.g. "WS→Redis→Reader" vs "WS direct"); Details includes the active engine implementation (Go/Python) for the Tick/Depth engines.
Developer Mode
Feed Debug
Runtime Qualification Profiler (developer)
Runtime Qualification Profiler (live gate pass/fail rates — evidence-based threshold tuning) Waiting for data…
Ticks recorded: 0 CSV:
Sorted by Pass% ascending. Gates at the top are most likely blocking trades.
Gap (when failing) = how far below threshold on average when this gate fails. Use this to tune thresholds.
Live Depth Map
BUY Side
SELL Side
BUY Stage Matrix — all four evaluators, always running (trigger-layer flags)
Consensus — Committee Vote
Waiting for data…
Alignment — Checklist
Waiting for data…
Attribute Table — 11 attributes · name color = keep-priority (🟢 core · 🟡 valuable · ⚪ optional) · click ▸ for instrument breakdown
Live Institutional Events
Observer Research Strip — today (would-have-fired counts, virtual EXECUTE)
Depth Intelligence
Enabled
-
Tick Size
-
Zone
-
Region
-
In Region
-
Near
-
Strong
-
Ready
-
Mkt State
-
Health
-
Zone State
-
Momentum
-
Developer View (Raw Data & Details)
Developer Raw JSON
Trade Decision Indicator
MARKET CONTROL
Market Control Score
-
Market Control State
Control Dimensions
CONTROL ALIGNMENT
Alignment Score
-
Alignment State
STRENGTH VS CONTROL MATRIX
TARGET INTELLIGENCE (SUPPLY CLUSTER PROXY)
LIVE EVENT TIMELINE
MARKET NARRATIVE
Developer Diagnostics
Zone Intelligence
ZONE DECISION : -
Blocking Factors
Primary Blocker
-
Zone Summary
Zone Delta
Alerts
Driver Analysis
Top Events
Dynamic Cluster Evolution (60s)
Top 5 Walls
Top 5 Refills
Top 5 Absorptions
Top 5 Icebergs
Top 5 Spoofs
Instrument Intelligence
Display Metrics
Events and Clusters
Institutional / Liquidity / Pressure
Market Control
Current vs Last DZ Exit (Delta)
Current vs Last SZ Exit (Delta)
Timeline
Trade Decision Details
Trade decisions will be based on consensus strength, consensus market control, and consensus triggers.
Consensus Readiness %
-
Entry Probability
-
Consensus Trigger
-
Eligibility
-
Decision Flow
Consensus Trend
Consensus Triggers
Developer Mode
Blocking Factors
Alerts
Consensus Driver Analysis
Agreement Matrix
System Status
Quick Analytics
Eligibility Matrix
Normalization Rules
Alignment Engine
Decision: -
Verdict: -
TS Reliable: -

                      
Consensus Summary (raw)
Zone: Static Snapshot (Frozen)
Zone: Static Snapshot (Current)
Zone: Static Snapshot (Last Exit)
Zone: Developer Data
Instrument: Raw Metrics
Instrument: Snapshot / Debug
Trade: Normalized Metrics
Trade: State Machine / Hysteresis
Trade: Developer Fields
Indicator Logs Buy ConditionFalse Sell ConditionFalse
Indicators (Current)
Indicators (Previous)

MULTI INSTRUMENT · Position Health

Live Position Health is active only while a trade is open. Full historical analytics (Support Memory) are in Developer Mode below.
Position Context
Live Position Health
Developer Mode — Support Memory Analytics
Market Context
Historical support memory activates after an executed trade. No auto-exit logic is attached in this phase.
Position Summary
Composite Health Breakdown
Multi Timeframe Health
Support Memory Summary
Strength Summary
Support Chain Summary
Regeneration Summary
Support Chain Visualization
Support Node Table
Support Timeline
Position Health Developer Data
Phase-2 Placeholders
Live Position Health — Dominant Support Detail

Retracement

Top: HLC inputs • Bottom: compare up to 2 TFs
H
L
C
Year
Half
Qtr
Month
Week
Compare
-
H:- L:- C:-
Stage
-
Support/Resistance
-
Direction
-
Flags
-
Channel Bias
-
-
H:- L:- C:-
Stage
-
Support/Resistance
-
Direction
-
Flags
-
Channel Bias
-
Phase
-
Side
-
UL
-
ATM
-
BUY
SELL
Final
Final
Option Chain
CE OI
-
PE OI
-
PCR
-
IV Skew
-
Delta Skew
-
Straddle
-
Verdict
-
Score
-
Option Chain (Latest)
Option Chain (Previous)

Trade Performance

Total Records: 0
Stock Zone Zone_High Zone_Low Zone_Tag Zone_Strength_Score Targets Force_Buy Super_Exit Strategy_Id Bought_CHL Bought_Qty Buy_Datetime Buy_Status Buy_Price Initial_SL Qty_Sold_T1_Time Qty_Sold_T1 T1 T1_SL Qty_Sold_T1_LTP Qty_Sold_T2_Time Qty_Sold_T2 T2 T2_SL Qty_Sold_T2_LTP Qty_Sold_T3_Time Qty_Sold_T3 T3 T3_SL Qty_Sold_T3_LTP Qty_Sold_T4_Time Qty_Sold_T4 T4 T4_SL Qty_Sold_T4_LTP Qty_Sold_T5_Time Qty_Sold_T5 T5 T5_SL Qty_Sold_T5_LTP Qty_Sold_SL_Time Qty_Sold_SL Qty_Sold_SL_LTP Avg_Sold_Price Net Profit/Loss
0/0