TC2000.com• Download software • Tutorial videos • Subscription & data-feed pricing • Class schedule
TC2000Brokerage.com• New account application • Trading resources • Margin rates • Stock & option commissions
Worden Discussion Forum
Customer Training & Support
Ask a Trainer - TC2000 version 12/18
How to write Stochastics of the current bar break the highest stochastics of previous X bar
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.
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)
thank you very much!