Skip to content

Scripts (coming soon)

Scripts let your desk act on your playbook. A script can:

  • react to events: market events (quotes, trades, bars, price levels), desk events (fills, stop hits, rejections, P&L thresholds) and system events (session start, reconnect, market open and close)
  • run from a hotkey: a script can add its own actions to your keyboard
  • act on its own: place, adjust and cancel orders, set stops and trailing, tag positions

Script orders go through the same engine as your keystrokes: pre-trade risk, safe sequencing and the journal apply to every one of them. You can pause a script, take over its position, change its parameters, or flatten it.

Describe what you want in plain English, for example “put my stop under the recent 5-minute low and sell half at +25%”, and the assistant drafts the script for you. Ask it to backtest the script on your own sessions and it replays them, summarizes the results (trades, win rate, average win and loss, drawdown) and suggests changes you can compare before applying. You review every script before it runs.

Because the same engine runs live and in replays, a script can be replayed against recorded market data, at the highest precision your broker provides, through the same code that trades live.

Browse, fork and share scripts with other traders.

Want early access, or have a use case we should support? Email support@tradeshell.io.