Bollinger Band Script

Optuma Forums Optuma Scripting Bollinger Band Script

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #59949
    AvatarMandeep
    • Topics: 44
    • Replies: 22
    • Posts: 66

    Hi,

    I am trying to put together a script which shows a Bollinger Band Breakout which follows a squeeze.

    Squeeze on:
    UBB = BB(BARS=20, STDDEV=2.000000).
    UpperLine; LBB = BB(BARS=20, STDDEV=2.000000).
    LowerLine ; VERGENCE(UBB, LBB, LOOKBACK=5);

    Breakout:
    close() crossesabove bb();

    Question how do I link the 2 scripts so that the squeeze has been ON for at least the last 1-2 days.

    cheers

    Mandeep

    #59974
    MatthewMatthew
    • Topics: 5
    • Replies: 309
    • Posts: 314

    Hi,

    If you have the SqueezeOn code setup as a saved script you can use the Script() function to reference it in other setups.

    For example, to make sure the Squeeze On code has been true for the last 2 bars when the Breakout occurs you could use something like this:

    For more information on the Script() function please refer to the following article:

    https://help.optuma.com/kb/faq.php?id=723

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close