Skip to Content
NeurotraderDocs
Concepts

Fees

The maker and taker fees a simulated account charges on every trade, how you enter them and where they show up in a run's results.

A strategy that looks profitable before costs can lose money after them, especially one that trades often. To keep a backtest honest, the simulated account charges a fee on every trade, the way an exchange does. You set two rates, and Neurotrader applies the right one to each fill.

Maker and taker fees

Exchanges usually charge two rates, and the simulated account follows them:

  • The taker fee applies when an order trades as soon as it reaches the market. A market order pays it. So does a limit order whose price the market has already passed when it arrives, and so does the order that executes when a stop or a take-profit fires.
  • The maker fee applies when an order first waits on the book and trades later. A limit order that rests and is filled on a later candle pays it.

The execution journal shows each order's type and what became of it, which tells you which rate its fill paid.

Entry as a percentage

You enter both fees as a percentage of the value of the trade, the way exchanges quote them. A fee of 0.1 means 0.1%: a trade worth 1,000 USDT pays 1 USDT.

You set the fees in two places:

  • At creation. The Details step of the new simulation wizard has a Fees group with Maker fee (%) and Taker fee (%).
  • Afterwards. The Account card on the simulation's page shows Maker fee and Taker fee. Hover a value and select the pencil to change it.
Screenshot
The Account card of a simulation with the Maker fee row in edit mode, the value 0.075 typed in the percent field and the check button beside it

Both fees default to 0.1%. A fee can be any value from 0 to 100, and 0 means trading costs nothing. An invalid or emptied value is not saved: the fee stays as it was, and the app tells you so.

Fractions in the API

The app shows percentages. The API stores each fee as a fraction of the trade, so 0.1% is 0.001. See Simulation creation with the API.

Application to a trade

A fee is taken from what the trade delivers to the account:

  • A buy receives the instrument's base asset, and pays its fee in that asset. Buying 1 BTC at a fee of 0.1% leaves the account with 0.999 BTC.
  • A sell receives the quote asset, and pays its fee in that asset. Selling for 50,000 USDT at 0.1% leaves the account with 49,950 USDT.

Because fees reduce what the account holds, they are already inside every figure a run reports: the net worth, the return and the drawdown are all after fees. The realized profit of a closed trade is also net of the fees on both of its sides.

Fees in a run's results

A run's page shows Fees paid: the total the run paid, listed per asset. A run that bought and sold BTCUSDT typically shows one amount in BTC and one in USDT. The amounts are not added into one number, because an amount of BTC and an amount of USDT do not add. A run that never traded shows None.

The fee rates are part of the simulation's setup, and each run records the setup it used. If you change a fee and run again, the two runs in the history were charged different rates. The simulation's page marks a setup that has changed since the latest run.

Fees on a margin account

On a margin account, the orders that close a liquidated account pay the taker fee plus the simulation's liquidation fee. See Margin and leverage.

Fees with a broker account

In Live Paper Trade and Real Trade the broker holds the account and charges its own fees. There are no fees to set in Neurotrader: what the broker charges is what the run shows. If you plan to move a strategy to a broker, set the simulation's fees to that broker's published rates for your account, so the backtest pays what the real account would.

Fees are a setting of the simulation and are the same on every plan.

On this page