Two Inside bar Script

Optuma Forums Optuma Scripting Two Inside bar Script

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

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

    • Topics: 43
    • Replies: 312
    • Posts: 355

    Hi Jaime,

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

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

    Second consecutive inside bar highlighted using the Show Bar:


    AvatarTrevor R
    • Topics: 61
    • Replies: 198
    • Posts: 259

    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




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.