> 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

How to get automating in a few clicks!

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="https://3858925325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcjkZtiib4uXVu3I4Zqc%2Fuploads%2FUqj6n1VyL5RGEkVXIxTB%2FPA-step-2.png?alt=media&amp;token=a9c49052-5e0c-4ba5-9611-3977322cf202" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3858925325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcjkZtiib4uXVu3I4Zqc%2Fuploads%2FvDyHY22ARMH87zh39yAB%2FPA-step-3.png?alt=media&amp;token=c320fd5b-d9d7-4960-a1ac-6dbefebf68b5" 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="https://3858925325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcjkZtiib4uXVu3I4Zqc%2Fuploads%2F3k2pk6sySdKRmF4yOsHj%2FPA-step-4.png?alt=media&amp;token=fe307649-8e25-4add-a883-b98f75130fd8" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3858925325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcjkZtiib4uXVu3I4Zqc%2Fuploads%2FEzmzLdhV48fi1n6YurXA%2FPA-step-5.png?alt=media&amp;token=5ea597c7-b15a-4321-9dac-a529277b1021" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3858925325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcjkZtiib4uXVu3I4Zqc%2Fuploads%2FkZg3tGLvn1RanhwkRcmv%2FPA-step-6.png?alt=media&amp;token=ae60ffd1-8720-4d76-b301-5b874c910e1e" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3858925325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKcjkZtiib4uXVu3I4Zqc%2Fuploads%2FBABmKeb3fg6jZYIBtzQM%2FPA-step-7.png?alt=media&amp;token=9549d549-1d6f-4258-a891-4277764ec7ff" 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 %}
