Previous Day High and Low Breakout Indicator for ThinkorSwim

BenTen

BenTen

Administrative
Staff
VIP
@givemefood You should set up two separate scanners. One for "crosses below" and the other one for "crosses above"
 
D

Diba

New member
Hello! Is it possible to have Fibonacci configuration for Yesterday high and low which can be measure down and up?
 
S

Slappytheking

New member
Hello....new here......is there a way to have a a line drawn that represents the previous days mid point (50%) between open and close (open+close/2)? Just the body....not the high and low.

Thanks,

Slap
 
BenTen

BenTen

Administrative
Staff
VIP
@Slappytheking Try this:

Code:
#Plot yesterday's mid range

def Yhigh = high(period = "day" )[1];
def Ylow = low(period = "day" )[1];
plot mid = (Yhigh + Ylow) / 2;
 
S

Slappytheking

New member
Can it be this and get what I want?

#Plot yesterday's mid range

def Yhigh = open(period = "day" )[1];
def Ylow = close(period = "day" )[1];
plot mid = (Yhigh + Ylow) / 2;
 
BenTen

BenTen

Administrative
Staff
VIP
@Slappytheking Sure, that works too.

I didn't know if you wanted to get the range from the previous day high and low or the previous day's high and open. It seems like you modified it to the previous day's high and open.
 
S

Slappytheking

New member
I want the midpoint between previous days open and close......no high or low.....just open and close....

So will my script use previous day open, previous day close and calculate the mid point?"

Thanks benten for all the help.

Also, will this draw a line across the screen? Thanks again
 
BenTen

BenTen

Administrative
Staff
VIP
@Slappytheking No, this will not extend to the right of your chart. Only to the current day unless you have expansion on. That may give you a projection for tomorrow's levels.
 
VinicioRodd

VinicioRodd

New member
I need help. I would like to add labels to this study but I have no idea how to do it.Its really difficult to identify the lines for me and I would like to label them. Please help.
 
W

wst459

New member
Hi,
I want to create two watchlist columns that display the high and low after a specific time, ie after 11:30am. Is this possible?
 
L

Lyled7

New member
Hello - new user here. I was wondering if someone can help me scan for stocks that open the day above their previous day high. I have the previous day high indicator installed, just want to be able to scan for stocks that open above that mark easily.

Thanks.
 
L

Lyled7

New member
@divinci01 Since you just want to plot and scan for the previous day's high and low, here is the script for that (taken from post #1)

Code:
# 5 min opening range
# Robert Payne
#Plot opening range high / low
input OpenRangeMinutes = 5;
input MarketOpenTime = 0930;
input ShowTodayOnly = yes;

def Today = if GetDay() == GetLastDay() then 1 else 0;

#Plot yesterday's high / low
plot Yhigh = if ShowTodayOnly and !Today then Double.NaN else high(period = "day" )[1];
plot Ylow = if ShowTodayOnly and !Today then Double.NaN else low(period = "day" )[1];

Yhigh.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
Yhigh.SetDefaultColor(Color.UPTICK);
Yhigh.SetLineWeight(2);
Ylow.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
Ylow.SetDefaultColor(Color.DOWNTICK);
Ylow.SetLineWeight(2);

Add it as a separate indicator and then setup your scanner to something like this:

I can't see the bottom portion of this post to see how you are suggesting to setup the scanner - can you repost that?
 
T

Taye

New member
VIP
is there a way to have the candles normal colored for post #1?
I like this indicator
 
BenTen

BenTen

Administrative
Staff
VIP
@Taye Sure, look at the bottom of the script and delete the following:

Code:
AssignPriceColor(if close >= Yhigh then Color.GREEN
  else if close <= Ylow then Color.RED
  else Color.CURRENT);

AssignPriceColor(if close > Yhigh and open < close then Color.White
  else if close > YHIGH and open > close then Color.Gray
  else if close < Ylow and open < close then Color.White
  else if close < Ylow and open > close then Color.Gray
  else Color.CURRENT);
 

Similar threads

Top