Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 4/5/2008 Posts: 173
|
Bruce,
came accross this pcf and it looked interesting.
This has a long bias. Can you reverse it for me please?
Ash
(((H - L) > 4 * (O - C)) AND ((C - L) / (.0001 + H - L) >= 0.75) AND ((O - L) / (.0001 + H - L) >= .075)))
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following:
H - L > 4 * (C - O) AND H - C >= .75 * (H - L) AND H - O >= .075 * (H - L)
You may wish to review the following:
How to create a Personal Criteria Forumula (PCF)
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 4/5/2008 Posts: 173
|
Great stuff Bruce.
NOW could you make em both (long and short ones) in realcode for SF5?
Thanks
Ash
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The first could be created as the following RealCode Rule or Condition:
'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 4.9 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Long Bias
'|******************************************************************
If Price.TradeRange > 4 * (Price.Open - Price.Last) AndAlso _
Price.Last - Price.Low >= .75 * Price.TradeRange AndAlso _
Price.Open - Price.Low >= .075 * Price.TradeRange Then
Pass
End If
While the second could be created as the following RealCode Rule or Condition:
'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 4.9 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Short Bias
'|******************************************************************
If Price.TradeRange > 4 * (Price.Last - Price.Open) AndAlso _
Price.High - Price.Last >= .75 * Price.TradeRange AndAlso _
Price.High - Price.Open >= .075 * Price.TradeRange Then
Pass
End If
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |