Need help with Stochastic syntax

Forums ProRealTime English forum ProBuilder support Need help with Stochastic syntax

Viewing 4 posts - 1 through 4 (of 4 total)
  • #9432

    Hi,

    New to the forum, first post! 🙂

    I’m trying to reproduce an indicator I have in another platform in PRT, but can’t make it work. Results differ from the “orginal”.

    It’s using Slow Stochastics, %K=5, %D=3.

    First part of it is comparing Slow Stochastic from two periods back with current period. I’ve tried like this:

    Also tried SmoothedStochastic. I’m not sure how to handle the Stochastic indicator in PRT. Any advice is greatly appreciated.

    Cheers,

    #9439

    Hi chrille,

    You should code your stochastic comparing statement like this instead:

    The “sto” variable array will be built on the fly by the platform, so you just have to refer to this array of data with number under bracket considering the last n value.

     

    #9473

    Hi Nicolas,

    Thanks for the suggestion, it works much better. Although I still get slightly different results compared to the”original”, but I’ll keep working on it. 🙂

    Cheers,

    #9475

    Maybe you could share us the indicator you’d like to be converted, this is something I’m used to 🙂

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

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