Hi
I'm trying to get the previous day high low close using a range chart with the code:
But thinkscript return the following error:
Secondary subscriptions are not allowed on range charts.
Any tip?
Thanks
Carlos
I'm trying to get the previous day high low close using a range chart with the code:
Code:
input displace = -1;
input length = 1;
input timeFrame = { default DAY, WEEK, MONTH };
def H = Highest(high(period = timeFrame)[-displace], length);
def L = Lowest(low(period = timeFrame)[-displace], length);
def C = close(period = timeFrame)[1];
But thinkscript return the following error:
Secondary subscriptions are not allowed on range charts.
Any tip?
Thanks
Carlos
Last edited by a moderator: