# Connect TradingView Strategy

1. Click Alert Messages in your bot, copy webhook URL, strategy action parameters and alert message

<figure><img src="https://744678542-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfaviZEoXehw28Z5kNYCW%2Fuploads%2FTMdHwFXLJMWftymq9jsN%2FClick%20Alert%20Messages%20in%20your%20bot%2C%20copy%20webhook%20URL%2C%20strategy%20action%20parameters%20and%20alert%20message.jpg?alt=media&#x26;token=af97c961-a17f-4261-af03-8185a19de258" alt=""><figcaption></figcaption></figure>

2. Go to TradingView charts, select trading pair, choose strategy and apply it to the chart

<figure><img src="https://744678542-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfaviZEoXehw28Z5kNYCW%2Fuploads%2FcC2VtvSBKNLbZXlHDT7A%2FGo%20to%20TradingView%20charts%2C%20select%20trading%20pair%2C%20choose%20strategy%20and%20apply%20it%20to%20the%20chart.jpg?alt=media&#x26;token=ed54b3a9-915c-4f7c-96cd-747b15ab4d8f" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** click Create a working copy in case it is a community script to have edit access
{% endhint %}

<figure><img src="https://744678542-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfaviZEoXehw28Z5kNYCW%2Fuploads%2F5qjAhfyJtyKT3whCRq2P%2FGroup%201000002897-1.jpg?alt=media&#x26;token=126238b4-7dc8-471e-a912-2b118c42e0ca" alt=""><figcaption></figcaption></figure>

3. Add alert\_message parameters from the bot to strategy entry, close or exit actions and click Save

<figure><img src="https://744678542-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfaviZEoXehw28Z5kNYCW%2Fuploads%2FHpvZR0m2OlbUzBwFzVKt%2FAdd%20alert_message%20parameters%20from%20the%20bot%20to%20strategy%20entry%2C%20close%20or%20exit%20actions%20and%20click%20Save.jpg?alt=media&#x26;token=5bd7aee1-a906-417f-90e7-004d401a5c74" alt=""><figcaption></figcaption></figure>

4. Set the chart timeframe and strategy configuration until backtest results meet your expectations

<figure><img src="https://744678542-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfaviZEoXehw28Z5kNYCW%2Fuploads%2F6gluqMRwLQ7Fcw58DOM9%2FSet%20the%20chart%20timeframe%20and%20strategy%20configuration%20until%20backtest%20results%20meet%20your%20expectations.jpg?alt=media&#x26;token=9bff57e9-ce2c-458f-89e9-c490b7f20a1c" alt=""><figcaption></figcaption></figure>

5. Click Alert, select strategy as condition, paste bot's alert message, set webhook URL and click Create

<figure><img src="https://744678542-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfaviZEoXehw28Z5kNYCW%2Fuploads%2FyQdRmtuIq7KL9CPJl6uo%2FClick%20Alert%2C%20select%20strategy%20as%20condition%2C%20paste%20bot&#x27;s%20alert%20message%2C%20set%20webhook%20URL%20and%20click%20Create.jpg?alt=media&#x26;token=b73e1ea4-edf7-4d4d-b811-ccc6bbfbc51b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://744678542-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfaviZEoXehw28Z5kNYCW%2Fuploads%2FhM5pyFqkOOywJimcLeRU%2FAlerts%20connected.jpg?alt=media&#x26;token=1dac2936-fe47-42de-9895-2682121ba788" alt=""><figcaption></figcaption></figure>
