Dividing a price bar into 4 equal parts


Category:
0
0

I like to look at the average price per bar which divides the bar in half. Is there a way to divide a price bar into four equal parts?

Marked as spam
Posted by (Questions: 4, Answers: 8)
Asked on June 23, 2020 11:00 am
54 views
0
Private answer

Since you already have the mid point it seems you only need the bottom quarter and top quarter.

def range = high - low;
def quarterRange = range * 0.25;
plot bottomQuarter = quarterRange + low;
plot topQuarter = high - quarterRange;

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on June 23, 2020 2:30 pm