High Low Close Labels?


Is there a script out there to have the previous days High, Low, Close as a badge on the chart? Any help is greatly appreciated



Previous Daily High, Low, & Close

I use this as a pivot in addition to the ORB as another way to see the strength of the move. Not sure how good you are at coding but I'm trying to get the following to plot on a chart as two horizontal lines.

high+low+close/3=Daily Pivot Range

high+low/2 = Second Number

Daily Pivot Range minus Second number = Daily Pivot Differential

Daily Pivot Range + Daily pivot differential = Higher Pivot Range

Second Number minus Daily Pivot Differential = Lower Pivot Range

Plot the Higher Pivot Range and Lower Pivot Range with a horizontal line


Try this

input aggregationPeriod = AggregationPeriod.DAY;

def prevPriceHigh = high(period = aggregationPeriod)[0];
def prevPriceLow = low(period = aggregationPeriod)[0];
def prevPriceClose = close(period = aggregationPeriod)[0];
def Daily_Pivot_Range = (prevPriceHigh[1]+prevPriceLow[1]+prevPriceClose[1])/3;
def Second_Number = (prevPriceHigh[1]+prevPriceLow[1])/2;
def Daily_Pivot_Differential = Daily_Pivot_Range - Second_Number;

plot Higher_Pivot_Range =  Daily_Pivot_Range + Daily_Pivot_Differential;

plot  Lower_Pivot_Range = Second_Number - Daily_Pivot_Differential;
Last edited by a moderator:


"Mark Fishers Sushi Roll Reversal "
Never heard of that one.:unsure:
He defines it as a period of 10 bars where the first five (inside bars) are confined within a narrow range of highs and lows and the second five (outside bars) engulf the first with both a higher high and lower low. (The pattern is similar to a bearish or bullish engulfing pattern except that instead of a pattern of two single bars, it is composed of multiple bars.) In his example, Fisher uses 10-minute bars.

When the sushi roll pattern shows up in a downtrend, it warns of a possible trend reversal, showing that it’s a good time to look to buy or at the very least, exit a short position. If it occurs during an uptrend, the trader gets ready to sell. While Fisher discusses five-bar patterns, the number or duration of bars is not set in stone. The trick is to identify a pattern consisting of the number of both inside and outside bars that are the best fit with the chosen stock or commodity using a time frame that matches the overall desired time in the trade.

Similar threads