4

I want to use Pine script to build a strategy in Tradingview website, and use outside data. Can Pine script call back outside Api?

franklili
  • 41
  • 1
  • 2
  • 1
    I suggest you read its documents carefully and doing some effort, then in case of having any problems, you can share your code here so the experts can help you more efficiently. – Arya Aghaei Apr 20 '21 at 21:20

2 Answers2

2

Maybe you could elaborate on what you mean on "call back outside Api"? Of course you can use Pine Script to create an alertcondition putting POST data in JSON format in the message argument and sending it to a webhook URL.

Keith
  • 719
  • 4
  • 8
2

Simple No! You cant make Api call directly, you can use alert which triggers webhook that you catch and forward to the Api you wanted. But remember webhook is only available in paid version.

Danish Shaikh
  • 161
  • 1
  • 5