Bollingerup/down

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #44921 quote
    Despair
    Blocked
    Master

    There are this to commands BollingerUp/BollingerDown implemented in PRT. The given syntax is:

    bolUp=BollingerUp[20](close)

    The parameter is obviously the period of the used SMA but is it possible to define how many standard deviations the band is above/below the SMA?

    Of course I can program this manually but I wonder if this command allows to define the stdv.

    #44923 quote
    David
    Participant
    Veteran

    you do it like this which is how PRT does it when you modify the Standard Deviations on the chart and use the visual builder:

    bolup= Average[20](close)+3*std[20](close)
    #44924 quote
    Despair
    Blocked
    Master

    I’m aware of it (like I wrote). I’m just wondering if one can specify the stdv when using  the PRT command for the bands.

    #44927 quote
    David
    Participant
    Veteran

    Sorry I’m confused about your question because I thought my response, answers your question. In my example the bands will now be 3 standard deviations.

    #44929 quote
    robertogozzi
    Moderator
    Master

    I’ve always programmed it myself manually, I’ve no knowledge of a way to override built-in parameters.

    I would be glad if there was one!

    Despair thanked this post
    #44934 quote
    David
    Participant
    Veteran

    Do you mean you want to compute the standard deviation yourself instead of using the built in function?

    If yes, I do have Example Bollinger Indicator code from PRT but it does run much slower than the built-in function.

    #44936 quote
    robertogozzi
    Moderator
    Master

    If I got what Despair said, he was thinking about something like this in a modified built-in BollingerUp:

    bolUp=BollingerUp[20,2.0](close)

    hopefully in a future release!

    #44938 quote
    Despair
    Blocked
    Master

    Roberto nailed it as so often. 😉 Would be nice to have this command in a future version.

    #44939 quote
    David
    Participant
    Veteran

    Okay but how would this make a difference you still get the same result – what am I missing?

    #44941 quote
    robertogozzi
    Moderator
    Master

    You are not missing anything David, the point is just “why not having this feature built in?”.

    Furthermore, to keep existing code work seamless, the second parameter could be omitted, in which case 2.0 could be assumed by default.

    That’s all!

    #45608 quote
    Nicolas
    Keymaster
    Master

    added in my wish list: https://www.prorealcode.com/topic/centralization-of-queries-and-suggestions-on-prorealtime/page/9/#post-45607

    (capability to change the default standard deviation coefficient) as suggested by Roberto.

    Despair and robertogozzi thanked this post
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.

Bollingerup/down


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Despair @despair Blocked
Summary

This topic contains 10 replies,
has 4 voices, and was last updated by Nicolas
8 years, 6 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/30/2017
Status: Active
Attachments: No files
Logo Logo
Loading...