Stochastic Watchlist, Scan, Alert, Arrows & Other For ThinkOrSwim

Just like all studies, scanners or strategies...you want to have a simple "BUY" or "SELL" arrow on the screen with audio Alert to help you making that decision to pull that trigger to invest your hard earned cash.....
I found this Scanner to be right on the dot....so far. Can't wait till tomorrow since I've only played with it on the real market for about 20 minutes. It triggered about 5 tickers that I just pulled up and placed 1 share buy. All made money!!!!!! Not sure if mjamesb80 did any trading or watched as me, but so far I am extremely happy......
 
This thing works beautifully for the time I had left before market closed.....it's set for 5 min.....have you tried to maybe change it to 1m 2m 15m 1 hour??? Wonder if it would work?
I believe the scan works for other time frames if you change the box in the top right of the scan page

zPd3HE.png
 
I'm still under the $25K so I can only go Long.....What I've learned so far is that the Scanner will trigger on 5 and 2 min charts. Also, it's very important to implement your strategies ie. I only go long above VWAP and I move my stop-loss as the price goes up. This Scanner seems to make awesome scalp calls.....I will spend more time with it.....

Hope this answers your questions? But it shows both Long and Short signals/arrows.
 
I’m a option day trade but I don’t know much about TA either LOL! I just need some thing it easy for me to tell the way market go
sigh! i don’t even know how to set up anything,still love to learn a lot.
 
Dawn, you copy and paste it using keyboard (not mouse...so its CTRL+V) into the TOS....top right corner, click setup then Open shared item.....paste and go from there......
 
Hello,im new here and also newbie in stick market and don’t even know anything about script,I love to learn about it! If you don’t mind can you please tell me where to paste this in to TOS ,thank you
That's a link, you copy link & go top right corner & click open share or something similar, and then you click on open shared item & click ctrl+v - then - you hit preview & rename the file. Later click on scanhacker & top right section (3 horizontal dashs) click on load scan, look for the file that you saved as & click on it.

you then need to set parameters such as price range, volume etc to your liking.

If you're really new to TOS, it'll take you TIME to get used to it as you'll be overwhelmed w/ amount of parameters,settings etc involved. I mean seriously man, the learning curve is really high at least for me it was & still a learning process

Check out youtube videos to get started. Good luck
 
I'm still under the $25K so I can only go Long.....What I've learned so far is that the Scanner will trigger on 5 and 2 min charts. Also, it's very important to implement your strategies ie. I only go long above VWAP and I move my stop-loss as the price goes up. This Scanner seems to make awesome scalp calls.....I will spend more time with it.....

Hope this answers your questions? But it shows both Long and Short signals/arrows.
Thanks, I wanted to confirm if you're going long &/or short w/ it. Your feedback actually answers my question. I intend on using this tomorrow at 930a est as it's the listed "start time".
 
Dawn, you copy and paste it using keyboard (not mouse...so its CTRL+V) into the TOS....top right corner, click setup then Open shared item.....paste and go from there......
I know how to do that,but how to I import it to the scanner please! So sorry if I ask a lot of question,I’m a old lady and still learning all this :) thank you for your kindness.
 
Gotcha.....I was wondering because in the script, the first line says aggregationperiod five min......so I thought maybe it's only for a 5 min chart?
I saw that too, but I don't believe that line of code is being utilized anywhere in the rest of the script. In other words, you could take it out and get the same results. The buy/sell signals should adjust to the chosen chart's timeframe
 
Dawn.....That makes 2 of us hahahahaha.......the link is already a scanner.....

after you save the link in TOS....go to top left click scan button...after it opens go to top right corner and the second set down of the 3 line symbols, click it and it will say "load scan query.." click that then look for the name of the link you saved it as. Before you save, you can name it your own, rename it later etc.....but after you find it, click it and there you have it.....
 
Hi @Stock Tradin What does this strategy give you as an indication. Could you please elaborate? What are the conditions it needs to be met to either alert an buy or a sell signal. TIA.
 
Took out the unused parts of this study. It looks to be hacked from a larger study.

Code:
input ORBegin = 930;
input OREnd = 1600;
def ORActive = if SecondsTillTime(OREnd) > 0 and SecondsTillTime(ORBegin) <= 0 then 1 else 0;
def today = GetDay() == GetLastDay();


input filterfrom_1_20= 10;
def Sover_bought = 80;
def Sover_sold = 20;
def SKPeriod = 14;
def SDPeriod = 3;
def SpriceH = high;
def SpriceL = low;
def SpriceC = close;
def SaverageType = AverageType.SIMPLE;

def SlowK = reference StochasticFull(Sover_bought, Sover_sold, SKPeriod, SDPeriod, SpriceH, SpriceL, SpriceC, 3, if (SaverageType == 1) then AverageType.SIMPLE else AverageType.EXPONENTIAL).FullK;
def SlowD = reference StochasticFull(Sover_bought, Sover_sold, SKPeriod, SDPeriod, SpriceH, SpriceL, SpriceC, 3, if (SaverageType == 1) then AverageType.SIMPLE else AverageType.EXPONENTIAL).FullD;

#-----------------------------------------------------MACD--------------------------------
def MfastLength = 12;
def MslowLength = 26;
def MACDLength = 9;
def MaverageType = AverageType.EXPONENTIAL;
def MshowBreakoutSignals = no;

