Supertrend on EMA

Viewing 8 posts - 1 through 8 (of 8 total)
  • #186760

    Dear All,

    I would like to request your help for the conversion of the attached pinescript code for a supertrend indicator based on an exponential moving average.

    You can follow the original script either here:

    https://www.tradingview.com/script/xEtpZd0t/

    or in the attached word file (where you can find also a picture of the aspect of the indicator).

    Many thanks in advance

    Loop

     

     

    #186819
    #186883

    Thanks for your prompt reply, however the script is not really working…

    Have you tried it?

    Loop

     

     

    #188300

    It doesn’t work because it’s not written in the ProRealTime language.

     

    #188447

    Nothing too fancy,  a Supertrend calculated on EMA of X periods:

     

    #195866

    Hello Nicolas,

    it doesn’t work for me. I get an error on line 6 and 7. Could you correct the error for me?

    Thanks.

    Johann

     

     

    #195868
    JS

    “price” is reserved for STOP and TARGET pricing

    Change all “price” in xPrice.

     

    #195885

    thank you js!

Viewing 8 posts - 1 through 8 (of 8 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login