Join useThinkScript to post your question to a community of 21,000+ developers and traders.
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."Mark Fishers Sushi Roll Reversal "
Never heard of that one.
# Previous HLC as Labels
# Assembled by BenTen at UseThinkScript.com
input aggregationPeriod = AggregationPeriod.DAY;
def close = close(period = aggregationPeriod)[1];
def high = high(period = aggregationPeriod)[1];
def low = low(period = aggregationPeriod)[1];
AddLabel(yes, Concat("Prev Close = ", close), color.orange);
AddLabel(yes, Concat("Prev High = ", high), color.orange);
AddLabel(yes, Concat("Prev Low = ", low), color.orange);
sorry the text in the image was manually added, but I added chart bubbles to the script for you and they can be toggled on or off in the study settings:Hi, I like the indicator on the chart expansion. I also like the text above the indicator lines. Is there a way to add the text as a feature of the study?
Thanks, Gary
#[email protected]
def NA = Double.NaN;
input agg = AggregationPeriod.DAY;
input showOnlyLastPeriod = no;
input showBubbles = yes;
input showValuesInBubbles = yes;
input spaceBetween = 1;
plot currentOpen;
plot prevDayClose;
plot prevDayLow;
plot prevDayHigh;
def exp = IsNaN(close[spaceBetween]);
currentOpen = if exp then open("period"=agg) else NA;
prevDayClose = if exp then close("period"=agg)[1] else NA;
prevDayLow = if exp then low("period"=agg)[1] else NA;
prevDayHigh = if exp then high("period"=agg)[1] else NA;
AddChartBubble(showBubbles, if IsNaN(currentOpen[1]) and !IsNaN(currentOpen) then currentOpen else NA, if showValuesInBubbles then "CurrOpen $"+currentOpen else "CurrOpen", Color.WHITE, yes);
AddChartBubble(showBubbles, if IsNaN(prevDayClose[1]) and !IsNaN(prevDayClose) then prevDayClose else NA, if showValuesInBubbles then "PrevClose $"+prevDayClose else "PrevClose", Color.YELLOW, yes);
AddChartBubble(showBubbles, if IsNaN(prevDayLow[1]) and !IsNaN(prevDayLow) then prevDayLow else NA, if showValuesInBubbles then "PrevLow $"+prevDayLow else "PrevLow", Color.RED, yes);
AddChartBubble(showBubbles, if IsNaN(prevDayHigh[1]) and !IsNaN(prevDayHigh) then prevDayHigh else NA, if showValuesInBubbles then "PrevHigh $"+prevDayHigh else "PrevHigh", Color.GREEN, yes);
currentOpen.SetDefaultColor(Color.WHITE);
prevDayLow.SetDefaultColor(Color.RED);
prevDayHigh.SetDefaultColor(Color.GREEN);
prevDayClose.SetDefaultColor(Color.YELLOW);
currentOpen.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
prevDayLow.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
prevDayHigh.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
prevDayClose.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
input aggregationPeriod = AggregationPeriod.DAY;
def open = open(period = aggregationPeriod);
def high = high(period = aggregationPeriod)[1];
def low = low(period = aggregationPeriod)[1];
def ANS = (high - low) / 4;
plot buy = ANS + open;
plot sell = ANS - open;
Ben, I really appreciate you taking the time... Today's open + ANS = Buy above@andre.muhammad Yes it's there. I followed the formula you provided. If anything, you need to check on the formula and see if you provided the correct one.
Previous Day High - Low/4 = ANS
ANS+ NEXT DAY OPEN PRICE = BUY
ANS-NEXT DAY OPEN PRICE = SELL
input aggregationPeriod = AggregationPeriod.DAY;
def open = open(period = aggregationPeriod);
def high = high(period = aggregationPeriod)[1];
def low = low(period = aggregationPeriod)[1];
def ANS = (high - low) / 4;
plot buy = open + ANS;
plot sell = open - ANS;
Start a new thread and receive assistance from our community.
useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.
We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.
If you are new, or just looking for guidance, here are some helpful links to get you started.