Bollinger Band Script

Optuma Forums Optuma Scripting Bollinger Band Script

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #59949
    Mandeep
    • Topics: 45
    • Replies: 22
    • Posts: 67

    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
    Matthew
    • Topics: 5
    • Replies: 430
    • Posts: 435

    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