Now in early access
Trade on rules,
not on reflexes.
Write your strategy in Python, backtest it on years of data, and let it run 24/7 on your own exchange account.
BTC/USDT
80,259.12
MACD 5 13 4
Execution log
- 19:00macd=471.62 signal=652.65
- 18:00macd=532.68 signal=773.34
- 17:00macd=784.84 signal=933.78
- 16:00macd=945.54 signal=1033.07
- 15:00macd=872.13 signal=1091.41
- 14:00macd=1161.58 signal=1237.60
- 13:00macd=1465.73 signal=1288.29
- 12:00macd=1464.01 signal=1169.99
- 11:00macd=1301.59 signal=973.99
- 10:00macd=1244.38 signal=755.58
- 09:00macd=865.37 signal=429.72
- Equity
- 1000.00 +0.0%
- Trades
- 0
ETH/USDT
2,852.38
MACD 5 13 4
Execution log
- 13:00macd=10.10 signal=11.88
- 12:00macd=11.20 signal=13.06
- 11:00macd=11.68 signal=14.30
- 10:00macd=14.57 signal=16.04
- 09:00macd=17.06 signal=17.03
- Equity
- 1000.00 +0.0%
- Trades
- 0
One Python file, from idea to live
Write the strategy once. Straufi backtests it, paper trades it and runs it on your exchange, without changing a line.
- Return
- +127.9%
- Buy & hold
- +86.0%
- Max DD
- -16.9%
- Win rate
- 60%
- Sharpe
- 1.90
- Trades
- 11
Backtest in seconds
Replay your code on years of market data, fees included, and compare it with buy & hold.
Simulated orders, real prices
Paper first, live when ready
Run on real market data with fake money, then switch to live in one click.
$ straufi login
Work from your terminal
Log in once, then backtest and deploy without leaving your editor.
- 14:00:00 → BUY ETH market, 1000.00 USDT
- 14:00:00 ETH/USDT: macd=13.25 signal=12.43
- 13:00:00 ETH/USDT: macd=10.10 signal=11.88
- 13:00:00 BTC/USDT: macd=1465.73 signal=1288.29
- 09:00:00 ETH/USDT: macd=17.06 signal=17.03
- 09:00:00 BTC/USDT: macd=865.37 signal=429.72
Full observability
Follow every print, order and fill live, timestamped and kept, so you can trace any trade back to the data behind it.
24/7
Every minute of every day
Runs 24/7
The market never closes. Your strategy keeps running while you sleep.
Write a strategy that buys BTC when it drops 2% under its 20-candle average
Writing dip_buyer.py…
Done: it buys 100 USDT of BTC whenever it closes 2% under its 20-candle average. Want me to backtest it?
Code it, or let your AI agent do it
Write Python with pandas and the libraries you know, or describe your strategy to Claude Code or Codex and let it write the file.
Classic strategies, in a few lines
Start from a well-known strategy and make it yours. Watch each one run: the code lights up when it acts on the chart.
1class MeanReversion(Strategy):2 def run(self) -> None:3 budgets = self.get_budget()45 for _, instrument in self.instruments():6 last = self.get_df(instrument).iloc[-1]7 budget = budgets.get(instrument.broker, {})8 quote = budget.get(instrument.quote, 0.0)9 base = budget.get(instrument.base, 0.0)1011 print(f"{instrument}: close={last.close} rsi={last.rsi:.1f}")1213 # Oversold: below the lower Bollinger Band, with an RSI under 3014 if last.rsi < 30 and last.close < last.bb_lower and quote > 0:15 self.place_order(Order(16 instrument=instrument, type=OrderType.MARKET,17 side=OrderSide.BUY, quote_volume=quote,18 ))19 # Overbought: above the upper Bollinger Band, with an RSI over 7020 elif last.rsi > 70 and last.close > last.bb_upper and base > 0:21 self.place_order(Order(22 instrument=instrument, type=OrderType.MARKET,23 side=OrderSide.SELL, volume=base,24 ))Output
- BTC/USDT: close=100435.82 rsi=44.9
- BTC/USDT: close=100546.37 rsi=46.7
- BTC/USDT: close=99796.26 rsi=37.0
- BTC/USDT: close=99271.15 rsi=31.7
- BTC/USDT: close=98750.65 rsi=27.1
- BTC/USDT: close=98812.81 rsi=28.5
- BTC/USDT: close=98327.77 rsi=24.2
1class TrendFollowing(Strategy):2 def run(self) -> None:3 budgets = self.get_budget()45 for _, instrument in self.instruments():6 df = self.get_df(instrument)7 prev, last = df.iloc[-2], df.iloc[-1]8 budget = budgets.get(instrument.broker, {})9 quote = budget.get(instrument.quote, 0.0)10 base = budget.get(instrument.base, 0.0)1112 print(f"{instrument}: fast={last.fast:.0f} slow={last.slow:.0f}")1314 # Golden cross: the fast average crosses above the slow one15 if prev.fast <= prev.slow and last.fast > last.slow and quote > 0:16 self.place_order(Order(17 instrument=instrument, type=OrderType.MARKET,18 side=OrderSide.BUY, quote_volume=quote,19 ))20 # Death cross: the fast average crosses below the slow one21 elif prev.fast >= prev.slow and last.fast < last.slow and base > 0:22 self.place_order(Order(23 instrument=instrument, type=OrderType.MARKET,24 side=OrderSide.SELL, volume=base,25 ))Output
- BTC/USDT: fast=100321 slow=99548
- BTC/USDT: fast=100202 slow=99802
- BTC/USDT: fast=100153 slow=100115
- BTC/USDT: fast=100268 slow=100308
- BTC/USDT: fast=100729 slow=100506
- → BUY BTC market, 1000.00 USDT
1class Momentum(Strategy):2 def run(self) -> None:3 budgets = self.get_budget()45 for _, instrument in self.instruments():6 df = self.get_df(instrument)7 prev, last = df.iloc[-2], df.iloc[-1]8 budget = budgets.get(instrument.broker, {})9 quote = budget.get(instrument.quote, 0.0)10 base = budget.get(instrument.base, 0.0)1112 print(f"{instrument}: macd={last.macd:.2f} signal={last.macd_signal:.2f}")1314 # The MACD crosses above its signal line: momentum turns up15 if prev.macd <= prev.macd_signal and last.macd > last.macd_signal and quote > 0:16 self.place_order(Order(17 instrument=instrument, type=OrderType.MARKET,18 side=OrderSide.BUY, quote_volume=quote,19 ))20 # The MACD crosses below its signal line: momentum turns down21 elif prev.macd >= prev.macd_signal and last.macd < last.macd_signal and base > 0:22 self.place_order(Order(23 instrument=instrument, type=OrderType.MARKET,24 side=OrderSide.SELL, volume=base,25 ))Output
- ETH/USDT: macd=-22.71 signal=-21.51
- ETH/USDT: macd=-21.54 signal=-21.52
- ETH/USDT: macd=-20.52 signal=-21.12
- → BUY ETH market, 1000.00 USDT
- ETH/USDT: macd=-18.60 signal=-20.11
- ETH/USDT: macd=-17.82 signal=-19.19
Frequently Asked Questions
Got questions? We've got answers.
The market never sleeps.
Neither does your strategy.
Join the waitlist. Early access is free for early adopters.