Indicator for Think or Swim based on Rob Smith's The STRAT

@Pelonsax Awesome scan. However I think it needs to be changed so that the inside bar 1 bar ago and the twodown is the most current, because we want to catch the next day if it goes above the two that closes green. Current the scan is showing how it would work after thet fact. For example I pulled WIX from the scan today, it would have worked amazing!


example-insideday-previous-2down.jpg
 
Hi Gang,

I'm hoping someone can help me understand something that I know is extremely simple...but my brain will just not compute. Using Pelonsax's amazing and most recent Time_Frame_Continuity indicator, I can't seem to wrap my brain around something. Below is a screenshot of my setup. I have charts spanning Month all the way down to 5 minute and set everything up as per the video that was posted. Easy. No problem.

1 - My brain isn't able to make sense of each timeframe's green backgound continuity down the stack from largest timeframe (monthly) to smallest. I would expect that if the week and day are both showing timeframe continuity, the month should be too. Right? Maybe I have something configured wrong for the Month settings?

2 - Also, the blue or magenta lines on each individual chart indicates where the price action needs to get to in order to achieve full time frame continuity for only the time periods active on that chart, correct? Example; I have Month/Week/Day/Hour selected on a chart. If the blue line is $1 above the current price on an hourly chart, once price hits that blue line the chart will turn green since everything on the higher ranges are already green. Is this correct?

BK4indE.png

yfMvIaO.png


Anyway, thanks in advance for anyone's help on this.
 
Last edited by a moderator:
Here's another example for $DXY. Shouldn't the 2nd and 3rd down on the left also show red? Im wondering if i have something configured wrong in my time frames within each chart...

wdfEDZq.png
 
@Pelonsax Thank you so much for this scan. When are we supposed to run this scan? Do we run it before market open? Thanks!
I have it saved as a watchlist that sends text alerts when the conditions are met

@greco26 email me and I'll try to do a zoom session with you where we can go over all of this. It'll be a lot quicker and hopefully avoid any confusion. pelonsax[at]hotmail.com
 
@Pelonsax I agree this would be a great scan, if it was one day earlier. The move on the day after the 2 Down green candle is the one we need to catch. Novice here with Think script. I have been trying to play with the code, but I couldn't figure it out. Any luck on tweaking it on your end? Thanks for all you do in making these scripts. You are awesome!
 
I was playing with this over the weekend and was able to set it up this way. Not sure if this is what you were looking for. Let me know if i can help.

PcQv2aj.png
 
Hi Gang,

I'm hoping someone can help me understand something that I know is extremely simple...but my brain will just not compute. Using Pelonsax's amazing and most recent Time_Frame_Continuity indicator, I can't seem to wrap my brain around something. Below is a screenshot of my setup. I have charts spanning Month all the way down to 5 minute and set everything up as per the video that was posted. Easy. No problem.

1 - My brain isn't able to make sense of each timeframe's green backgound continuity down the stack from largest timeframe (monthly) to smallest. I would expect that if the week and day are both showing timeframe continuity, the month should be too. Right? Maybe I have something configured wrong for the Month settings?

2 - Also, the blue or magenta lines on each individual chart indicates where the price action needs to get to in order to achieve full time frame continuity for only the time periods active on that chart, correct? Example; I have Month/Week/Day/Hour selected on a chart. If the blue line is $1 above the current price on an hourly chart, once price hits that blue line the chart will turn green since everything on the higher ranges are already green. Is this correct?

BK4indE.png

yfMvIaO.png


Anyway, thanks in advance for anyone's help on this.
can you share this worksplace?
 
@Pelonsax - I believe small correction needed to your MTF watchlist code. Please confirm. Nice work btw.

Ruby:
def outsidebardown1  = outsidebar[2] and O[1] > C[1];

should be

Ruby:
def outsidebardown1  = outsidebar1 and O[1] > C[1];
 
@Pelonsax - I believe small correction needed to your MTF watchlist code. Please confirm. Nice work btw.

Ruby:
def outsidebardown1  = outsidebar[2] and O[1] > C[1];

should be

Ruby:
def outsidebardown1  = outsidebar1 and O[1] > C[1];
BROO!!!!!! Hell yeah man!! I'll bet that's the problem everybody had been having with this script! Wow man, I'm so glad you caught that.
 
Excellent work and thank you for all of this! I was playing with watch list columns and saw the 1st titled Strat FTC didn't match up so I basically combined the 2 to show color codes with price. This plots more to my thinking as I want FTFC across the board as the individual frames will take care of themselves. Anyway it works for my brain. It loaded 50-70 symbols pretty quick (weekend), S&P 100 it started bogging down.

