Two Inside bar Script

Optuma Forums Optuma Scripting Two Inside bar Script

This topic contains 2 replies, has 3 voices, and was last updated by Avatar Trevor R 3 weeks, 4 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #54115
    Avatar
    Jaime
    • Topics: 1
    • Replies: 0
    • Posts: 1

    Hi anyone come across a way to scan for 2 inside days in a row much appreciated here thanks all.

    #54117
    Darren
    Darren
    • Topics: 38
    • Replies: 261
    • Posts: 299

    Hi Jaime,

    Use the BARTYPES() function to automatically find inside bars:

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

    So your script would be as follows, where [1] is the previous bar:

    Second consecutive inside bar highlighted using the Show Bar:

    Capture

    #54119
    Avatar
    Trevor R
    • Topics: 41
    • Replies: 128
    • Posts: 169

    Hi Jamie,

    The script is very simple for use with SHOWBAR on a chart:

    // Double Inside Bar

    Inside0 = High(0) < High(1) and LOW(0) > LOW(1);

    Inside1 = High(1) < High(2) and LOW(1) > LOW(2);

    Inside0 and Inside1

    20190723 Double Inside

    Cheers

    Trevor

     

Viewing 3 posts - 1 through 3 (of 3 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