Explore more topics
NexusTrade guide

Set crypto allocation and exit rules

Choose fractional spot allocation, control repeated entries and define complete exits or accumulation rules.

As of 2026-10-10

Jump to a section

TL;DR

Size spot crypto in fractional units and include fees as separate cash flows. The BTC example spends $9,500 plus a $66.50 fee from a $10,000 account, then needs two recorded sale fills to close all units. An empty-position entry guard prevents repeated purchases. A weekly $150 accumulation rule serves a different purpose and holds its purchases through the test; inspect quantities rather than inferring a complete exit from one sale.

Follow the fractional quantity and its fee

Animation: a BTC backtest buys 0.2228 BTC at $42,640.08 on Jan 1, 2024, which is $9,500.00 plus a $66.50 fee. As the position value moves over two weeks, BTC held drops to 0.00155957 after a sale of 0.2212 BTC at $42,505.61 on Jan 14 with a $65.83 fee, then to 0 after a second sale of 0.00156 BTC at $42,474.15 on Jan 15 with a $0.46 fee. The three fees total $132.79.
The first sale left 0.00156 BTC behind, a second sale the next day closed the position, and the three fills paid $132.79 in fees.
Show the table · 3 rows, 7 columns

Scroll sideways to compare all columns. Select a heading to sort.

2024-01-01T14:30:00.000ZBTC-USDBuy0.22279508898062086$42640.08$42640.08$66.50
2024-01-14T21:00:00.000ZBTC-USDSell0.22123552335775648$42505.61$42505.61$65.83
2024-01-15T14:30:00.000ZBTC-USDSell0.001559565622864384$42474.15$42474.15$0.46

The opening notional is 0.22279508898062086 BTC × $42640.08 = $9,500.00. At the declared 0.7% rate, its calculated fee rounds to $66.50, matching the recorded $66.50. The following sale fills together close 0.22279508898062086 BTC. All three displayed fees sum to $132.79.

The entry uses 95% of buying power, and fees are a separate cash flow. Read both exit fills rather than assuming the first sale closed every fractional unit. The full source retains the remaining orders and their timestamps.

Read the empty-holding guard and complete exit rule

  1. Entry

    Price > SMA(50, Day) AND position value = 0

  2. Exit

    Price <= SMA(50, Day) AND position value > 0

  3. Allocation

    95% of buying power per entry; sell 100% of held units on exit

  4. Pair

    BTC-USD

  5. Execution

    Market; fractional units enabled

  6. Starting capital

    $10,000; no additional deposits

Show the table · 6 rows, 2 columns
DecisionSaved rule
EntryPrice > SMA(50, Day) AND position value = 0
ExitPrice <= SMA(50, Day) AND position value > 0
Allocation95% of buying power per entry; sell 100% of held units on exit
PairBTC-USD
ExecutionMarket; fractional units enabled
Starting capital$10,000; no additional deposits

This example trades BTC-USD as a spot Cryptocurrency asset. The saved rules were read back and verified with automated trading off.

Size fractional units

The entry/exit examples allocate 95% of buying power and enable fractional units. The PositionValue = 0 entry check waits until the coin position is empty. The sell rule closes 100% of current positions when its exit condition is true. Inspect sent quantities and the remaining holdings in the events.

Separate accumulation from entry and exit

The weekly BTC accumulation example buys $150 when at least seven days have passed since the last filled purchase. It uses the original $10,000 cash balance without additional deposits and holds the accumulated units through the end of the test.

Inspect the exit

Follow the SellSignal and subsequent Filled orders, then compare sold quantities with holdings. Explore fees and remaining cash before the next entry. Save a changed allocation or exit as a separate experiment so its results can be compared.

Continue exploring

Discussion

Sign in or create a free account to join the discussion.

No comments yet.

Aurora · AI research assistant

Try this in Aurora

Edit the request, then open it in Aurora. You choose when to send it.