Implementation

Implementation

No-Code Implementation

💡
If your script passed Feasibility Test 1, refer to Scenario 1. If your script passed Feasibility Test 2, refer to Scenario 2.

Scenario 1 — alert()

If you see a License ID input in the script’s settings, you should be able to automate the script easily.

image

Update Inputs

To implement the script, simply tweak the inputs available such as the License ID, Stop Loss and Risk. The script-owner might have a different set of input options — perhaps with traildist or the spread filter.

image

Select “Ok” once you have completed your edit.

Create Alerts

Go to the symbol and timeframe you’d like to implement the script for and create an alert.

Select the appropriate script under Condition, and input the following Webhook URL:

https://pineconnector.net/webhook/

In this example, we are implementing the script on US100 — evident from the “Create Alert on US100” at the top.

image

Once you have created your alert, you will be able to see the ticker and timeframe the alert is running on.

In this example, the alert is running based on prices on US100 on the 1 second chart.

image

The fired alert can be seen in the Alerts log, taking on the inputs you have indicated such as the License ID and post-symbol identifier.

You may repeat the implementation if you’d like to trade more symbols and timeframes.

Scenario 2 — alertcondition()

The script-owner might have used alertcondtion() to create the alert function.

Create Alerts

For this scenario, select the script under “Condition” and the appropriate selection such as “Going Long”.

💡
It’s just a name Your script will likely be named something other than “EMA”, and the long alerts may be “buy” or “strategy buy” instead.
image

Under Options, we recommend you select “Once Per Bar Close” to reduce repainting issues.

💡
Strategy vs Indicator The script you are using might be a strategy or an indicator. For this test, we used the 5 second chart to trigger the alert as soon as possible — you may use the 1 minute chart if you are on TradingView Pro or Pro+.
LicenseID,{{strategy.order.action}},{{ticker}},risk=1

Putting the alert setup panel together, we have something like this:

image

Once an alert fires, you may pause the active alert.

image

If you see {{strategy.order.action}} printed, the script is an indicator.

If you see actual order action such as “buy” or “sell” printed, the script is a strategy.

Configure Alert Message

You may start with something basic:

LicenseID,buy,{{ticker}},risk=1
LicenseID,buy,{{ticker}},risk=1,sl=10,tp=20

If your script is a strategy, you may opt for something more dynamic:

LicenseID,{{strategy.order.action}},{{ticker}},risk={{strategy.order.contracts}}
💡
Placeholder Options You may see the entire list of Placeholders here for both indicators and strategies.
💡
Syntax Matters Ensure that your alert message is compliant to PineConnector’s messaging structure or syntax here. Update “LicenseID” Please update “LicenseID” to your actual PineConnector License ID found in the licensing dashboard — it’s a long value beginning with a 6.

You may repeat the implementation if you’d like to trade more symbols and timeframes.

Next →

Syntax