# Converting a Strategy > Indicator so you can "Connect"

### ⚠️THIS SECTION IS FOR ADVANCED USERS ONLY:

You need to make sure the Tradingview Script you want to use is in the form of an **Indicator**, (not a strategy) and Pine Version 5. If you are going to use a **Strategy** you will need to convert it into an **Indicator.**

You can convert any indicator to version 5 in the Pine Editor on the right side settings, and convert a strategy to an indicator. (If you don't know how, Youtube it, or DM us on Tradingview or send a support message at GreedyBastard.io )

Replace the word "strategy" with "indicator" in the pine script.

<figure><img src="https://3681106161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYBoCoqyYKNDZ78GM5aUG%2Fuploads%2F3bHQxbH2VgC1uyitBna0%2Fpine%20indicator%20change.PNG?alt=media&#x26;token=5865f821-0223-4461-a643-0aac82ad1518" alt=""><figcaption></figcaption></figure>

Connect your desired script to the Greedy Bastard Risk Management Buddy Strategy using this snippet of code. (⚠️If you don't know how to set this up or add this code to your indicator, contact us on Discord or at support for a quote.)<br>

// /////////////////////////// SIGNAL FOR STRATEGY ///////////////////////

//-- ADD THIS SNIPPET TO THE BOTTOM OF YOUR HOST SCRIPT and add your buy and sell conditions variable

buy = ?

sell = ?<br>

Signal = buy ? 1 : sell ? -1 : 0

plot(Signal, title="🔌Connector🔌", display = display.data\_window)

<br>

// ////////////////////////////////////////////////////////////////////////

<br>

Add the Host Connection Snippet to the very bottom of your script&#x20;

Replace the ( ? ) in the  Buy = ? and Sell = ? variables with the Plotting Signal Conditions of your script.

<figure><img src="https://3681106161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYBoCoqyYKNDZ78GM5aUG%2Fuploads%2FXZ60ZRFpe1oYYJfcUMR4%2Fcomment%20snippet%20example.PNG?alt=media&#x26;token=902d6ac3-9699-4ada-8cbd-5f649dc415a8" alt=""><figcaption></figcaption></figure>

⚠️(This is just an example, not necessarily the actual variables you will replace the ? with.)

Remember that your snippet is making the Plotting Signal Conditions now for the Greedy Bastard Risk Management Buddy Strategy. So you will need to “comment out” (CTRL /) the Plotting Signal Conditions in the original script.

(You can also DM to ask us to do it for you for a small reasonable fee.)
