DEEPWATER_THE ONE For ThinkOrSwim

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

I created a Buy scan and placed the code on Page 1 the 4th entry is now the scan for the strong buy signal. You need to add other discriminator filters like volume, price etc. Youtube will help you set up custom scans if you can't figure it out.

https://usethinkscript.com/threads/deepwater_the-one.6518/
I can't get the scanner to work on futures. Is there something that can be added/modified in the code to strictly look at futures?
 
Then up in my charts I use 2 EMA of specific lengths plus some other nice info like Volume I combined from other sources. Enjoy the code.

Code:
input timeFrame = {default day};
input showOnlyToday = no;

def day = GetDay();
def lastday = GetLastDay();
def isToday = If(day >= lastday, 1, 0);


def shouldPlot = If(showOnlyToday and isToday, 1, If(!showOnlyToday, 1, 0));
 #-----------------------------
 #input paintBars = yes;
 #-------------
plot UpperVolatility = isToday;
plot LowerVolatility = !isToday;
 #-----------------------

UpperVolatility.SetPaintingStrategy(PaintingStrategy.BOOLEAN_POINTS);
UpperVolatility.SetLineWeight(3);
UpperVolatility.SetDefaultColor(Color.GREEN);
UpperVolatility.Hide();
 #----------------------------
LowerVolatility.SetPaintingStrategy(PaintingStrategy.BOOLEAN_POINTS);
LowerVolatility.SetLineWeight(3);
LowerVolatility.SetDefaultColor(Color.RED);
LowerVolatility.Hide();
 #------------------------------------------
 #( today bars )
DefineGlobalColor("up", Color.GREEN);
DefineGlobalColor("dwn", Color.RED);

 # ( not today bars )
DefineGlobalColor("invisi", Color.BLACK);

 # if not paint bars then paint normal ... if condition1 then bullish scheme ... if condition2 then bearish scheme ... else normal
AssignPriceColor(
 if !showOnlyToday
 #!paintBars
then Color.CURRENT

else
 # ( is today then normal paint )
if UpperVolatility
then
if close > open then GlobalColor("up") else GlobalColor("dwn")
 #globalColor( "up"winking smiley

else
 # ( is not today then black)
if LowerVolatility
then GlobalColor( "invisi")
 else Color.CURRENT);



def today = GetDay() == GetLastDay();
plot dailyHigh = if !today then Double.NaN else high(period = "day" );
plot dailyLow = if !today then Double.NaN else low(period = "day" );
#-----------------------------
# ___________________________________________________________
# ________________  DAY/ HI-LOW / VOLUME ____________________
# ___________________________________________________________
#


input show_label = yes;
input show_bubble = no;


def period_Type = AggregationPeriod.DAY;

def begin = close(period = period_Type)[1];
def end = close(period = period_Type);
def NetChg = end - begin;
def PctChg = (end / begin) - 1;
def DayVolume = volume(period = "DAY");


AddLabel(show_label, " V: " + DayVolume + "  " , if  DayVolume > 0 then CreateColor( 224, 224, 224)
else if  DayVolume == 0 then CreateColor(224, 224, 224) else Color.LIGHT_GRAY);


def bar = if IsNaN(close)
             then if yes
                     then bar[1]
                     else Double.NaN
             else BarNumber();
def ThisBar = HighestAll(bar);
def barCount   = if bar == ThisBar
                 then close
                 else Double.NaN;
#####------EMA2
input price = close;
#input length9 = 9;
input length34 = 34;
input length144 = 144;
input displace = 0;
input showBreakoutSignals = no;

#def AvgExp9 = ExpAverage(price[-displace], length9);
def AvgExp34 = ExpAverage(price[-displace], length34);
def AvgExp144 = ExpAverage(price[-displace], length144);

input averageType = AverageType.EXPONENTIAL;

plot fastAvg = MovingAverage(averageType, price[-displace], Length34);
plot slowAvg = MovingAverage(averageType, price[-displace], Length144);

fastAvg.SetDefaultColor(GetColor(1));
slowAvg.SetDefaultColor(GetColor(0));
AddLabel(yes, if  fastAvg < slowAvg then "Trending Down" else "");
#Alert( fastAvg < slowAvg ,  "Trending Down ", Alert.BAR, Sound.Ring);
AddLabel(fastAvg > slowAvg, "Trending Up ", Color.LIGHT_GREEN);
#Alert( fastAvg > slowAvg ,  "Trending Up ", Alert.BAR, Sound.Ring);

#End Code
Thanks a lot .. !
 
I'm still in BBAI after the AI sector stocks pulled back. I use the indicator to trade every other day basically or day trade it
@Deepwater I happened to see your study/indicator, and it looks good. I noticed that you don’t use this study for day trading, yet you use it on the 2-minute and 5-minute timeframes (based on some of your posts). How do you trade this setup since u said "I use the indicator to trade every other day basically or day trade it?" You watch it on the 2-minute/5-minute charts, mark the buy/sell signals, and then trade the next day?

For example, AVAV gave multiple buy signals on the 2-minute chart on 3/2/26, yet it continued to move lower. However, I see that it’s up today (3/3), around where some of the buy signals plotted yesterday.
Also, if I wanted to swing trade using this setup, which timeframe would you recommend? The 30-minute and 1-hour charts with extended hours look almost similar. TIA
 
Last edited:
@Deepwater I happened to see your study/indicator, and it looks good. I noticed that you don’t use this study for day trading, yet you use it on the 2-minute and 5-minute timeframes (based on some of your posts). How do you trade this setup since u said "I use the indicator to trade every other day basically or day trade it?" You watch it on the 2-minute/5-minute charts, mark the buy/sell signals, and then trade the next day?

For example, AVAV gave multiple buy signals on the 2-minute chart on 3/2/26, yet it continued to move lower. However, I see that it’s up today (3/3), around where some of the buy signals plotted yesterday.
Also, if I wanted to swing trade using this setup, which timeframe would you recommend? The 30-minute and 1-hour charts with extended hours look almost similar. TIA
I do daytrade with the one but more common for me to take a position and hold it a day or two. There seems to be an opening downward bias to the markets and the one is great for marking the turn in the market. I follow 20 plus charts and simultaneously I will see most get a trigger to buy at the same time.
 
new to the community. been trading over 20 years and still on the losing side. looking forward to using some of the indicators. right now, i have a couple on lower side of chart but only one shows? it takes me a while to respond being as I still work full time. I get on computer off on throughout the day. I'm leaning toward trading on the 2-hour time frame. any suggestions??
 
new to the community. been trading over 20 years and still on the losing side. looking forward to using some of the indicators. right now, i have a couple on lower side of chart but only one shows? it takes me a while to respond being as I still work full time. I get on computer off on throughout the day. I'm leaning toward trading on the 2-hour time frame. any suggestions??
Kind of vague. What indicator(s) are below your chart?
 

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
1306 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