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

PCF/Scan for Break of High or Lows ? Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Gano
Posted : Monday, November 24, 2014 7:00:54 AM
Registered User
Joined: 8/23/2012
Posts: 59

Hi, can you please help me create a PCF/Scan that:

1) determines the Highest High (HH) and Lowest Low (LL) for a given time period (ex. from 2014-11-24 00:00:00 till  2014-11-24 08:00:00)

 

2) alerts when there's a Breakout above the HH (LONG) or below the LL (SHORT)

Note:

-For LONG: the breakout  exists if the previous bar opened below HH and closed above HH

-For SHORT: the breakout  exists if the previous bar opened above LL and closed below LL

 

Thanks in advance.

Bruce_L
Posted : Monday, November 24, 2014 12:27:55 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

There really isn't an automated way to do this in TC2000 because there isn't a way to specify or know the time of day in the Personal Criteria Formula Language.

So you would need to specify both the period and number of bars ago in bars to identify the highest high and lowest low during a given period. Every time a new bars starts forming, the bars ago would need to change.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Gano
Posted : Monday, November 24, 2014 2:06:41 PM
Registered User
Joined: 8/23/2012
Posts: 59

Ok, so I would need to know which shift the time period corresponds to, and run the PCF to get the HH and LL. The issue is that since the bar shift changes, the scan would have to be run at an exact time.

Thanks.

Bruce_L
Posted : Monday, November 24, 2014 2:21:32 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You seem to understand both the process and the major issue.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
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.