Hi Everyone,
I am new to ToS script and I need your help with quite straight forward issue.
I build a custom indicator named H_Range_OC (range of open and close) with only 1 parameter of length.
I want to create a new indicator that return arrow when Close above Range_OC of yesterday and this is what I don't know how to do.
Thanks a lot for your help.
Harry
Just in case you need, below is the H_Range_OC. It is quite 'new-bee' script.
I am new to ToS script and I need your help with quite straight forward issue.
I build a custom indicator named H_Range_OC (range of open and close) with only 1 parameter of length.
I want to create a new indicator that return arrow when Close above Range_OC of yesterday and this is what I don't know how to do.
Thanks a lot for your help.
Harry
Code:
input length = 15;
plot breakup = if close > H_range_OC(length) then high;
breakup.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
Just in case you need, below is the H_Range_OC. It is quite 'new-bee' script.
Code:
input length=15;
def HO = Highest(open, length);
def HC = Highest(close, length);
def LO = Lowest(open, length);
def LC = Lowest(close, length);
plot upper = Max(Max(Max(HO,HC),LO),LC);
plot lower = Min(Min(Min(HO,HC),LO),LC);