Chart (15m)

Exit tooltips
Tabs are saved locally. Switching changes the instrument used for manual entries below.

Indicator scripts

AI instructions: Indicator is JS and must return an object { lines?, markers?, barColors?, fills? }. Available data: close/open/high/low/volume/time and bars (array of candles), helpers SMA(values,n), EMA(values,n), SMA_F/EMA_F, PAC_F(high,low,close,n) → {U,L,C}. lines: [{ values:number[], color?, width?, style? }]; fills: [{ fromLineIndex, toLineIndex, color?, layer? }]; markers: [{ index? or time?, position:'aboveBar'|'belowBar'|'inBar', shape:'arrowUp'|'arrowDown'|'circle'|'square'|'diamond'|'cross', color?, text?, price?, size? }]; barColors: array of colors/objects same length as close (null to skip). Lengths must match candles, use null where data is missing, do not mutate inputs.

Entry strategies

AI instructions. JS function runs on each new closed candle of the active timeframe and must return 'BUY' or 'SELL' (null/undefined/other means no signal). Inputs (arrays of same length): open, high, low, close, volume, time and bars (objects with open/high/low/close/volume/time). Helpers: SMA(values,n), EMA(values,n). Be defensive: check lengths and numbers first, use Number.isFinite, do not mutate inputs. Build indicators on closed bars (last index = closed candle); you can return null if no conditions or not enough data.

Changelog

v0.1.4
Date Changes
2025-12-29 Trade icons are now drawn only from server records, so entries and closes stay consistent even if the page reloads or lags.
Hovering a trade icon now shows a richer tooltip with trade ID and result, and the active trade stays bright while others fade.
Trade history table now includes trade ID, strategy label, account balance, and a difference column, plus load-more and collapse controls.
Strategy comparison section redesigned: full-width charts, per-strategy toggles, and new charts for progress, totals, and win/loss counts.
Profile now has timezone and language settings; all dates follow the chosen zone and translations load from language files.
Chart view improved: default 6-hour window, right padding, and stable vertical zoom that ignores indicator range.
Multi-step close ladder added for strategies with saved settings and clear per-step summaries shown right in the panel.
Reliability for close events improved with extra exchange checks and logging, reducing missed markers after restarts.
Strategy panels are cleaner: simplified headers, removed status dots, and tighter controls for expanding sections.
2025-11-29 The chart no longer disappears on start: if the first request returns empty, we retry immediately and keep data on screen.
Startup load is lighter: first fetch gets 500 candles, rebuild via button stays at 1000 to open faster and expand history when needed.
Chart history is capped consistently in cache, background updates, and rebuilds, so candles don’t disappear when switching instruments.
Fixed chart drift when returning to an instrument: no need to switch tabs or rebuild to keep it in place.
Changelog translated to Russian and version badge updated to v0.1.1.
2025-11-23 Trade markers are now tied to a specific strategy: the “Trades” toggle shows only its trades, and clearing removes only that strategy’s points and lines.
Partial and final exits trigger instantly on the chart: lines are replaced with icons at the moment of price touch.
Trade path is built sequentially over time (entry → partial exits → final exit) and does not jump to other trades.
Duplicate TP/SL crosses removed: only the real exit is recorded, no extra crosses on the next candle.
The “Clear” button removes all trades for the strategy and immediately clears related points from the chart.
2025-11-20 Trade opening is stricter: pre-checks match exchange limits, deposit share cap applies, and a new position won’t open if one is already active.
Protective order trailing persists: SL follows closed candles with a max distance limit; state is saved to disk and restored on startup with active positions.
Partial exits added: orders can close part of a position at a target, and the bot records them in strategy history.
Position status is more detailed: API shows active protective orders with debug, provides UI refresh hints, and logs trade history.
Settings and keys updated: API stores them masked, saves extra params and active timeframe, and chart data is cached for faster delivery.
Chats: no saved or archived updates during this period.
2024-11-17 Renamed the product to “CodeCash Bot — Algorithmic Trading Bot”: updated API/UI names, added branding to docs, and made dynamic titles and the Home menu.
Added a Changelog screen with a scrollable notes feed (this section).

Keys & Secrets

Default: UTC+0.
Default: English.
API Key: not set
Keys are stored for the bot. No DB (per spec).
Server: unknown

Trade history

Date/Time Symbol Strategy Trade ID PNL, % PNL, USDT Binance Balance Discrepancy
No data

Strategy comparison

No strategies created
Performance trend, %
Cumulative percent across trades for each strategy.
Total in USDT
PnL total in USDT over the whole period per strategy.
Winning and losing trades
Trade counts: up = wins, down = losses.
Current PnL
--:--
v0.1.4