Is there Outside Bar indicator for ThinkorSwim?

L

Lauri

New member
VIP
I would like to contribute to this forum by offering to answer questions for those of you who are coding your own indicators. If you are stuck on something, perhaps I can help you figure it out.
Hi Robert. Can you tell me how to scan for Outside Bars on a daily/hourly? Thanks, coding is most difficult for me. Much appreciated.
 
BenTen

BenTen

Administrative
Staff
VIP
@Lauri Here is the code for the outside bar

Code:
# Outside Bar
# Mobius
# 3.1.2016

# In order to mark outside bars with a YELLOW dot, just use
# change the arrows to points and the color to whatever you
# wish
#
# SetPaintingStrategy(PaintingStrategy.Points)

plot Bullish = high > high[1] and
               low < low[1] and
               close > open;
     Bullish.SetPaintingStrategy(PaintingStrategy.Boolean_Arrow_Up);
     Bullish.SetDefaultColor(Color.Green);
     Bullish.setLineWeight(3);

plot Bearish = high > high[1] and
               low < low[1] and
               close < open;
     Bearish.SetPaintingStrategy(PaintingStrategy.Boolean_Arrow_Down);
     Bearish.SetDefaultColor(Color.Red);
     Bearish.setLineWeight(3);

Watch this video if you need help with using the scanner.
 
L

Lauri

New member
VIP
@BenTen Thanks, it looks great on the chart! I am new to this, a great help. Is there a way (or video) to put this in the Scan Tab so I may get candidates to look at? That would be awesome!

Thanks so much,
Lauri
 
BenTen

BenTen

Administrative
Staff
VIP
@Lauri I'm not getting the question. Are you having trouble using the scanner?
 
L

Lauri

New member
VIP
Hi @BenTen I was saying that the code is working great on the charts. And yes, I finally figured out how to run the scan. Great stuff! I don't know how you do that. I guess my question/goal is I would like to have a scan that can do multiple time frames on outside bars. Like a daily and hourly. How many columns can you have in a scan? Could 3 different time frames be scanned and displayed? Can we start with these questions?

Thx,
Lauri
 
BenTen

BenTen

Administrative
Staff
VIP
@Lauri You can do that easily. Just select your timeframe of choice and hit Scan :)

 

Similar threads

Top