# How to Automate

1. Go to [www.primeautomation.ai](https://www.primeautomation.ai) and create an account.
2. In the navigation menu, click **'New Bot'**, then select **'Custom Bot'**.

<figure><img src="/files/s8sSI3AMeJ1HHLAovJ6P" alt=""><figcaption></figcaption></figure>

3. Follow the steps, select your exchange, and then wait.

<figure><img src="/files/XfArWIEcdLhmTcsO4dEP" alt=""><figcaption></figcaption></figure>

4. Go back to the **TradeEasy** settings in TradingView, and at the bottom under the Alerts section, select **Long, Short and Stop**. Make sure the TP percentages add up to 100%!

<figure><img src="/files/7WaC5KS1u6wDGnPFZ6nw" alt=""><figcaption></figcaption></figure>

5. Go to the **Alerts** menu on the right panel in TradingView, then click **Create Alert**.

<figure><img src="/files/4jO1UpbQ4T7iSAdk7jlu" alt=""><figcaption></figcaption></figure>

6. In the **Condition** field, select TradeEasy, and in the box below, choose **'Any alert() function call'**.

<figure><img src="/files/SbZdX5Zrp5iilGV7ZAfW" alt=""><figcaption></figcaption></figure>

7. In the **Notifications** tab, paste the **Webhook URL** provided by PrimeAutomation.

<figure><img src="/files/L2efdSZeOtiq9tHhMXL9" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
You're all set! Monitor your trades at PrimeAutomation. Now your bot will take all your trades.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tradeeasy.io/automate-with-primeautomation/how-to-automate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
