Show Bar Script – Bar Chart OCHL

Optuma Forums Optuma Scripting Show Bar Script – Bar Chart OCHL

Tagged: , , , ,

This topic contains 0 replies, has 1 voice, and was last updated by  Jonathan 1 year ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #28507

    Jonathan
    • Topics: 11
    • Replies: 12
    • Posts: 23

    I wanted to post a response I got my support to assist others in their journey.

    if you want to view/trade a specific bar type the scripts below may be beneficial to you.

     

    For other bar types you will need to create script formulas, so open above the previous bar’s midpoint use this:

    OPEN() > (LOW(1) + HIGH(1)) / 2

    and below:

    OPEN() < (LOW(1) + HIGH(1)) / 2

    For open in the bottom third:

    R1 = (HIGH() – LOW()) * 0.333;
    OPEN() < LOW() + R1

    For a close in the top third:

    R1 = (HIGH() – LOW()) * 0.333;
    CLOSE() > HIGH() – R1

    For both:

    R1 = (HIGH() – LOW()) * 0.333;
    OPEN() < LOW() + R1 and
    CLOSE() > HIGH() – R1

    Close near the low you would need to specify near, either as a % or absolute, so within 5 cents of the low:

    CLOSE() – LOW() <= 0.05

    Within 10% of the high:

    R1 = HIGH() – LOW();
    C1 = CLOSE() – LOW();
    (C1 / R1) > 0.9

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Pin It on Pinterest

Share This