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 |

Harami cross Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
pegasis
Posted : Saturday, March 5, 2016 7:39:33 AM
Registered User
Joined: 6/17/2005
Posts: 63

How you do code a scan for a Harami cross  

followed the next day be a gap up/ gap down?

 

Thanks

Bruce_L
Posted : Friday, March 11, 2016 2:37:07 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

The Condition Formula given in the Boolean PCFs for Candlestick Patterns topic for a Harami Cross is as follows.

ABS(C1 - O1) > .5 * (H1 - L1) AND C1 < O1 AND H < O1 AND L > C1 AND (C + O) / 2 - L > .4 * (H - L) AND (C + O) / 2 - L < .6 * (H - L) AND ABS(C - O) < .2 * (H - L)

You would need to convert this to a version from 1 bar ago.

ABS(C2 - O2) > .5 * (H2 - L2) AND C2 < O2 AND H1 < O2 AND L1 > C2 AND (C1 + O1) / 2 - L1 > .4 * (H1 - L1) AND (C1 + O1) / 2 - L1 < .6 * (H1 - L1) AND ABS(C1 - O1) < .2 * (H1 - L1)

And then add code for the current bar being a gap or or gap down (the following assumes a gap means no overlap at all between the two bars.

(L > H1 OR H < L1) AND ABS(C2 - O2) > .5 * (H2 - L2) AND C2 < O2 AND H1 < O2 AND L1 > C2 AND (C1 + O1) / 2 - L1 > .4 * (H1 - L1) AND (C1 + O1) / 2 - L1 < .6 * (H1 - L1) AND ABS(C1 - O1) < .2 * (H1 - L1)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
pegasis
Posted : Saturday, March 12, 2016 1:57:20 PM
Registered User
Joined: 6/17/2005
Posts: 63

Thanks

Bruce_L
Posted : Monday, March 14, 2016 3:17:21 PM


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.