A test alert was just sent to your Telegram. Check your phone.
⚠️
Couldn't generate connection link
Unknown error
Strategy vs Simulation Engine
Two related but distinct concepts in tradingsmart.ai.
Strategy
Simulation Engine
Created via
+ NEW STRATEGY
+ NEW ENGINE (Engine Hub)
Source
Pasted Pine / Python / MQL / DSL
Studio: paste · git · visual builder
Execution
Evaluated each tick
Isolated Web Worker (parallel)
Live code edit
Re-create
✓ Hot-reload
Version history
—
✓ Snapshots + revert
Detail metrics
P&L · positions
+ Sharpe · max DD · win rate · logs
Best for
Testing an idea fast
Running an idea seriously
💡 You can promote a strategy to a simulation engine any time — open the strategy → ⚙ EDIT → Simulation Engine Studio.
⧉ NEW STRATEGY
No format detectedWrong? Pick manually
Advanced — write custom rules (one per line)
SOURCE
PARSED STRATEGY GRAPH
INDICATORS
EMA(9), EMA(21)
ENTRY
cross(EMA9, EMA21) above
EXIT
cross(EMA9, EMA21) below
SIZE
5% of equity
RISKCONFIRM
stop: 2% — inferred
SEGMENT · what market is this strategy for?
Auto-detected from selected scrips. Click a chip to filter.
SCRIPS · search and pick any symbol
OTHER NOTIFICATION CHANNELS · configure tokens in F10 SET
SIGNALS
—
WIN RATE
—
MAX DD
—
SHARPE
—
PROFIT FACTOR
—
EXPECTANCY
—
RUNNING BACKTEST ON LOADED HISTORICAL CANDLES…
READY TO ACTIVATE
STRATEGYPasted Strategy
SCRIPS / TF—
RULE—
INVESTMENT × LEVERAGE$5,000 × 1
LOT × MAX LOTS1 × 3
TARGET / STOP / TRAIL3% / 1.5% / 0%
NOTIFYpush
⚡ SIMULATION ENGINE HUB
Add a custom simulation engine. Three ways:
GIT IMPORT
Clone a public/private GitHub repo and pick a JS file.
CODE PASTE
Drop in JavaScript with onBar(bar, ctx). Validated and sandboxed.
MANUAL BUILDER
Pick indicators, entry & exit rules. Auto-compiled to JS.
—
—
📊 AI CO-PILOT USAGE
Loading usage data…
—
⚡ SIMULATION ENGINE STUDIO · CREATE NEW ENGINE
1Code
2AI Co-Pilot
3Setup
4Telegram
Pick a preset or write your own. Helpers: ema, sma, rsi, macd, bollinger, stoch, atr, vwap, highest, lowest, crossover, crossunder.
👋 New here? Pick the easiest path:
📖 JavaScript API reference— function signature, helpers, ctx fieldsclick to expand
CONTRACT
Write a single JavaScript function. The runtime calls onBar(bar, ctx) on every new candle of every symbol the simulation engine watches. Decide what to do, then call ctx.buy(), ctx.sell(), or do nothing.
MINIMAL EXAMPLE
function onBar(bar, ctx) {
const fast = ema(ctx.closes, 9);
const slow = ema(ctx.closes, 21);
if (fast > slow) ctx.buy();
if (fast < slow) ctx.sell();
}
INPUTS
bar = current candle: { open, high, low, close, volume, time }
Ready to check your code.What VALIDATE does: reads your code without running it, checks for typos / missing brackets / undefined helpers, and confirms it has the required onBar(bar, ctx) entry point. Catches errors here = saves a confused-bot rabbit hole later. Nothing is deployed by clicking VALIDATE.
✨ Describe a strategy in plain English — Gemini fills in the indicators & rules below.
Limited to EMA / SMA / RSI / HIGH / LOW / PRICE with crossover & threshold rules.
For MACD, Bollinger, ATR, VWAP, or multi-condition logic, use ✨ AI CONVERT.
Idle. Describe a strategy and click AI BUILD.
INDICATORS
ENTRY (BUY) RULE
EXIT (SELL) RULE
COMPILED JS PREVIEW (read-only)
🧪 LLM-powered conversion.
Paste a strategy in Pine Script, Python, MQL, or plain English.
Gemini rewrites it as a JS simulation engine using your platform's helpers
(ema, rsi, macd, crossover, …).
Output lands in CODE PASTE for review & validation before deploy.
Always read the output — LLM conversion is best-effort, not guaranteed.
Paste source to detect language…
Idle.
CONVERTED JS — REVIEW BEFORE DEPLOYING
🤖AI CO-PILOT NEWHire an AI — Risk Manager · Market Analyst · Strategy Coach · Trade Filter+ ADD
📄 Values prefilled from // llm.* directives in source. Saving will pin them into bot.llm.
Give your simulation engine a brain. Pick a role and your AI Co-Pilot becomes available to the simulation engine via ctx.askLLM(...). Each role behaves differently — the system prompt is wired to match what you pick.
PICK A ROLE
ENGINE
🔒Claude Sonnet 4.5Coming soon
🔒GPT-5Coming soon
ACTIVITY — how often the AI is consulted
⚡ Try it out — see how your AI Co-Pilot responds
Insert sample:
Idle.
👁 What the AI sees ·
SYSTEM (persona)
USER (your prompt)
⚙️ Simulation engine fundamentals
Exit logic handled by bot code (candle-based SL & 1:2 RR). Target % / Stop % not used.
Step 1 of 4
📊 BACKTEST RESULTS
Preparing…
EQUITY CURVE
PER-SYMBOL BREAKDOWN
SYMBOL
BARS
TRADES
WIN%
RETURN
P&L
RECENT TRADES (last 20, newest first)
SYM
SIDE
QTY
ENTRY
EXIT
P&L
EXIT REASON
🔔 ALERTS · NOTIFICATION CENTER
📡 CHANNELSEnable destinations for major alerts
TELEGRAM
Not configured
Not connected.
One-click setup. Click Connect above — Telegram opens, you tap Start once, you're done. Alerts arrive from @tsai_terminal_alerts_bot. No bot token, no chat ID, no setup.
✓
WHATSAPP
Not configured
You're all set. Just toggle on, enter your phone
number, and click test. WhatsApp messages are sent through
the tradingsmart.ai platform — no setup needed.
✉
EMAIL
Not configured
Free at emailjs.com — create a service + template that takes
{{title}}, {{body}}, {{type}} variables.
Browser SMTP isn't possible; EmailJS is the standard browser-callable bridge.
⚡ ALERT TYPESTick events to forward when channels are enabled
🕐 RECENT ALERTS
No alerts yet. Configure a channel + tick alert types and you'll see fires here.
📊 BROKER INTEGRATIONSConnect Zerodha for Indian F&O · options chain data · paper execution
Z
ZERODHA KITE
Not connected
Live data
📭 Don't have API keys yet?
Create an app on the developer portal, then copy your keys into the form below.
Set Redirect URL to https://tradingsmart.ai/app/ so OAuth returns here automatically.
Redirect didn't auto-detect? Paste token manually
Instruments loaded from Zerodha
EQ —FUT —OPT —
Sample options contracts
Connect Zerodha and click Refresh to see options data.
BYOK — your broker credentials stay private to your account.
▶ CONFIRM ACTIVATION
📄PAPER TRADING — no real money·simulated fills against live prices, your bank balance is never touched
ENGINE—
STRATEGY—
TIMEFRAME · fixed by engine logic—
Exit logic is handled by the bot code (candle-based SL & 1:2 RR target). Target % / Stop % are not used.
🎁Start free — no credit card needed.2 simulation engines · $1,000 paper capital · live market data · Telegram alerts. Upgrade to Pro or Quant inside the dashboard whenever you outgrow it.