Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

How to write Stochastics of the current bar break the highest stochastics of previous X bar Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Kevin_Wang28
Posted : Monday, August 14, 2017 3:48:17 PM
Registered User
Joined: 9/23/2016
Posts: 3

Hi,Bruce, i would like your help to write a PCF that scan the following criteria:

1)the lowest Stochastics of previous X bars( let's say 5 from 1 bar ago) is below 20;

2)the highest Stochastics of previous X bars(let's say 5 from 1 bar ago) is higher than 20.

3) the Stochastics of current bar is breaking the high of previous X bar(let's say 5 from 1 bar ago).

how would you write it?

i appreciate your help.

 

thank you

Kevin

StockGuy
Posted : Monday, August 14, 2017 4:05:55 PM

Administration

Joined: 9/30/2004
Posts: 9,187

Assuming a stochastic period of 10 with %K set to 5...

MIN(STOC(10,5,1),5) < 20 AND MAX(STOC(10,5,1),5) > 20 AND STOC(10,5) > MAX(STOC(10,5,1),5)

Kevin_Wang28
Posted : Thursday, August 17, 2017 8:48:43 PM
Registered User
Joined: 9/23/2016
Posts: 3

thank you very much!

Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.