Show Bar Script - Bar Chart OCHL

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