Registered User Joined: 8/1/2014 Posts: 8
|
Hi Bruce, this is a followup to http://forums.worden.com/default.aspx?g=posts&t=63052 . Having now done some PCFs that put a dot on a high/low of a bar, I now want to find a way of alerting on those conditions, so that, looking backwards in time from the current bar, if the most recent dot is at a bar high, and a new dot appears at a low, I get an alert. And if the most recent dot is at a bar low and a new dot appears at a high, I get an alert. The conditions that create the high and low dots are seoarate PCF s (although it may be that some of the logic could be combined into one PCF), and not every bar has a dot at all. Can you advise the alternative ways I can go about this ? Many thanks.
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If you just wanted to get an alert when there is a dot, you could cilck on the Custom PCF Indicator and select Create Scan Condition to create a condition for the Custom PCF Indicator being greater than 0.
Things are not this simple if you need to check for the previous dot being of the opposite kind. You would probably need to need to use the techniques in the Days Since Last Peak (or other day-counting needs) topic to count how many bars it has been since both conditions were true to make sure the most recent dot was of the opposite type.
This would require knowing the exact details of the formulas involved. You would also need to set a maximum number of bars back to use for checking for the most recent dot. The resulting formula may or may not end up being fast and short enough to be practical.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|