I can’t code same supertrend as PRT

Forums ProRealTime English forum ProBuilder support I can’t code same supertrend as PRT

Viewing 5 posts - 1 through 5 (of 5 total)
  • #180689

    Hi everyone!

    I’m trying to code the prorealtime supertrend in python with the native tws api.

    I noticed my ATR which is essential for calculating the supertrend it sometimes very far from the PRT indicator.
    I have tried several different functions for calculating ATR but nothing helps.

    Is it possible to find the source code for ATR or supertrend?
    Perhaps have you another way of thinking ?

    Thanks everyone
    Regards,
    Ben

    #180694

    There you go:

     

    #180724

    Hi robertogozz

    Yes it’s almost what i need, I would like to have a look inside “AverageTrueRange
    I will try some ideas from your stackoverflow link

    Thanks !

    #180733

    Atr (and TR):

     

    1 user thanked author for this post.
    #180743

    Thanks robertogozz

    i’ll studied that !

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

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