TradingView-API
TradingView-API copied to clipboard
How to use Supertrend?
I was hoping to use this API to detect:
- when a new up/down Supertrend occurs
- what the current Supertrend status is.
This is what this would look like graphically (you can see that currently it's in a down trend):

I tried using this sample code, but I have no idea what some of the parameters are for, or what the output represents: https://github.com/Mathieu2301/TradingView-API/blob/e17b61de523c49ef9b18beac9e3aba1d40428c59/examples/FromToData.js
Any advice would be much appreciated - thank you! :nerd_face: