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.
|
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
|
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.
|
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
|