Getting Started



PineConnector Compatibility

PineConnector Compatibility

Adding PineConnector compatibility

Dear script-owner, A mere mortal is at your mercy to inject some codes to your private script. The code injection will add PineConnector compatibility, without revealing your script’s source code. The conversion should take about 10 minutes, unless you’d like to personalise the inputs further and add exit alerts. The person who reached out to you will be eternally grateful if you make your script PineConnector-compatible :-)

Code Injection

To make the conversion, you may inject the recommended code below:

LicenseID = input(0, "Pineconnector License ID", "License ID found in the Licensing Dashboard")
SL = input(10, "Stop Loss", "sl= value")
TP = input(20, "Take Profit", "tp= value")
Risk = input(1, "Risk", "risk= value")
Pre = input("", "Pre-symbol", "Leave blank if no pre-symbol indentifier")
Post = input("", "Post-symbol", "Leave blank if no post-symbol indentifier")

plotshape(LongEntryCondition, style=shape.labelup, location=location.belowbar,, 0), size=size.large, text='PineConnector \n Buy Entry',, 0)) //plotting up arrow when buy/long conditions met 
plotshape(ShortEntryCondition, style=shape.labeldown, location=location.abovebar,, 0), size=size.large, text='PineConnector \n Sell Entry',, 0)) //plotting down arrow when sell/short conditions met

if LongEntryCondition
    alert(str.tostring(LicenseID)+',buy,' +Pre+syminfo.ticker+Post+ ',sl=' +str.tostring(SL)+ ',tp=' +str.tostring(TP)+ ',risk='+str.tostring(Risk), alert.freq_once_per_bar_close)

if ShortEntryCondition
    alert(str.tostring(LicenseID)+',sell,' +Pre+syminfo.ticker+Post+ ',sl=' +str.tostring(SL)+ ',tp=' +str.tostring(TP)+ ',risk='+str.tostring(Risk), alert.freq_once_per_bar_close)
Required Changes Instead of “LongEntryCondition” and “ShortEntryCondition”, apply your actual long and short entry conditions

Result and User Implementation

Ability to tweak syntax components

The code-injection will enable users to tweak components in their entry alerts such as their License ID, stop-loss and risk.


Creating Alerts

After users change their inputs to their desired values, they can create an alert which will be sent to the PineConnector server.

Users will have to input PineConnector’s server in the webhook URL:

Dynamic and Compliant Alert Message

With the suggested code, triggered alerts will have user’s inputs reflected in the alert message. The generated message is also compliant to PineConnector’s syntax requirements.

Queries If you have questions relating to the code-injection, please reach out to PineConnector support via or by clicking here.