Free webmaster toolkit

Three practical forex widgets for your own website

Add a position-size estimator, a reward-to-risk helper and a drawdown-recovery calculator to any ordinary HTML site. The package is dependency-free, responsive and performs all calculations in the visitor’s browser.

HTML example · JavaScript · responsive CSS · setup guide

Embeddable forex calculators for webmaster websites
Free with attribution. You may use and restyle the widgets on commercial websites as long as the visible “Powered by Trade-Forex.info” source link remains intact. The widgets contain no analytics, cookies, live-price feed or remote API calls.
The tools

Useful calculations—not decorative tickers

01

Position size

Uses account balance, chosen risk percentage, stop distance and pip value per standard lot to estimate trade size.

02

Reward-to-risk

Compares target with stop distance and adds an optional expectancy estimate expressed in R.

03

Drawdown recovery

Shows the asymmetric percentage gain required to recover from a selected account drawdown.

Four-line setup

Embed one or all three

Upload the included CSS and JavaScript files, then add the widget container where the calculator should appear.

<link rel="stylesheet" href="/assets/trade-forex-widgets.css">

<div data-tf-widget="position-size"></div>

<script src="/assets/trade-forex-widgets.js" defer></script>

Change the data attribute to reward-risk or drawdown-recovery for the other tools. The included example.html demonstrates all three together.

Built for reuse

Implementation details

No dependencies: plain HTML, CSS and JavaScript with no framework or build process.

Responsive: the controls adapt to narrow columns and mobile screens.

Privacy-friendly: values stay in the browser; nothing is sent to Trade-Forex.info.

Accessible output: results use an ARIA live region and update as inputs change.

Responsible publishing

What to tell your visitors

  1. State the account currency and assumptions used in the input values.
  2. Explain that pip value varies by pair, account currency and position size.
  3. Do not present calculator output as personalised advice or a profit forecast.
  4. Keep the source link visible so visitors can find the methodology and larger calculator suite.
For your readers

Link to an independent broker checklist

Before opening any leveraged trading account, readers should check regulation, client-money treatment, costs, withdrawal terms and execution quality.

Read the broker checklist

Calculations are estimates for educational use and are not financial advice. Version 1.00 · September 2026.