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

PCF to Stockfinder 5 Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
cra768
Posted : Sunday, March 27, 2011 10:52:25 PM
Registered User
Joined: 6/10/2010
Posts: 20
Need help converting these to SF5. These are Steven Bigalows fomulas for, his class. I have searched and they are not listed in this forum.

Thanks

Bear Engulfing pattern
((C1>O1)AND(O>C)AND(O>=C1)AND(O1>=C)AND((O-C)>(C1-O1)))

Shooting Star
(((H-L)>4* (O-C))and ((H-C)/(.001+H-L)>=0.75)and ((H-O)/(.001+H-L)>=0.75))

Hanging man

(((H-L).4*(O-C))and((C-L)/(.001+H-L)>0.75and((0-l)/(.001+H-L)>0.75))




Bruce_L
Posted : Monday, March 28, 2011 11:14:01 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
It should probably be noted that StockFinder already has many Candlestick Patterns available under Library Conditions if you select Add Indicator/Condition to Chart.

QUOTE (cra768)
Bear Engulfing pattern
((C1>O1)AND(O>C)AND(O>=C1)AND(O1>=C)AND((O-C)>(C1-O1)))

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Bear Engulfing Pattern
'|******************************************************************
If Price.Last(1) > Price.Open(1) AndAlso _
    Price.Open > Price.Last AndAlso _
    Price.Open >= Price.Last(1) AndAlso _
    Price.Open(1) >= Price.Last AndAlso _
    Price.Open - Price.Last > _
    Price.Last(1) - Price.Open(1) Then Pass

QUOTE (cra768)
Shooting Star
(((H-L)>4* (O-C))and ((H-C)/(.001+H-L)>=0.75)and ((H-O)/(.001+H-L)>=0.75))

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Shooting Star
'|******************************************************************
If Price.High - Price.Low > 4 * (Price.Open - Price.Last) AndAlso _
    (Price.High - Price.Last) / (.001 + Price.High - Price.Low) >= .75 AndAlso _
    (Price.High - Price.Open) / (.001 + Price.High - Price.Low) >= .75 Then Pass

QUOTE (cra768)
Hanging man

(((H-L).4*(O-C))and((C-L)/(.001+H-L)>0.75and((0-l)/(.001+H-L)>0.75))

My guess is that the . is actually a > since they are the same key on the keyboard.

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Hanging Man
'|******************************************************************
If Price.High - Price.Low > 4 * (Price.Open - Price.Last) AndAlso _
    (Price.Last - Price.Low) / (.001 + Price.High - Price.Low) > .75 AndAlso _
    (Price.Open - Price.Low) / (.001 + Price.High - Price.Low) > .75 Then Pass

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
cra768
Posted : Monday, March 28, 2011 11:28:50 AM
Registered User
Joined: 6/10/2010
Posts: 20
Again Thanks Bruce and yes the . was a >
cra768
Posted : Friday, April 1, 2011 12:10:41 PM
Registered User
Joined: 6/10/2010
Posts: 20
Thanks Bruce again. I have a couple of others, if you dont mind, and a question regarding an indicator. I use the cci with 3 moving averages.The spacing between the high of the chart and low of the chart is not consistent for the 5ma or the 20 or 50 and will move off the scale. How do i control this? I have read everything and tried playing with it with no luck.

Bullish Engulfing Patten

((01>C1)and(C>O)and(C>=O1)and(c1>=O)and((C-O)>(O1-C1)))

Harami

((O1>C1)and(C>O)and(c<=O1)and(C1<=O)and((C-O)<(O1-C1)))

Inverted Hammer

(((H-L)>3*(O-C))and((H-C)/(.001+H-L)>0.6)and((H-O)/(.001+H_L)>0.6))

Piercing

((C1<O1)and(((O1+C1)/2)<C)and(O<C)and(O<C1)and(C<O1)and((C-O)/(.001+(H-L))>0.6))

Bruce_L
Posted : Friday, April 1, 2011 12:26:15 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
QUOTE (cra768)
I use the cci with 3 moving averages.The spacing between the high of the chart and low of the chart is not consistent for the 5ma or the 20 or 50 and will move off the scale. How do i control this? I have read everything and tried playing with it with no luck.

I cannot figure out how this would happen except in instances where such scaling was explicitly selected. If you add a Moving Average to CCI, it should Plot on the same Scale as CCI. Based on the MA periods given, the extremes of the Moving Averages would also probably be well within the extremes of the CCI on which they were based unless you were zoomed in very tightly.

In any case, try right-clicking on each of the Moving Averages and selecting Scaling | Scale With | Commodity Channel Index. Then right-click on the CCI and select Scaling | Edit to make sure the CCI and all of its Moving Averages are checked under Items To Include In Scale.

QUOTE (cra768)
Bullish Engulfing Patten

((01>C1)and(C>O)and(C>=O1)and(c1>=O)and((C-O)>(O1-C1)))

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Bullish Engulfing Pattern
'|******************************************************************
If Price.Open(1) > Price.Last(1) AndAlso _
    Price.Last > Price.Open AndAlso _
    Price.Last >= Price.Open(1) AndAlso _
    Price.Last(1) >= Price.Open AndAlso _
    Price.Last - Price.Open > _
    Price.Open(1) - Price.Last(1) Then Pass
    
QUOTE (cra768)
Harami

((O1>C1)and(C>O)and(c<=O1)and(C1<=O)and((C-O)<(O1-C1)))

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Harami
'|******************************************************************
If Price.Open(1) > Price.Last(1) AndAlso _
    Price.Last > Price.Open AndAlso _
    Price.Last <= Price.Open(1) AndAlso _
    Price.Last(1) <= Price.Open AndAlso _
    Price.Last - Price.Open < _
    Price.Open(1) - Price.Last(1) Then Pass

QUOTE (cra768)
Inverted Hammer

(((H-L)>3*(O-C))and((H-C)/(.001+H-L)>0.6)and((H-O)/(.001+H_L)>0.6))
    
'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Inverted Hammer
'|******************************************************************
If Price.High - Price.Low > _
    3 * (Price.Open - Price.Last) AndAlso _
    (Price.High - Price.Last) / _
    (.001 + Price.High - Price.Low) > .6 AndAlso _
    (Price.High - Price.Open) / _
    (.001 + Price.High - Price.Low) > .6 Then Pass
    
QUOTE (cra768)
Piercing

((C1<O1)and(((O1+C1)/2)<C)and(O<C)and(O<C1)and(C<O1)and((C-O)/(.001+(H-L))>0.6))

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Piercing
'|******************************************************************
If Price.Last(1) < Price.Open(1) AndAlso _
    (Price.Open(1) + Price.Last(1)) / 2 < Price.Last AndAlso _
    Price.Open < Price.Last AndAlso _
    Price.Open < Price.Last(1) AndAlso _
    Price.Last < Price.Open(1) AndAlso _
    (Price.Last - Price.Open) / _
    (.001 + Price.High - Price.Low) > .6 Then Pass

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
cra768
Posted : Friday, April 1, 2011 6:42:15 PM
Registered User
Joined: 6/10/2010
Posts: 20
OK will try that. Thanks
Bruce_L
Posted : Monday, April 4, 2011 8:48:29 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

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