TradingView-API icon indicating copy to clipboard operation
TradingView-API copied to clipboard

How to use Supertrend?

Open imkane opened this issue 2 years ago • 0 comments

I was hoping to use this API to detect:

  1. when a new up/down Supertrend occurs
  2. 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): image

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:

imkane avatar Feb 04 '23 20:02 imkane