Open source calculators and charts

Two small TypeScript packages with no dependencies, no tracking and no keys. The site runs on this exact code.

View on GitHub

@tradinglore/calculators

Position size, risk-reward, stop-loss and pip value maths. Pure TypeScript, zero dependencies. The same code runs our free calculators.

npm install @tradinglore/calculators

Estimate

20,000 units

Currency settings rate 1
Step-by-step working
  1. Money you accept losing10,000 x 1% = 100
  2. Distance from entry to stop|1.1 - 1.095| = 0.005
  3. Loss per unit if the stop fills (same currency)0.005 x 1 = 0.005
  4. Units to trade100 / 0.005 = 20,000

Source and README on GitHub · Full calculators

@tradinglore/candles

A seeded, deterministic OHLCV candle generator with trend, range and breakout regimes. Same seed, same chart, every time. It builds our practice charts.

npm install @tradinglore/candles

generateCandles({ seed: 7, bars: 60, regime: "breakout", bias: "up" })

Synthetic candles. Same seed, same chart, on any machine.

Source and README on GitHub

Embed a calculator

Every free calculator has a copy-and-paste embed for a blog or course page. Start with position size or risk to reward.

What you can check

Calculators are education only. Results exclude fees, slippage and broker rules and are not financial advice. Generated candles are synthetic, never historical market data. Packages are MIT licensed, Copyright (c) 2026 TradingLore.