WATCH-LIST-FTC.jpg


Code:
#------------------------------------
#
#        M T F      S T R A T
#         W A T C H L I S T
# a Study by Ramon DV. aka Pelonsax
#
#------------------------------------
#------------------------------------
# S T R A T    R E V E R S A L S
#
# A study by Ramon DV. aka Pelonsax
#
# Version 1.0  8/01/20
#
# Version 2.0 8/4/20 Corrected errors in logic for scenarios
# Version 2.1 8/15/20 Added Reversals
#
#------------------------------------
plot O = open;
def H = high;
def L = low;

def C = close;
#------------------------------------
# DEFINE SCENARIOS
#------------------------------------
def insidebar =  (H < H[1] and L > L[1]) or (H == H[1] and L > L[1]) or (H < H[1] and L == L[1]) or (H == H[1] and L == L[1]);
def outsidebar =  H  > H[1] and L <  L[1];

def insidebarup  = insidebar and O < C;
def twoup  = H > H[1] and L >= L[1];
def outsidebarup  = outsidebar and O < C;
def insidebardown  = insidebar and O > C;
def twodown  = H <= H[1] and L < L[1];
def outsidebardown  = outsidebar and O > C;
#------------------------------------
# LABEL SECTION
#------------------------------------

AssignBackgroundColor(
if
twoup then Color.GREEN else if
twodown then Color.RED else if
outsidebarup then Color.DARK_GREEN else if
insidebarup then Color.LIGHT_GREEN else if
outsidebardown then Color.DARK_RED else if
insidebardown then Color.ORANGE else if
!insidebarup and
!insidebardown and
insidebar then Color.WHITE else if
!outsidebardown and
!outsidebarup and
outsidebar then Color.YELLOW else Color.CURRENT);
addlabel(yes, O, color.black);
 
Apologies for the silly question - for scans like https://tos.mx/sml8vKo (that are posted in the first post), how do you edit them? I would like to run the scan, for example, from 40 bars ago. If you try to edit the scan, it seems to be referring to something else, and you aren't able to edit it - thanks very much
 
Excellent work and thank you for all of this! I was playing with watch list columns and saw the 1st titled Strat FTC didn't match up so I basically combined the 2 to show color codes with price. This plots more to my thinking as I want FTFC across the board as the individual frames will take care of themselves. Anyway it works for my brain. It loaded 50-70 symbols pretty quick (weekend), S&P 100 it started bogging down.

WATCH-LIST-FTC.jpg


Code:
#------------------------------------
#
#        M T F      S T R A T
#         W A T C H L I S T
# a Study by Ramon DV. aka Pelonsax
#
#------------------------------------
#------------------------------------
# S T R A T    R E V E R S A L S
#
# A study by Ramon DV. aka Pelonsax
#
# Version 1.0  8/01/20
#
# Version 2.0 8/4/20 Corrected errors in logic for scenarios
# Version 2.1 8/15/20 Added Reversals
#
#------------------------------------
plot O = open;
def H = high;
def L = low;

def C = close;
#------------------------------------
# DEFINE SCENARIOS
#------------------------------------
def insidebar =  (H < H[1] and L > L[1]) or (H == H[1] and L > L[1]) or (H < H[1] and L == L[1]) or (H == H[1] and L == L[1]);
def outsidebar =  H  > H[1] and L <  L[1];

def insidebarup  = insidebar and O < C;
def twoup  = H > H[1] and L >= L[1];
def outsidebarup  = outsidebar and O < C;
def insidebardown  = insidebar and O > C;
def twodown  = H <= H[1] and L < L[1];
def outsidebardown  = outsidebar and O > C;
#------------------------------------
# LABEL SECTION
#------------------------------------

AssignBackgroundColor(
if
twoup then Color.GREEN else if
twodown then Color.RED else if
outsidebarup then Color.DARK_GREEN else if
insidebarup then Color.LIGHT_GREEN else if
outsidebardown then Color.DARK_RED else if
insidebardown then Color.ORANGE else if
!insidebarup and
!insidebardown and
insidebar then Color.WHITE else if
!outsidebardown and
!outsidebarup and
outsidebar then Color.YELLOW else Color.CURRENT);
addlabel(yes, O, color.black);
very nice!
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
200 Online
Create Post

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

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.

How do I get started?

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.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top