Open source · MIT

The maths and the charts behind the lessons, free to use.

Two small TypeScript packages from TradingLore. No dependencies, no tracking, no keys. The site runs on exactly this code, so what you read is what we ship.

@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

Ten lines

import { positionSize } from "@tradinglore/calculators";

const units = positionSize({
  accountSize: 10_000,
  riskPercent: 1,
  entry: 1.1,
  stop: 1.095,
  direction: "long",
});
// 20000

Try it here

Estimate

20,000 units

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

Ten lines

import { generateCandles } from "@tradinglore/candles";

const candles = generateCandles({
  seed: "lesson-1",
  bars: 120,
  regime: "breakout",
  bias: "up",
});

Try it here

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

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

Source and README on GitHub

Not a developer? Embed a calculator.

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

What you can check

The licence and the green hosting link to their live pages. Nothing here is a badge we gave ourselves.

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