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)

The AI assistant has generated a strategy according to the wishes of the user.

How to use it:

  1. Click the AI assistant button in the strategy editor

  2. Describe your trading strategy in conversational language

  3. Review the generated code and test it with the simulator

  4. 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.

The AI assistant generates code based on your description, but you should review, test, and validate the strategy before using it with real funds. AI-generated code may contain errors, logical flaws, or unintended behavior. Always thoroughly test your strategy in the simulator and verify the code logic matches your intended trading approach.

Last updated