Flagship systemBuilt

Strategic Engine

The research and automation platform behind every strategy I build.

It connects market data, strategy development, automated experiments, validation, risk control and broker execution into one repeatable pipeline. A strategy goes in as an idea and comes out either validated and running, or rejected with a reason.

BUILT · RUNNINGStrategicEngine 01DATA02FEATURES03RESEARCH04BACKTEST05VALIDATION06RISK07EXECUTION08MONITOR

How it works

Seven gates between an idea and a live order

Most candidates are rejected, and that's the point. Every rejection is a strategy you didn't lose money on.

Candidates flowing through the gatesSimulation · red = rejected · green = deployable
AI layer · Hermes AIDrafts, reviews and summarises. Never places orders.
  • Strategy code drafts
  • Test generation
  • Experiment configs
  • Code review
  • Research summaries
  • Sentiment extraction

Data

  1. 01Data sourcesPrice, fundamentals, derivatives, news
  2. 02IngestionScheduled pulls, raw storage
  3. 03ValidationGaps, timestamps, corporate actions

Research

  1. 04FeaturesIndicators, statistics, regimes, sentiment
  2. 05StrategyRules as code, parameter templates
  3. 06BacktestCosts and slippage modelled

Validation

  1. 07RobustnessWalk-forward, heatmaps, Monte Carlo
  2. 08Paper tradingLive data, no capital

ExecutionDeterministic

  1. 09Risk engineLimits, order checks, kill switch
  2. 10Broker adaptersZerodha, Dhan, IBKR, paper
  3. 11MonitoringLogs, Telegram alerts, feedback

Deterministic boundary: risk limits are code, not suggestions. Nothing probabilistic can override them.

Modules

Built from 4 systems that work together

Each module is a complete system on its own. Together they form the engine. Open one to see inside.

Backtesting & ValidationBuilt
Part of Strategic Engine

Quant Research Engine

Every test type runs on the same data, the same cost model and the same reports, so results are comparable by construction.

PythonpandasNumPyVectorBT
AI SystemsBuilt
Part of Strategic Engine

Hermes AI

Turns a written trading rule into strategy code, sets up experiments, writes tests and summarises results. It drafts; the engine decides.

PythonLLM APIsStructured outputspytest
Execution & RiskBuilt
Part of Strategic Engine

Broker Adapter & Risk Layer

Strategy code talks to one adapter interface. Paper and live brokers plug in behind it, and every order is checked by deterministic risk rules first.

PythonREST & WebSocket APIsZerodha Kite ConnectDhan
AI SystemsBuilt
Part of Strategic Engine

News Sentiment Pipeline

Headlines are cleaned, tagged by entity and topic, scored for sentiment and event type, and stamped with the time they became available.

PythonLLM APIsStructured outputspandas

Validation

Ten tests a strategy has to survive

Each method answers a different question. None guarantees the future. Together they make it very hard for a weak strategy to look strong.

In-sample vs out-of-sampleSimulated data · illustration

The orange section is data the strategy was never tuned on. That is the part that matters.

Parameter stability heatmapSimulated data · illustration
Monte Carlo drawdown rangeSimulated data · illustration
Walk-forward windowsExample
Window 1
Window 2
Window 3
Window 4
Window 5
Window 6
Stitched

Tune (in-sample)Test on unseen data

Historical backtestingHow would these exact rules have traded?

SimpleReplay the rules over history.

TechnicalThe baseline. Says nothing about the future on its own.

In the engineFirst gate for every candidate.

Vectorised researchIs this idea worth a closer look?

SimpleTest thousands of variants with array maths.

TechnicalFast parameter scans. Less realistic about execution.

In the engineScreening with VectorBT.

Event-driven simulationDoes it behave correctly bar by bar?

SimpleSimulate the market one event at a time.

TechnicalModels order handling, fills and timing faithfully.

In the engineRun on candidates that pass screening, with Backtrader.

Transaction costsWhat do fees and taxes do to the result?

SimpleCharge every trade what it really costs.

TechnicalBrokerage, exchange fees, statutory charges and taxes, by market.

In the engineOne cost model shared by all test types.

SlippageWhat if fills are worse than the chart?

SimpleAssume you don't get the exact price.

TechnicalFixed, spread-based or volatility-scaled slippage.

In the engineEvery report is rerun at 2–3x expected slippage.

Out-of-sample testingDoes it work on data it never saw?

SimpleLock some data away until the end.

TechnicalTuning data and evaluation data never mix.

In the engineSplits are fixed in config before the first run.

Walk-forward optimisationDoes re-tuning over time still work?

SimpleTune, test the next slice, repeat.

TechnicalRolling windows give a stitched out-of-sample record.

In the engineStandard report for every candidate.

Parameter sensitivityIs the best setting a fluke?

SimpleNudge every setting and watch.

TechnicalA broad plateau means robust; a spike means overfit.

In the enginePermutation grids with stability heatmaps.

Monte Carlo analysisHow much was luck in trade order?

SimpleShuffle the trades many times.

TechnicalA distribution of drawdowns instead of one path.

In the engineRun on every trade list after backtesting.

Paper tradingDoes live behaviour match the simulation?

SimpleTrade live data with fake money.

TechnicalExposes latency, rejections and wrong assumptions.

In the engineFinal gate before any capital.

Risk engine

Every order is checked. Some are stopped.

Strategy logic decides what it would like to do. The risk engine decides what is allowed. They live in separate code, so a strategy bug can never switch off a limit.

  • Position-sizing constraints
  • Maximum position and exposure limits
  • Daily loss threshold
  • Order validation
  • Duplicate-order protection
  • Stale-data detection
  • Connectivity checks
  • Kill switch
  • Audit trail for every decision
Order checks, live viewExample
    Hermes AI · rule to codeExample

    Rule, in plain EnglishGo long when the 20 EMA crosses above the 50 EMA and RSI(14) is below 70. Exit when the 20 EMA crosses back below. Act on the next bar.

    class EmaRsiTrend(Strategy):
        params = {"fast": 20, "slow": 50, "rsi_max": 70}
    
        def signals(self, df):
            fast = df.close.ewm(span=self.p.fast).mean()
            slow = df.close.ewm(span=self.p.slow).mean()
            rsi = indicators.rsi(df.close, 14)
            entry = cross_above(fast, slow) & (rsi < self.p.rsi_max)
            exit_ = cross_below(fast, slow)
            return entry.shift(1), exit_.shift(1)  # next bar only

    AI layer

    AI writes the first draft. Tests decide.

    Hermes AI turns a plain-English rule into strategy code, writes its tests and sets up experiments. Every line it produces passes the same tests as hand-written code, and it has no route to place an order.

    Inside Hermes AI

    What you get

    When your strategy runs through Strategic Engine

    • SPAn exact specificationEvery rule written down, with worked examples.
    • VCValidated codePine Script, MQL5 or Python, tested against the spec.
    • RRA robustness reportWalk-forward, heatmaps and Monte Carlo, in plain language.
    • RERisk-protected executionEvery order passes the risk engine first.
    • ALMonitoring and alertsTelegram alerts, logs and automatic recovery.
    • VDAn honest verdictIf a strategy fails validation, you hear it before you fund it.
    • RPReproducible researchConfigs and versions saved, so any test can be rerun.
    • SCRoom to scaleNew strategies, markets and brokers plug into the same pipeline.

    Put your strategy through the engine

    Send me your rules, rough or exact. You'll get a specification, validated code and an honest verdict.