Candlestick pattern at 52 week low
Author: bullethead67
Creation Date: 6/9/2015 9:16 AM
profile picture

bullethead67

#1
I have been looking into candlestick patterns but am having a little trouble. I am trying to combine a bearish pattern (three crows) but only apply it when the stocks price is within the lower third of its 52 week low.

How do i accomplish this in the drag and drop interface?
profile picture

Eugene

#2
The Rules Wizard has its limitations and it seems that expressing this idea may be one of them. Therefore this can be accomplished in Strategy code. How do you define if a stock is at its lower third of the 52 week low, precisely? Is this the distance between the current close and the yearly low divided into thirds, like the reddish 'cloud' in this example?

CODE:
Please log in to see this code.
profile picture

bullethead67

#3
Lower third example

52 Week High= 100$
52 Week Low= 1$

if the price is between 1$ and 33$ it is in the lower third
profile picture

Eugene

#4
I got it right so there you have it.

To combine my code above with the candlestick pattern of your choice, check out the WealthScript Programming Guide chapter > WealthLab.Rules Classes > Candlesticks.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).