def Value = MovingAverage(MaverageType, close, MfastLength) - MovingAverage(MaverageType, close, MslowLength);
def Avg = MovingAverage(MaverageType, Value, MACDLength);

def Diff = Value - Avg;
def ZeroLine = 0;
def hod = if today and hod[1] == 0 then Value else if ORActive and today and Value > hod[1] then Value else hod[1];
def lod = if today and lod[1] == 0 then Value else if ORActive and today and Value < lod[1] then Value else lod[1];

def prctcalc = (filterfrom_1_20/ 100);
def separation = (hod - lod) * prctcalc;
#addlabel(yes,separation,color.green);
#addlabel(yes,prctcalc);
def conditionlong1 = SlowK crosses above SlowD and SlowK < Sover_sold and SlowD < Sover_sold;
def conditionlong2 = Value < 0 and Avg < 0 and Value - Avg > separation or Value < 0 and Avg < 0 and Value - Avg < -separation;

def conditionshort1 = SlowK crosses below SlowD and SlowK > Sover_bought and SlowD > Sover_bought;
def conditionshort2 = Value > 0 and Avg > 0 and Value - Avg > separation or Value > 0 and Avg > 0 and Value - Avg < -separation;
def confirmation = Value crosses below Avg;
plot long = if SecondsFromTime(ORBegin) > 0 and SecondsFromTime(OREnd) < 0 and conditionlong1 and conditionlong2 then low else Double.NaN;
long.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
long.SetDefaultColor(Color.GREEN);
plot short = if SecondsFromTime(ORBegin) > 0 and SecondsFromTime(OREnd) < 0 and conditionshort1 and conditionshort2 then high else Double.NaN;
short.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);
short.SetDefaultColor(Color.RED);


Also unsure how this is better than just a stochastic, possibly better signals can be received from just the stochastic.
For anyone confused about the scans. These simple codes should work. Copy into the scanner and replace the xxxxx with the name of the study in your ToS.

xxxxxxxxx()."long" is true within 2 bars
xxxxxxxxx()."short" is true within 2 bars
 
Good luck....I'll try to get up.....I'm on the west coast....market starts here at 6:30AM.....hahahahahahah Gets rough sometimes
Tried it on Friday at 9:34am & XPEV showed up at around 44.00/sh. Given EV sector is having another resurgence lately. It was over vwap & it did run steadly for the whole day, not just pops or/& drops. Almost touched 45.60s iirc. Anyway, I had just used price range .25-50 to run this along w/ james' scan (5min ext timframe).

Let us know how you played it & what tickers showed up for your trade strategy.
 
Got it.....thnx for the instructions......I am extremely happy man..... shoot me that email with your info....
not sure how you are using this indicator...I applied your first script(1st post) on amazon chart...(6/17 5min chart), i see 7 down red arrows but price moved from 3403 to 3496+... I dont even see Green up arrow

Thanks
 
I know how to do that,but how to I import it to the scanner please! So sorry if I ask a lot of question,I’m a old lady and still learning all this :) thank you for your kindness.
Finally, I was able to add. So click on the link provided in page 1 it will take you to Thinkorswim copy the link from there and import.
 
Oh yes I didnt think of that. Not sure why i didnt find that as an option when i was messing with it last night.
Thank you will be testing it now.
I was looking for the exact same scan and found this great tutorial on youtube

I ended up with this - It combines stochastic slow + macd

The scan is designed for a Weekly timeframe

Enjoy

Ruby:
# Courtesy of Hahn-Tech, LLC
# https://www.youtube.com/watch?v=VOJwH9U0aL0

# macd scan
input fastLength = 12;
input slowLength = 26;
input MACDLength = 9;
input averageTypeMACD = AverageType.EXPONENTIAL;
input showBreakoutSignals = no;

def Value = MovingAverage(averageTypeMACD, close, fastLength) - MovingAverage(averageTypeMACD, close, slowLength);
def Avg = MovingAverage(averageTypeMACD, Value, MACDLength);
def Diff = Value - Avg;

# stochastic slow scan
input over_bought = 80;
input over_sold = 20;
input KPeriod = 14;
input DPeriod = 7;
input priceH = high;
input priceL = low;
input priceC = close;
input averageTypeStoch = AverageType.SIMPLE;
input showBreakoutSignalsStoch = {default "No", "On SlowK", "On SlowD", "On SlowK & SlowD"};

def SlowK = reference StochasticFull(over_bought,over_sold,KPeriod,DPeriod,priceH,priceL,priceC,3,averageTypeStoch).FullK;
def SlowD = reference StochasticFull(over_bought,over_sold,KPeriod,DPeriod,priceH,priceL,priceC,3,averageTypeStoch).FullD;;

# Establish crossover of slowd (SMA) above slowk (high/low prices period)
plot Scan = (SlowK[1] < SlowD[1]) and (SlowK > SlowD)
# Only look at slowk value under oversold value of 20
and (lowest(SlowK[1], 3) < 20)
# Macd should be rising
and (Diff[1] > Diff[2]);
 
Hello,
Has anyone seen a code for showing the full stochastic color coded by the direction of its lines, when goes up one color or down a different color?\
Thanks in advance.
Karlang
 
You can color any plot using the AssignValueColor() function.

Ruby:
FullK.AssignValueColor(
  if FullK > FullK[1] then Color.GREEN
  else if FullK < FullK[1] then Color.RED
  else Color.GRAY
);
 

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

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
287 Online
Create Post

Similar threads

Similar threads

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