hanifptw/backtesting-trade — reverse-engineered prompt
Reverse engineered prompt
Build me a local crypto backtesting web app for Binance Futures so I can test trading strategies without running a real bot.
I want a simple dashboard where I can pick a USDT futures pair, timeframe, date range, and strategy, then click run and see the results. It should fetch historical OHLCV data from Binance, run the backtest in Python, and show useful output like equity curve, trade list, win rate, return, drawdown, and chart overlays for indicators.
The main strategy should be a Stochastic state machine with long and short setup states, stop loss, take profit, optional tiered trailing stop, leverage setting, and optional auto reverse after stop loss. Also include basic RSI, SMA cross, and Supertrend strategies.
Make the strategy parameters editable from the UI so I don’t need to change code. This is just a personal local research tool, not live trading, not paper trading, and not a public SaaS. Use a Python FastAPI backend and a clean Next.js frontend. Look up current docs online if needed.
Want more depth? Deep Reverse