possible to make an alert/scan for stocks using Stochastic fast…


0
0

Hi there, I was wondering if it was possible to make an alert/scan of stock whose Stochastic Fast line goes from over 80 to below 20 (or vice versa) in one tick using the hourly time frame (ideally, but works on daily and or 30 min as well)… with my setting at 80,20,14,3…?

Attachments:
Marked as spam
Posted by (Questions: 2, Answers: 6)
Asked on January 19, 2018 6:20 pm
521 views
0

Let’s clear up some details. Your request is for the “Stochastic Fast Line”. However your screenshot shows the indicator called StochasticFull. Those two lines on the graph are named “FullK” and “FullD”. The FullK line moves faster. So does that make sense? You want a scan to pick up when the FullK has moved from overbought to oversold in a single candle?

Also, the settings you list in your question do not match the settings used in the screenshot. This leaves a bit more doubt as to which version of the Stochastic you want to use. In thinkorswim, there are three. StochasticFast, StochasticFull and StochasticSlow. When you look more closely you will find the StochasticFast and StochasticSlow are both derived from the StochasticFull. Only the input settings are different.

Once we get these details cleared up we can proceed with a solution.

( at January 20, 2018 9:49 am)
0
Private answer

hmm… sorry about that… didn’t notice i sent the wrong indicator… I’ve attached another photo with the “fast” indicator, this should make the chart a little more clear! And you are correct, I’d like to know when the fastK moves from overbought to oversold (or oversold to overbought) from one candle to the next… hope that makes more sense? Thanks for getting back to me so quickly!

Attachments:
Marked as spam
Posted by (Questions: 2, Answers: 6)
Answered on January 20, 2018 11:20 am
0
Private answer

Ok, thanks for clarifying. Can you explain why everyone insists on providong screenshots with such a narrow scope? It’s like peering through a pinhole. Your last screenshot contains even less data then your first. You can’t even see the name of the indicator or the settings. Why does everyone do this? Virtually every post in the Q&A forum I have to ask for more detail in the screenshots.

There, I’m done ranting.

Here is your code. You will need to adjust the inputs to the settings you want (80,20,14,3):

input over_bought = 80;
input over_sold = 20;
input KPeriod = 10;
input DPeriod = 3;
input priceH = high;
input priceL = low;
input priceC = close;
input averageType = AverageType.SIMPLE;
input showBreakoutSignals = {default "No", "On FastK", "On FastD", "On FastK & FastD"};
def FastK = reference StochasticFull(over_bought, over_sold, KPeriod, DPeriod, priceH, priceL, priceC, 1, averageType).FullK;
plot scan = (FastK[1] < over_sold and FastK > over_bought) or (FastK[1] > over_bought and FastK < over_sold);

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on January 20, 2018 2:32 pm
0
Private answer

Oh wow, you make it look so easy!!! And sorry for the narrow screenshot – I honestly thought it would help specify what I was trying to ask… Don’t worry about the rant, everybody here greatly appreciates all that you do! I’ve learned so much from your videos and additional info you provide! Thank you so much for taking the time to put this together ?

Marked as spam
Posted by (Questions: 2, Answers: 6)
Answered on January 20, 2018 7:00 pm
0

You are very welcome. This is what I love to do. I want to provide the most amount of knowledge for every post. If folks would provide full chart screenshots it would enable me to provide them the maximum amount of teaching. Didn’t mean to pick on you specifically. But as other visitors run across this post, (and others in which I express this deficiency), I hope to persuade them to provide the most amount of detail possible. Just the full view of the entire chart is all I want them to provide. They have no idea how much more detail is provided in that last little bit of screen real estate.

Thanks for contributing to this forum by taking the time to post such an interesting request.

( at January 20, 2018 7:24 pm)