AI Assistant
Tradecraft includes an AI-powered strategy assistant that helps you write strategies in natural language. Instead of writing JavaScript from scratch, you can:
Describe your strategy in plain English (e.g., "Buy on a 15% dip, sell 50% at 3x, then use a trailing stop")
Get instant code - The AI generates complete, working JavaScript code based on your description
Iterate quickly - Ask for modifications or improvements to your strategy
Learn by example - See how different trading concepts translate to code
The AI assistant understands trading terminology like:
Profit targets (2x, 5x, 10x)
Dips and pullbacks (10% dip, 20% correction)
Technical indicators (moving averages, trailing stops)
Position sizing (DCA, partial exits)
Risk management (stop-losses, time-based exits)

How to use it:
Click the AI assistant button in the strategy editor
Describe your trading strategy in conversational language
Review the generated code and test it with the simulator
Refine your strategy by asking follow-up questions
Even if you're comfortable writing JavaScript, the AI assistant is a great way to prototype strategies quickly or learn advanced patterns.
Last updated
