Extending TradeJS
Extend TradeJS through plugins and public package APIs.
Extension Points
- strategy plugins
- indicator plugins
- connector plugins
- project-level runtime hooks
- AI adapters
- ML adapters
Start Small
- Add one local plugin.
- Register it from
tradejs.config.ts. - Run one deterministic backtest.
- Add figures or diagnostics only where they help inspection.
- Move shared code into reusable helpers after the behavior is clear.
Keep Boundaries Clear
- browser-safe helpers belong in
@tradejs/core - Node runtime orchestration belongs in
@tradejs/node - infra adapters belong in
@tradejs/infra - shared contracts belong in
@tradejs/types
Related: