Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

reverse this please Bruce Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
OzAsh
Posted : Tuesday, February 2, 2010 6:26:30 AM
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)))
Bruce_L
Posted : Tuesday, February 2, 2010 8:53:34 AM


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
OzAsh
Posted : Tuesday, February 2, 2010 3:57:17 PM
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
Bruce_L
Posted : Tuesday, February 2, 2010 4:10:01 PM


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