Getting Started

FAQ

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, color=color.new(#046ff9, 0), size=size.large, text='PineConnector \n Buy Entry', textcolor=color.new(color.white, 0)) //plotting up arrow when buy/long conditions met 
plotshape(ShortEntryCondition, style=shape.labeldown, location=location.abovebar, color=color.new(#046ff9, 0), size=size.large, text='PineConnector \n Sell Entry', textcolor=color.new(color.white, 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.

image

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:

https://pineconnector.net/webhook/
image

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.

image
đź’ˇ
Queries If you have questions relating to the code-injection, please reach out to PineConnector support via [email protected] or by clicking here.