Stochastic 1 and 4 hour scan


Category:
0
0

Is it possible to build a dynamic scan that will constantly update that will show me when the 1Hr and 4Hr stochastic starts to either point up or down at the same time as soon as it happens?  So if the 4Hr is up but the 1Hr isn’t yet it won’t show in the scan, but once the 1Hr does then it will show me.  I have the settings and the code for the stochastic I want to use, k period of 5 d period of 3 and slowing period of 2, high low close (HLC) smoothing type 1 and length 50.  I also need the scan to be a dynamic watchlist.  Can this be done?

Thanks,

C

Marked as spam
Posted by (Questions: 3, Answers: 4)
Asked on August 15, 2017 8:23 am
279 views
0
Private answer

This solution will consist mainly of screenshots. (the first screenshot is where you can apply your own custom settings). There is no need to write code as it can be easily generated by using the condition wizard. I will mention that your specification does allow for more than one interpretation. In this solution, we are picking up all stocks where the Stochastic FullK is rising over it’s previous value, for both the 1 hour and 4 hour time frames.

Another way to interpret your specification would be to check if the previous direction of the Stochastic FullK was falling. So that you would be picking up the change in the direction. But I would expect the oversold line would be part of that equation and since it was not mentioned I did not want to get too far down that path. But this can also be accomplished using the condition wizard.

You can see from the large screenshot the scan has been saved. Then we simply load that saved scan into a watchlist. (all saved scans become available as dynamic watchlists. no pixy dust is required)

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4087)
Answered on August 15, 2017 9:57 am
0
Private answer

If I am creating this same scan to look for these conditions to the down side do I need to use an offset of negative 1 in the choices on the drop down menu to the right in the condition wizard?

Marked as spam
Posted by (Questions: 3, Answers: 4)
Answered on August 16, 2017 9:19 am
0

Great question but no. The offset is still positive 1 because that is the parameter that says to check the previous bar. One bar to the left. A negative value would mean one bar to the right, into the future. We don’t want that in this case.

( at August 16, 2017 11:58 am)
0
Private answer

Is there any way I can modify this scan to tell me if the 1 and 4 hour stochastic are above 80 or below 20?  If not how could I go about getting that done?

Marked as spam
Posted by (Questions: 3, Answers: 4)
Answered on August 18, 2017 6:18 pm
0

You would use the condition wizard to add a new condition to the initial one. The second condition would be something like:
Stochastic().”FullK” is greater than 80
or
Stochastic().”FullK” is less than 20

( at August 18, 2017 8:51 pm)
0

Thank you very much, this was a great help.

( at August 18, 2017 8:58 pm)
0

I tried to add the greater than 80 but can’t find where to put the input for 80. Could you possibly post a screenshot of were I would input that?

( at August 18, 2017 10:31 pm)
0
Private answer

Here is the screenshot for FullK greater than 80 in the condition wizard.

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4087)
Answered on August 18, 2017 10:52 pm