> For the complete documentation index, see [llms.txt](https://docs.tradeeasy.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tradeeasy.io/automate-with-primeautomation/how-to-automate.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
