hydroflask
New member
Does anybody know how to accomplish this?
You can plot a variety of standard aggregation periods up to 4 hours, but what about 8 and 12? I need a study that marks the open of these candles and know it's possible, I just can't figure it out based off of the TOS self help site/library. Their DailyOpen code is below:
You can plot a variety of standard aggregation periods up to 4 hours, but what about 8 and 12? I need a study that marks the open of these candles and know it's possible, I just can't figure it out based off of the TOS self help site/library. Their DailyOpen code is below:
Code:
input aggregationPeriod = AggregationPeriod.DAY;
input showOnlyLastPeriod = yes;
def prevPrice = open(period = aggregationPeriod)[-1];
def price = open(period = aggregationPeriod);
plot DailyOpen = if showOnlyLastPeriod and !IsNaN(prevPrice) then Double.NaN else price;
DailyOpen.SetDefaultColor(GetColor(2));
DailyOpen.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);