# Easy Mode

Easy Mode provides a **visual, no-code interface** for creating trading strategies in Tradecraft. Instead of writing JavaScript code, you use an intuitive form-based editor to define your buy and sell rules. Easy Mode is perfect for beginners, traders who want to quickly test ideas, or anyone who prefers a visual approach to strategy creation.

<figure><img src="https://3175477167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYCh2t4HDhRRiAIqY93vK%2Fuploads%2FKmW3f85HajXIkQulbbft%2Fimage.png?alt=media&#x26;token=ed698046-0af4-4dbe-815c-2e5bb96ff9e0" alt="" width="554"><figcaption><p>Strategy that buys immediately as a signal arrives, and sells in two steps, with a 20% stoploss.</p></figcaption></figure>

#### What is Easy Mode?

Easy Mode is a simplified strategy builder that allows you to:

* **Create strategies visually** - Use dropdowns and input fields instead of code
* **Set up in minutes** - Define buy and sell conditions without programming knowledge
* **Start simple** - Begin with basic profit-taking strategies and add complexity as needed
* **Preview changes instantly** - See your strategy structure update as you configure it
* **Switch to Advanced** - Seamlessly transition to Advanced Mode when you need more control

#### Easy Mode vs Advanced Mode

| Feature             | Easy Mode                        | Advanced Mode                          |
| ------------------- | -------------------------------- | -------------------------------------- |
| **Interface**       | Visual form builder              | JavaScript code editor                 |
| **Learning Curve**  | Beginner-friendly                | JavaScript knowledge recommended       |
| **Setup Time**      | Minutes                          | Can take longer for complex strategies |
| **Flexibility**     | Pre-defined patterns             | Unlimited customization                |
| **Buy Conditions**  | Price dips, time delays          | Any logic you can code                 |
| **Sell Conditions** | Fixed targets, trailing stops    | Custom indicators, complex conditions  |
| **Best For**        | Quick testing, simple strategies | Advanced patterns, custom indicators   |

#### When to Use Easy Mode

Easy Mode is ideal for:

* **Learning trading strategies** - Understand strategy structure without coding complexity
* **Quick prototyping** - Test strategy ideas rapidly before committing to code
* **Standard patterns** - Implementing common strategies (take profits, trailing stops, DCA)
* **Beginners** - Get started with automated trading without programming skills
* **Testing concepts** - Validate strategy logic before building complex implementations

#### When to Switch to Advanced Mode

Consider switching to Advanced Mode when you need:

* **Custom technical indicators** - Moving averages, RSI, custom calculations
* **Complex conditions** - Multiple AND/OR logic combinations
* **Historical data analysis** - Access to price tick history for lookback logic
* **State management** - Tracking custom variables across executions
* **Advanced patterns** - Sophisticated multi-phase strategies with dynamic logic

> **💡 Tip**: You can start in Easy Mode to build the foundation of your strategy, then switch to Advanced Mode to add custom logic. However, once you manually edit code in Advanced Mode, you cannot switch back to Easy Mode for that strategy.

***

### Easy Mode Interface

#### Strategy Configuration Sections

The Easy Mode editor is organized into three main sections:

**1. Buy Conditions**

Configure when and how your strategy enters a position:

* **Entry timing** - Wait for price dips or immediate entry
* **Position size** - How much to buy (percentage)
* **Time-based filters** - Delays or token age requirements

**2. Sell Conditions**

Define your exit strategy with multiple sell targets:

* **Take profit levels** - Sell at specific profit multipliers (2x, 5x, 10x)
* **Partial exits** - Sell portions of your position at different levels
* **Trailing stops** - Lock in profits while allowing upside
* **Stop losses** - Protect against downside risk

**3. Risk Management (Optional)**

Additional safety features:

* **Maximum hold time** - Exit after a specific duration
* **Hard stop loss** - Absolute loss threshold
* **Minimum profit before trailing** - Only activate trailing stops after gains

#### Take Profit Targets

Take profit targets allow you to sell portions of your position at predefined profit levels.

**How It Works:**

1. Set multiple profit targets (e.g., 2x, 5x, 10x)
2. For each target, specify what percentage to sell
3. Percentages are relative to remaining position
4. Strategy executes sells sequentially as targets are hit

**Example Configuration:**

```
Target 1: Sell 25% at 2x profit
Target 2: Sell 50% at 5x profit
Target 3: Sell 100% at 10x profit
```

**Position Breakdown:**

* Start: 100% position
* After 2x: 75% remaining (sold 25%)
* After 5x: 37.5% remaining (sold 50% of 75%)
* After 10x: 0% remaining (sold 100% of 37.5%)

#### Stoploss

A hard stoploss exits your position when price drops below a specific threshold.

**How It Works:**

1. Set a loss percentage from entry price (e.g., 20%)
2. If price drops to that level, immediately sell
3. Executes before any take-profit targets

### Switching Between Easy and Advanced Mode

You can switch from Easy Mode to Advanced Mode at any time:

1. Click the mode toggle switch in strategy editor
2. Your Easy Mode configuration converts to JavaScript code
3. You can now edit the code directly
4. Add custom logic, indicators, or conditions

**Benefits:**

* Start with solid foundation from Easy Mode
* Add advanced features incrementally
* Learn JavaScript by seeing generated code

{% hint style="info" %}
**Important:** Once you manually edit code in Advanced Mode, you cannot switch back to Easy Mode for that strategy. The system marks it as "Manually Modified."
{% endhint %}

#### Why Can't I Switch Back?

If you manually edit JavaScript code in Advanced Mode, the system cannot reliably convert it back to Easy Mode format because:

* Custom logic may not map to Easy Mode options
* Advanced features (indicators, custom conditions) aren't available in Easy Mode
* Hand-written code may use patterns Easy Mode doesn't support
