Keep BTC-USD and Day consistent across the saved rule
Entry
Price > SMA(50, Day) AND position value = 0
Exit
Price <= SMA(50, Day) AND position value > 0
Allocation
95% of buying power per entry; sell 100% of held units on exit
Pair
BTC-USD
Execution
Market; fractional units enabled
Starting capital
$10,000; no additional deposits
Show the table · 6 rows, 2 columns
| Decision | Saved rule |
|---|---|
| Entry | Price > SMA(50, Day) AND position value = 0 |
| Exit | Price <= SMA(50, Day) AND position value > 0 |
| Allocation | 95% of buying power per entry; sell 100% of held units on exit |
| Pair | BTC-USD |
| Execution | Market; fractional units enabled |
| Starting capital | $10,000; no additional deposits |
No matching rows. Clear the filter to see all records.
This example trades BTC-USD as a spot Cryptocurrency asset. The saved rules were read back and verified with automated trading off.
Inspect Day indicators at an actual recorded evaluation
BTC-USD price > BTC-USD 50 day SMA
Left value61,420.7109>Right value60,767.4145ResultTrueBTC-USD position value = constant
Left value0=Right value0ResultTrue
Show the table · 2 rows, 5 columns
Scroll sideways to compare all columns. Select a heading to sort.
| BTC-USD price > BTC-USD 50 day SMA | 61,420.7109 | > | 60,767.4145 | True |
| BTC-USD position value = constant | 0 | = | 0 | True |
No matching rows. Clear the filter to see all records.
At 2024-10-11T13:30:00.000Z, the recorded rule was: BTC-USD last price > 50 Day BTC-USD SMA and Position market value (BTC-USD) = Constant 0. Its overall result was true. Read the individual comparisons below, then ask Aurora to explain how they led to the action.
The signal requested 95 percent of buying power at a submitted price of 61,420.7109. 1 captured Filled order shares this timestamp; Aurora receives those fields with the signal.
Use the complete pair
BTC-USD, ETH-USD and SOL-USD price the base coin in US dollars. The Python crypto_asset helper expands BTC to BTC-USD and emits type Cryptocurrency. Use that same asset object in Price, moving averages, RSI, PositionValue and Buy/Sell actions.
from nexustrade.portfolio import crypto_asset, Price, SMA
asset = crypto_asset("ETH")
entry = Price(asset) > SMA(asset, 50, "Day")Choose the observation window
The examples explicitly use Day indicator windows and a Day backtest. Crypto trades throughout the week. Explore the recorded signal and fill timestamps to see when the engine evaluated the rules. Keep the interval fixed when comparing different signal parameters.
No comments yet.