FINBORS - Trade calculator

START
Open FINBORS_Calculator_Offline.html in a normal browser. It contains the
application, local catalog, styles and fonts. The ZIP includes this file and
the web assets. A messenger preview may not execute JavaScript.

Choose the account currency, capital and risk limit, then market and exact
instrument. USD denotes dollars and USC cents (100 USC = 1 USD). A cent
account does not determine contract size; verify it with the broker.
Confirm a custom account currency using Enter or leaving the field.

Stock search uses a built-in list, not a complete exchange directory or
live quotes. Select the correct listing or confirm a manual ticker.
A partial ticker does not automatically select a similar instrument.
Enter direction, entry, stop and targets. All starting prices are examples.

In Specifications and costs, verify contract size, quote point, minimum
tick, volume grid, P&L currency, commission, spread and margin basis.
Save verified specifications stores the selected instrument on this device.
Trade prices and account balance are not saved. Incomplete instrument
selection cannot change stored profiles. Storage depends on browser/file
location and is lost when browser data is cleared.

RESULTS
Volume rounds down to the permitted grid and respects risk, maximum size,
and the available-funds cap when enabled. Level R:R uses price distances;
the separate monetary ratio includes entered costs. Zero fees/spread means
these costs are omitted.

Chart-price mode uses Bid convention for Forex: spread is added to buy
entry or sell exit. Execution-price mode does not subtract spread twice.
Check your chart and order trigger conventions. Slippage is a scenario,
not an execution guarantee. Quote points and trading ticks are separate;
standard Forex pips are shown where their convention is known.

Linear P&L = price change x contract size x volume, then conversion.
Tick-value P&L = ticks x tick value x volume; gain/loss tick values may differ.
Fixed margin per contract is independent. Partial targets enforce price
order, weights and permitted closing/residual volume grids.

CONVERSION
Conversion uses supported subunits, the scenario price for recognized
base-currency accounts, or a Frankfurter daily reference rate. This is not
a tradable broker rate. If unavailable, disable automatic conversion and
enter a rate. USD, USDT and USDC are not treated as equal. Leaving an
unchanged account currency preserves an explicitly entered manual rate.

CRYPTO AND FUTURES
After changing contract type, enter size and min/max/step volume settings.
Linear size is base coins per volume unit. Inverse size is face value in
price currency; P&L uses reciprocal-price differences in the base coin.
Automatic conversion values coin P&L at each exit price. Collateral currency
revaluation is outside trade P&L.

Spot fees are separate cash charges: purchased quantity is unchanged.
Fees deducted from the received coin or a third token are not modelled.

Perpetual funding uses the entered constant rate, price and schedule.
Expected receipts do not increase risk budget. Partial exits assume the
full position remains through every funding event, allocating costs by exit.

Isolated liquidation is a constant-MMR scenario, without maintenance
 deductions, extra collateral or tier transitions. An optional tier cap
checks full/residual exposure. For cross margin, enter the exchange price.
Mark/Last/Bid-Ask trigger differences and price gaps are not modelled.
Extra exchange reserve is account currency per contract; it restricts size
but does not add isolated collateral.

For expiry futures, enter the earliest broker/delivery/trading deadline in
UTC and settlement type. Expired contracts block results and copying.
Exchange futures use fixed margin per contract. There is no automatic roll.

UPDATES AND LIMITS
The website can be installed through the browser. When an update is
available, Reload activates it and clears unsaved form values. Existing tabs
running older releases need one manual reload to load the update notice.
Replace a standalone HTML with a newly downloaded file to update it.

There is no account connection, file import or streaming quote feed.
Calculations stay local; external rate requests disclose the currency pair only.

Options, accrued-interest bonds, portfolio margin, negative prices, swap,
taxes, variable funding, collateral haircuts and every broker tariff are
outside this model. Profiles are stored separately per instrument; unrelated
concurrent writes do not replace one another. Node VM and exact
arithmetic checks do not replace real browser and broker validation.

Model references:
https://www.mql5.com/en/docs/constants/environment_state/marketinfoconstants
https://www.cmegroup.com/education/courses/introduction-to-futures/calculating-futures-contract-profit-or-loss
https://www.bybit.com/en/help-center/article/Profit-Loss-calculations-Inverse-Contracts
https://www.bybit.com/en/help-center/article/Bybit-Spot-Fees-Explained
https://frankfurter.dev/

AUDIT7 CLARIFICATIONS
Contract quantities with a share/coin multiplier are shown as volume units,
with total underlying quantity stated separately. The tick-value model does
not use the contract multiplier. Enter plain decimal numbers, without e/E.
Profiles are stored separately per instrument. Legacy records are retained.
The last completed write wins for the same instrument. Unreadable or corrupt
storage blocks writes and preserves the existing bytes.
