Gold · XAUUSD
commodity · USD per oz · MT5 server time (New York + 7 h; IST = + 3:30 winter / + 2:30 summer) · 1.00 lot = 100 oz1-minute history from the monthly zips in the project's data/xauusd folder, stored as 1m / 5m / 15m / 1h / 1d candles. Gold is not part of the NSE watchlist or the live feed.
| Interval | Candles | From | To |
|---|
What to trade · recommended gold plan
Three simple rules that survived every test: our backtest plus five research agents (candle patterns, news, AI, sessions, high win rate), about 750,000 variants, rules chosen on 2015-2021 and tested on 2022-2026, on 1-minute candles, with costs. Run together, because they do not move together.
Parabolic SAR study
The Parabolic SAR on 5m to daily charts at 9 settings, traded three ways (always in, intraday flips, follow it from the open), long / short / both, with and without a trend filter: 1,269 variations, chosen on 2015-2021 and tested on 2022-2026, compared with random entry times, and tried as a filter on the plan's rules. Takes about a minute.
Gold research
Every strategy family and setting replayed on every day: the zone rules at gold's session opens, Fibonacci retracements (tested against non-Fibonacci levels), opening-range breakouts and previous-day high / low. Settings are picked on 2015-2021 and judged on 2022 onwards, which the pick never saw; then an AI learns which strategy to trade each day. P&L per 1.00 lot after costs. Takes a few minutes.
Live prices · MT5
Live on MT5 · automation
Runs Renko strategies (this tab's rules) on MetaTrader 5 through the YonexisBridge EA, one row per strategy. When the next brick would be a signal, a BUY STOP / SELL STOP waits at that brick's level with its stop attached, so it fills at the brick level as in the backtest; the stop then follows the exit rule. Orders follow the mode in System › MT5 connection (dry run / demo / live). Defaults are the settings that held up in the MT5 backtests (gold $6 bricks, SuperTrend 10/4 + Brick Pulse, both sides, exit at the first opposite brick; crude 0.2, SuperTrend flips, short only).
Trade log
Download CSV| Strategy | Symbol | Side | Lots | Entry (IST) | Entry | Stop (first → now) | Exit (IST) | Exit | Reason | P&L $ |
|---|
Order events
| Time (IST) | Symbol | Event |
|---|
Renko + SuperTrend strategy
Strategy
Strategy trades in this range
Entries on a fresh signal in the trade's direction: SuperTrend (ATR period × multiplier on the bricks, source close, wicks taken into account) plus the chosen filters - Street Trend (close vs 10-brick EMA), Brick Pulse (streak ≥ 2, ≥ 50% of the last 50 bricks with the trade), Trend Health (≥ 80% of the last 10). Fills at the brick level (a live stop order at that level), after spread + slippage and swap. MT5 backtests (Aug-Nov 2026 1-minute, Oct 2025-Nov 2026 5-minute): Buy / Sell on every SuperTrend flip was about break-even (PF 1.0-1.1) with deep drawdowns; exiting at the first opposite brick beat fixed brick targets.
How a trade's result is worked out: an entry fills at the close of the signal brick and an exit at the close of the exit brick (CandleForge mode: the 1-minute close that formed them). With the first-opposite-brick exit a run of n bricks in your direction makes n − 3 bricks: the turn itself costs a brick to confirm the entry and two to confirm the exit (1 brick = −2, 2 = −1, 3 = 0, 4 = +1 ...). Move = exit − entry in your direction, costs = spread + slippage (+ swap overnight); per 0.01 lot = (move − costs) × 1 oz (crude × 10 bbl).
| # | Side | Entry (IST) | Exit (IST) | Entry | Exit | Bricks held | Move | Costs | Result | Per 0.01 lot | Per 1.00 lot | Exit reason |
|---|
Trade
COMEX Lab · AI backtesting
Replays the Renko strategies on the MT5 1-minute history with every combination you tick - several brick sizes at once, YONEXIS or CandleForge indicators, entry rules, sides, exits - after spread and slippage. The earlier part of the dates is where a setting would be chosen ("train"); the later part is never used for choosing ("test") and shows what that choice did next. The AI score ranks what tends to survive: the weaker of train and test, discounted for few trades and for settings whose neighbouring brick sizes lose.
Results
Brick size × entry rule
test profit factor of the best setting in each cell (train in brackets) · click a cell for its detailsRanked by AI score
| # | AI score | Brick | Formulas | Strategy | Train trades | Train PF | Train $ | Test trades | Test win% | Test PF | Test $ | Test max DD | Weeks up | Neighbour bricks PF |
|---|
Details
| Side | Entry (server) | Exit (server) | Entry | Exit | Bricks held | Move | Costs | Per 0.01 lot | Exit reason |
|---|
YONEXIS AI · First Red Candle Zone
5-minute candles only · entries and exits exactly at the zone high / lowTest your zone rules on any day or date range. Nothing is written to the paper wallet: this is a pure replay to see the P&L.
| # | Zone | Max entries / day | Target multiplier | Spike | Lots per entry | Target per lot (× multiplier) |
|---|
The rules, exactly
- Zone = the first red 5-minute candle of the day (from 09:15): its high and low.
- Entry exactly at the zone levels: price rises to the zone high from below → BUY at the zone high; falls to the zone low from above → SELL at the zone low.
- Target = entry price + range × multiplier for a BUY (SELL: entry − range × multiplier). Zone: range = the zone candle's high − low (zone 100–110, ×1.5 → BUY at 110 targets 125, SELL at 100 targets 85). IZ: range = the entry candle's high − low, set when that candle closes.
- Spike unticked: a wick through the zone is ignored. BUY only when a candle opens above the zone high (at that open) or closes above it (at that close); SELL the same below the zone low. Stops work the same way (the candle must open or close beyond the opposite edge); targets still fill when touched.
- Stop = the opposite zone edge. A stopped BUY is at the zone low, which is the SELL entry, so the next entry starts there at once (relay); after a target, the next entry waits for a fresh break of the zone.
- Max entries per day: with 2 → enter, exit, enter, exit, then done for the day. Anything still open at the square-off time (15:15 unless you change it) is closed at that candle's open; a time inside a candle (15:28) closes at that candle's close.
- Refined data: a symbol's day with 8 or more flat no-trade candles, or any missing candle, is left out of the test.
- With 5-minute candles the order of prices inside a candle is unknown, so: in the entry candle only the stop can be hit; a candle reaching both stop and target counts as the stop; if both zone edges are touched before entering, the edge nearer the open goes first.
MetaTrader 5
YONEXIS AI zone rules, live, executed in MT5 · prices from UpstoxAutomation
Symbol mapping
which MT5 symbol each YONEXIS symbol trades, and how much one lot is| YONEXIS | MT5 symbol | Volume / lot | Levels | Upstox | MT5 bid / ask | Gap |
|---|
Levels: Same = the MT5 symbol has the same price as on NSE (zone levels used as they are). Offset = a CFD or other contract priced differently: levels are shifted by the MT5 − Upstox gap at the moment of the order. Test buy / close work in Demo mode only (minimum volume).
Today
| Symbol | Zone | Status | Entries | Calls P&L | MT5 P&L | Lots |
|---|
Activity
YONEXIS positions in MT5
| Ticket | Symbol | Side | Volume | Open | Now | SL | TP | Profit | Comment |
|---|
Order log
every command sent to MT5, its answer and the round-trip time| Time (IST) | Kind | Symbol | Command | Side | Volume | Price | SL | Target(s) | Result | ms | Detail |
|---|
Automations
Today's calls
What this automation's rules call today on today's Upstox 5-minute candles, lot by lot, whether it is switched on or not (no order is sent). Open lots are valued at the live price; closed lots are after costs. Refreshes every 10 s.
| Symbol | Zone | Entry | Lot | Side | Entry time | Entry | Stop | Target | Exit time | Exit | Why | P&L |
|---|
OpenAIAP
record your broker's web terminal once · YONEXIS AI zone rules place the orders through it · prices from UpstoxLogin & speed
Capture the order request
- Fill {symbol} (and {query}) in the Steps panel below with the symbol you will use, e.g. ABB 23NOV2026.
- Press Start capture (don't send), then in the OpenAIAP tab click through one order on that website as usual. Place Order is recorded and blocked - no order is sent.
- Back here, choose the request that placed the order (usually a POST with the symbol in it) → use as buy / sell. Do the same for sell.
| # | Time | Request | Body | Use as |
|---|
…or paste a "Copy as cURL" (browser DevTools; Proxyman on Mac / Fiddler on Windows for a desktop app)
Agent
| Worker | Process | Symbols / lots | Ready to fire | Doing | Last error |
|---|
Many MT5 terminals on one Windows PC (workers)
- Copy
agent\mt5_workers.ps1to the Windows PC (it is in the agent folder). - PowerShell, once:
.\mt5_workers.ps1 -Count 10 -Login <account> -Server "<server>" -Password "<password>"- copies MT5 toC:\YONEXIS\MT5\w01 … w10with an automatic login.
If PowerShell refuses to run scripts:Set-ExecutionPolicy -Scope CurrentUser RemoteSignedonce. - Start them:
.\mt5_workers.ps1 -Start(stop:-Stop). In each terminal keep only your symbols in Market Watch and close the charts. - Here: Program =
terminal64.exe, Save workers - the table lists w01 … w10 and the symbol / lot each one trades.
Set up the YONEXIS Agent on a Mac or Windows computer
- (also in the project folder:
agent/yonexis_agent.py) - Mac:
python3 -m pip install requests pyautogui pillow numpy opencv-python pyobjc-framework-ApplicationServices pyobjc-framework-Cocoa
then System Settings → Privacy & Security: allow your Terminal under Accessibility and Screen & System Audio Recording. - Windows:
py -m pip install requests pyautogui pillow numpy opencv-python uiautomation psutil - Run:
On another computer use this Mac's Wi-Fi address instead of localhost (andYONEXIS_BIND=0.0.0.0in .env).--checkshows what the computer allows. Keep it unlocked and awake while it trades.
Desktop recorder
Click on the screen to click on the computer; then type on your keyboard. Each click is saved as the app's UI element (button / field name), a picture of the spot and its position in the window - at replay they are tried in that order. Fill {symbol} in the Steps panel before recording an order flow: clicking an element with that name records {symbol}. Typing into a password field saves it as the secret password. Lots: type the Lot / quantity field as {qty}.
Recorder
Click on the screen to click in the browser. Click a field, then just type on your keyboard (paste, Backspace, Enter and Tab work too); the box above is another way to type. Typing into a password field saves it as the secret password and records {secret:password}.
Lots: in buy / sell click the site's Lot field and type it as {qty} (same as {lots}) - every order then sends its own number of lots: 1 for a lot's target, all open lots for a stop, both for a stop + relay (one order). If the site needs other steps for several lots, record buy_multi / sell_multi too: they are used when an order has more than one lot.
Order flows: type the search text as {query} (e.g. NIFTY) and the quantity as {qty}; fill {symbol} below with the result you will click (e.g. NIFTY 25 NOV FUT) before pressing Record - clicking that result then records {symbol}, so every order picks its own symbol.
symbols flow: type {query} in the search, then pick element on one result → read all like this.
Steps ·
mark the click that places the order as final - test runs stop before it| # | Action | Selector / URL / key | Value | opt. | final |
|---|
Settings
Secrets
used as{secret:name} · values are never shown againKept in the YONEXIS database (app settings) on this machine. For a TOTP / OTP login keep the browser logged in (the profile is saved) and record a login flow only for the password step.
Automation
Several automations can run on one website, each with its own symbols / watchlist and settings. A symbol can be in only one running automation per website (the website keeps one position per symbol); on another website the same symbol is fine.
Symbol mapping
what to type in the web terminal's search for each YONEXIS symbol ({symbol}), and the quantity of one lot ({qty})| YONEXIS | Used by | Upstox contract | Search as | Web symbol | Quantity / lot | Upstox | Test the order path |
|---|
Candles and prices always come from Upstox. Look up runs your recorded symbols flow for every row: it types the search text (ANGELONE for ANGELONE-FUT), clicks the result that is the same contract (futures by Upstox's near-month expiry, never options) and saves the website's name as the web symbol - on all workers in parallel. Live orders and prepare then use that name as {symbol}. (A symbols flow that reads a whole list instead: Look up, then Suggest.)
Today
| Symbol | Zone | Status | Entries | Calls P&L | Lots |
|---|
Activity
Trades · every lot
| Entry | Symbol | Entry # | Lot | Side | Qty | Entry | SL | Target | Status | Exit | Exit price | Reason | Points | P&L |
|---|
One row per lot: each lot has its own target and shares the entry's stop. P&L = points × qty × exchange lot size (Upstox). Exit price = the live Upstox price when YONEXIS sent the exit.
Workers
browser tabs placing orders in parallel · each symbol always uses the same tab| Worker | Tab | Doing | Symbols | Ready to fire | Last error |
|---|
Positions placed through the web
| Symbol | Side | Quantity | Open | Opened | Comment |
|---|
Flow log
every flow run for an order, its result and how long it took| Time (IST) | Kind | Symbol | Flow | Side | Qty | Price | Result | ms | Detail |
|---|
Your watchlists
Named lists of stocks and futures. Pick them in Backtest, YONEXIS AI and Paper Wallet symbol fields ("+ list").
New watchlist
Watchlist
| Symbol | LTP | Chg | Zone | Signal | Remove |
|---|
| Symbol | Side | Qty | Entry | LTP | SL | Target | MTM | Opened |
|---|
| Time | Symbol | Side | Price | SL | Target | Score | Status | Outcome | Your call |
|---|
Open paper positions
| # | Opened | Symbol | Side | Qty | Entry | LTP | SL | Target | MTM | Strategy |
|---|
Closed paper trades
| # | Entry | Exit | Symbol | Side | Qty | Entry | Exit | Why | Gross | Costs | Net |
|---|
Live test for a day
Pick a trading day, the instruments and the logic, then rebuild. That day's real market is replayed with that logic only: the zone comes from Upstox's 5-minute candles, and the buy/sell entries, stops, targets and 15:15 exits are caught on 1-minute candles. For today, running trades stay open and the live engine keeps trading exactly this selection; a past date only rewrites that day.
| Symbol | Side | Entry | Entry price | Result | Exit | Exit / LTP | P&L | Chart |
|---|
Keeps only the selected instruments and logic: all other paper trades and calls of the chosen day are removed. Other days are not touched (use "Clear trade history" in the Danger zone for that). Nothing is sent to Upstox.
Demo money & margins
Leverage: money blocked for a stock trade = value ÷ leverage. Futures margin: % of contract value blocked. Every change is kept in the ledger.
Danger zonereset wallet · clear trade history
Sets the cash balance to the Amount above. Needs all paper positions closed. Trade history is kept.
Deletes every paper trade (open ones too) and the ledger, and restarts the wallet at the Amount above.
Ledger
| Time | Kind | Amount | Balance | Note |
|---|
Backtest a strategy
Quick: one pass over the period with the strategy's settings — results in seconds.
Backtest history
every quick and full backtest you ran · open a full one to see its report again| # | Kind | Strategy | Verdict | Trades | Net P&L | Win % | PF | Sharpe |
|---|
Strategy Lab
Backtests every strategy in the library on all stored history, ranks them, finds the best one per stock and trains the AI picker that chooses which strategy to trust in which situation.
How the AI picker works
- Backtest everything. Every strategy is run on all stored history for every stock, with costs and slippage.
- Describe each moment. For every signal it records what the market looked like at decision time: time of day, opening gap, trend strength, distance from VWAP, volume, volatility and how the index was moving.
- Learn who wins when. A model learns which strategy tends to win in which situation. Your own losing paper trades are added too and count three times, so it learns from your real mistakes.
- Test on unseen data. The last part of history is held back. The model picks trades there, and its result is compared with simply taking every signal.
- Used only if it is better. It becomes champion (in use) only when it beats taking every signal; otherwise it stays in shadow and just watches. It retrains every night.
The AI writing features (describe a strategy, rule card, agents) need the local AI model, which is not part of this cloud deployment. Use them on your local YONEXIS (dev branch).
1 · Explain your idea
Describe entries, filters, stop and target in plain words. The spec agent turns it into a rule card you can check.
2 · Check and edit the rule card
3 · Agents at work
The AI writing features (script converter and reviewer) need the local AI model, which is not part of this cloud deployment. Use them on your local YONEXIS (dev branch).
Convert an existing script
Pine Script, AFL, Python or Excel rules — the converter agent rewrites it as a YONEXIS strategy and a reviewer checks it.
Parity check
Compare a converted strategy with the admin's own backtest trades, trade by trade.
Live price source
checking…Where live prices and candles come from. Switching restarts the live engine on the new source.
Upstox
checking…Live NSE feed, candles and (locked) orders. Logins expire daily at 3:30 AM.
Download real history for the whole watchlist
Needed for real backtests and for training the AI score model. 5m data back to 2024 for 20 stocks takes about 2–4 minutes (Upstox serves one month per request).
Data check
Make sure backtests run on complete, consistent candles: see what is loaded, choose what to verify, find gaps, then refetch only what is missing.
| Interval | Symbols | Stocks | Futures | Candles | From | To |
|---|
Continuous futures history
Upstox plan not checkedRebuilds each futures symbol's history from the contract that was the near month at the time (expired contracts, needs Upstox Plus), instead of the current contract's thin far-month past. Prices are as traded; at each expiry the series rolls to the next contract.
Download stored data
Export candles already in your database as CSV (one file) or Excel (one sheet per symbol and interval). Click a row in the table below to pick it.
Stored data
| Symbol | Interval | Candles | From | To | Source |
|---|
Fetch from a connector
Upstox: 1–15 minute candles back to Jan 2022 (fetched a month at a time). Yahoo keeps 5m data for ~60 days only.
Upload Excel / CSV / JSON / Parquet
Paper vs backtest
Phase 4 gate: live paper results must stay inside the backtest's expected band.
| Strategy | Status | Paper trades | Sessions | Paper net | Win % paper / test | Avg ret % paper / test | Verdict | Note |
|---|
Strategies
Promotion path: candidate → approved → paper → live small → live. Only strategies in paper status make live calls.
| Name | v | Origin | Created | Status |
|---|
Train the meta-label model
Learns which of a strategy's signals tend to work, to score live calls.
Models
New models start in shadow; promote to champion to use them live.
| Kind | Version | Strategy | OOS AUC | Hit rate top 40% / all | Status |
|---|
Where the admin's judgment helps
Grouped by remark tag. Add remarks when you review calls on the Live tab.
| Tag | Calls | Rejected | Admin right % |
|---|
Suggestions from your feedback
MetaTrader 5 connection
The MT5 tab's automation sends its orders to MetaTrader 5, where the YonexisBridge Expert Advisor executes them. Upstox stays for prices, candles and charts only - it never receives an order.
Status
System check
Quick: database, timezone, real-order lock, demo wallet, AI model, sandbox, backtest pipeline, Upstox login and data freshness, live feed (about 1 minute). Full: also runs the AI Builder end to end on a sample idea with the local model (5–15 minutes).
| Check | Result | Secs | Detail |
|---|---|---|---|
| No check has run yet. Run the quick check to verify database, order lock, wallet, feed and data freshness. | |||
Project phases
Computed live from what is in the database.
| Phase | Done | Gate | Where you are |
|---|
Phase 4 setup
One click: real history → baseline full evaluation → AI score model. Needs the Upstox login; takes roughly 5–15 minutes for 20 stocks while the live feed keeps running.
Data integrity
Every call, paper trade and wallet balance checked against real Upstox candles.
| Kind | Symbol | When | Problem |
|---|
Risk settings
Apply immediately and are saved across restarts. Demo wallet only.
Risk state now
Activity log
Every admin, engine and paper-broker action. Click a detail to expand it.
| Time | Actor | Action | Detail |
|---|