I'm learning thinkscripting by trying to take what I can find and then modifying it.
I'm wondering about the offset and displace capabilities.
I found this unattributed code to display a line that is an input percent off the Low of the aggregation period.
input percentAbove = 20.0;
def lowOfQuarter = low(period = AggregationPeriod.QUARTER);
plot data = lowOfQuarter * (1 + percentAbove * 0.01);
Is there a way to push this line display forward using a user input value, so that the prior quarter's line able to be moved to the right.
Sort of like a lower Price Channel but set at user defined percentage off the low.
Or, is there a way to create an AggregationPeriod on multiples of the accepted periods. I know in Days, they have 2 days and 3 days.... as accepted periods. Is there a way to do this with weeks, or months or quarters? So an aggregation on 2 quarters? Or 4 months?
Thank you for any guidance and assistance offered
Andrew G.
I'm wondering about the offset and displace capabilities.
I found this unattributed code to display a line that is an input percent off the Low of the aggregation period.
input percentAbove = 20.0;
def lowOfQuarter = low(period = AggregationPeriod.QUARTER);
plot data = lowOfQuarter * (1 + percentAbove * 0.01);
Is there a way to push this line display forward using a user input value, so that the prior quarter's line able to be moved to the right.
Sort of like a lower Price Channel but set at user defined percentage off the low.
Or, is there a way to create an AggregationPeriod on multiples of the accepted periods. I know in Days, they have 2 days and 3 days.... as accepted periods. Is there a way to do this with weeks, or months or quarters? So an aggregation on 2 quarters? Or 4 months?
Thank you for any guidance and assistance offered
Andrew G.