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 [09.11.2026 08:52] – external edit 127.0.0.1trade-term:start [09.11.2026 20:37] (current) – Pulse: higher timeframes, drawing objects, short paper positions, editor suggestions (trade-term 0.27) aria
Line 22: Line 22:
   * **Paper trading** — a simulated account with market orders, fees and slippage; no real orders.   * **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.   * **Backtesting** — run strategies over historical candles with return, drawdown and trade statistics.
-  * **Pulse** — a small, safe Pine-like language for your own indicators and strategies, with a live editor (syntax highlighting, as-you-type checking, an inputs form) and a standard library of ready-made scripts.+  * **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.   * **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.   * **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.   * **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.
 +
 +===== Pulse language =====
 +
 +Pulse is Trading terminal's own scripting language; the version is ''Pulse v0'', written as ''//@pulse 0'' at the top of a script.
 +
 +  * **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.
 +  * **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 earlier Pulse spellings (''sma'', ''ema'', ''entry'', ''exit'', ''input'') still work, so older scripts keep running.
  
 ===== Packages ===== ===== Packages =====
  
   * ''trade-term'' — the application (non-free).   * ''trade-term'' — the application (non-free).
-  * ''trade-term-pulse'' — the Pulse standard library (required dependency).+  * ''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).   * ''trade-term-handbook'' — the user guide and the Pulse language reference, shown as a //Handbook// tab inside the web interface (optional).
  
Line 42: Line 50:
 ^ Charts | TradingView Lightweight Charts (Apache-2.0) with an own indicator layer | ^ 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 | ^ Exchanges | CCXT, run as a sidecar (Node), for public market data and order routing |
-^ Scripting | Pulse — an own Pine-like language, interpreted in Go |+^ Scripting | Pulse — the project's own language, interpreted in Go, bar by bar |
 ^ Licensing | stratum-license, feature ''trade-term'' (subscription) | ^ Licensing | stratum-license, feature ''trade-term'' (subscription) |
  
Line 63: Line 71:
 ===== Handbook ===== ===== Handbook =====
  
-The handbook (package ''trade-term-handbook'') covers the web interface and the Pulse language, with a complete function reference and worked examples.+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 ===== ===== Licence =====