austin-starks/NextTrade — reverse-engineered prompt
Reverse engineered prompt
Build me a web app for planning and testing stock trading strategies. I want to be able to create simple rules like a stock is below its recent average or my buying power is over a certain amount, combine those rules into bigger conditions, then use them to make buy or sell strategies.
The app should let me create multiple portfolios, attach different strategies to each one, backtest them on historical stock data, and show clear results like percent gain, Sharpe ratio, Sortino ratio, and max drawdown. I also want an optimizer that can try different strategy settings with a genetic algorithm and let me choose things like mutation rate, population size, training period, and validation period.
Include a clean frontend and a backend with database storage. It should support connecting to Tradier with a sandbox token so strategies can eventually be deployed live and monitored in real time. Keep it focused on stocks for now. Look up current docs online if you need to.
Want more depth? Deep Reverse