Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
trade-term:start [31.10.2026 19:50] – Licence: monthly/yearly subscription period ariatrade-term:start [09.11.2026 20:37] (current) – Pulse: higher timeframes, drawing objects, short paper positions, editor suggestions (trade-term 0.27) aria
Line 1: Line 1:
-<WRAP centeralign> 
 ====== Trading terminal ====== ====== Trading terminal ======
  
-**A commercial trading tool for crypto exchanges – in the concept stage.**+Trading terminal (''trade-term'') is a commercial tool for trading on crypto exchanges, with a web interface: live charts with indicators, a paper (simulated) account, backtesting, and **Pulse** — its own scripting language for writing indicators and strategies. Part of the [[stratum:start|Stratum]] project.
  
-Trading terminal is a planned commercial tool intended mainly for trading on crypto exchanges. Part of the [[stratum:start|Stratum]] project. +<note important> 
-</WRAP>+**Technical preview.** Trading terminal is proprietary commercial software, used under a subscription licence — not free or open-source software, and not under the GPL. 
 +</note>
  
-<WRAP centeralign> +===== Install =====
-**Trading terminal – concept stage** · package ''trade-term'' in the Stratum repository (component //non-free//) · proprietary, commercial · subscription licence +
-</WRAP>+
  
-<WRAP center round important 80%> +<code>sudo apt install trade-term</code>
-**Concept stage.** The project is being designed, and it is being studied whether it will materialise at all. Its future depends on that decision: the project will either be carried out or retired. This page is a concept as well – it describes intentions, not a finished product. +
-</WRAP>+
  
-===== Where the project stands =====+This also installs ''trade-term-pulse'' (the Pulse standard library). The optional handbook:
  
-^ State | Concept and feasibility study | +<code>sudo apt install trade-term-handbook</code>
-^ Purpose | Trading, mainly on crypto exchanges | +
-^ Licence | Proprietary, commercial – subscription (not free/open-source, not GPL) | +
-^ Decision | Pending – the project is carried out or retired | +
-^ Package | ''trade-term'' 0.05 (non-free, binary-only) – marks the project only, no trading functions |+
  
-===== The idea =====+Open the web interface at ''https://<your-host>:8444'' and sign in. A valid subscription licence for the feature "trade-term" is required to operate; licences are handled by ''stratum-license'' (hardware ID, licence request, signed licence file).
  
-Trading terminal is meant to bring trading on crypto exchanges into one tool on a Debian host running Stratum.+===== What it does =====
  
-If the project is carried out, it will not start from nothing: it will build on certain existing infrastructure, which will be adapted to this tool.+  * **Live charts** — candlesticks from public exchange data (through CCXT), with built-in indicators (EMA, RSI, MACD, Bollinger Bands). 
 +  * **Paper trading** — a simulated account with market orders, fees and slippage; no real orders. 
 +  * **Backtesting** — run strategies over historical candles with return, drawdown and trade statistics. 
 +  * **Pulse** — the project's own scripting language for indicators and strategies: series with history, ''ta.*'' indicators, ''strategy.*'' orders, loops, functions, libraries, higher-timeframe values, drawing objects and short paper positions. Live editor (syntax highlighting, suggestions while typing, as-you-type checking, an inputs form) and a standard library of ready-made scripts. 
 +  * **Exchange API keys** — stored encrypted on the server; used only with trade-only keys. 
 +  * **Live trading** — place real orders under strict safeguards: per-order and daily limits, an allowed-symbols list, a two-step confirmation and a kill-switch. Off by default. 
 +  * **Trading sessions** — attach a Pulse strategy to a market and let it trade automatically on each closed candle; several sessions run at once, in paper or live mode.
  
-===== Licence =====+===== Pulse language =====
  
-Trading terminal is **proprietary commercial software**, used under a **subscription licence**. It is not free or open-source software and not released under the GPL.+Pulse is Trading terminal's own scripting language; the version is ''Pulse v0'', written as ''//@pulse 0'' at the top of a script.
  
-  * A valid subscription licence for the feature ''trade-term'' is required to operate. Licences are handled by [[stratum:start|stratum-license]] – a hardware ID and licence request on the computer, a signed licence file in return – the same mechanism as for remote support. Subscriptions are issued **monthly or yearly**; each feature expires on its own date, independently of any other feature in the licence (with a short grace period). +  * **What it does:** executes once per candle with series history (''close[1]''), ''var'', ''if''/''switch''/''for''/''while'', user functions, tuples, arrays, ''input.*'', the ''ta.*'' indicator library, ''math.*'', ''str.*'', ''color.*'', plots and shapes, labels and lines drawn on the chart, libraries (''library''/''export''/''import''), higher-timeframe values of the same market (''request.security''), and ''strategy.entry''/''strategy.exit''/''strategy.close'' with next-open fills and stop/limit emulation. 
-  * Reverse engineering, decompilation, disassembly and circumvention of the licence are prohibited. +  * **Not available:** markets other than the one selected in the terminal and the other ''request.*'' functions, matrices, maps, user-defined types and methods; boxes and tables are recorded but not drawn; scripts are evaluated on closed candles. 
-  * The package is published **binary-only** – there is no source package in the repository.+  * The earlier Pulse spellings (''sma'', ''ema'', ''entry'', ''exit'', ''input'') still work, so older scripts keep running.
  
-===== Planned design =====+===== Packages =====
  
-Only if the project is carried out – nothing of this exists yet:+  * ''trade-term'' — the application (non-free). 
 +  * ''trade-term-pulse'' — the Pulse standard library and two Pulse libraries, ''ta-extra'' and ''patterns'' (required dependency). 
 +  * ''trade-term-handbook'' — the user guide and the Pulse language reference, shown as a //Handbook// tab inside the web interface (optional).
  
-  * **Web interface** – the tool will work in the browser, in the same spirit as [[vm-reactor:start|VM Reactor]]. +===== How it is built =====
-  * **Backend in Go** – a single, self-contained service, like VM Reactor, shipped stripped and binary-only. +
-  * **Commercial** – licensed per subscription through stratum-license. +
-  * **Part of Stratum** – a package in the //non-free// component of the Stratum repository, for Debian 13 (trixie) and Debian 14 (forky).+
  
-===== The package today =====+A single self-contained Go service with an embedded Vue.js web interface, on its own HTTPS port with users, roles and two-factor sign-in — in the same spirit as [[vm-reactor:start|VM Reactor]].
  
-The package ''trade-term'' is already in the Stratum repository. It contains no trading functions, does not connect to any exchange and stores no keys – it only marks the project, shows its state and checks the licence:+^ Layer | Choice | 
 +^ Backend | Go — one self-contained service, embedded web assets, own HTTPS port, systemd, users/roles + 2FA | 
 +^ Frontend | Vue.js | 
 +^ Charts | TradingView Lightweight Charts (Apache-2.0) with an own indicator layer | 
 +^ Exchanges | CCXT, run as a sidecar (Node), for public market data and order routing | 
 +^ Scripting | Pulse — the project's own language, interpreted in Go, bar by bar | 
 +^ Licensing | stratum-license, feature ''trade-term'' (subscription) |
  
-The package is in the component **non-free** of the Stratum repository; current versions of ''stratum-init'' and ''stratum-archive-keyring'' add it to the APT source by themselves (''Components: main contrib non-free''). It depends on ''stratum-license''.+  * **Go backend** — orchestrates market data, indicators, the Pulse engine, trading sessions, the licence check and the web API and UI. One binary. 
 +  * **CCXT sidecar (Node)** — exchange connectivity: public market data, and order routing for live trading. It runs unprivileged, and credentials are handed to it only through the environment, never the command line. 
 +  * **Indicators** — computed in the backend (EMA, RSI, MACD, Bollinger, …) and drawn with Lightweight Charts. The same calculation serves charting, backtesting and live sessions. 
 +  * **Pulse engine** — the Go interpreter for user indicators and strategies; one engine checks a script, runs it on a chart, backtests it and drives live sessions. 
 +  * **Trading sessions** — a session manager: each session pairs a strategy with a market and runs supervised (running or stopped), with its own position and the live-trading safeguards. Paper by default; live is a separate, deliberate switch.
  
-<code> +===== Security =====
-sudo apt install trade-term +
-trade-term            # state of the project and the licence +
-trade-term --license  # licence state and where the full licence is +
-trade-term --about    # what the project is about +
-trade-term --help     # all options +
-</code>+
  
-A subscription licence is required for the tool to operate once it has functions; obtain and install one with ''stratum license''.+  * Exchange API keys can move funds, so they are the most sensitive part: encrypted at rest, meant for trade-only keys (no withdrawal), with per-order and daily limits and a kill-switch. 
 +  * Live trading is off by default and stays blocked until limits are set; paper trading needs no private keys at all. 
 +  * The licence is checked at start and periodically.
  
-===== What comes next =====+===== Risk and compliance ===== 
 + 
 +Automated trading with real funds carries financial risk, and nothing here is financial advice. Strategies must comply with the exchanges' terms of service and with the law (no market manipulation). Start with paper trading, tight limits and a small scale. 
 + 
 +===== Handbook ===== 
 + 
 +The handbook (package ''trade-term-handbook'') covers the web interface and the Pulse language, with a complete function reference, worked examples and a chapter on the language's limitations. 
 + 
 +===== Licence =====
  
-The concept is being worked out and its feasibility studied. When the decision is made, this page will say so: either the project starts – with installation instructions, documentation and screenshots here – or it is retired.+Proprietary commercial software, used under a subscription licence (monthly or yearly); each feature expires on its own date. Reverse engineering, decompilation, disassembly and circumvention of the licence are prohibited. Published binary-only.