Jim Dean
 Sage
       Posts: 3433
Joined: 3/13/2006
Location: L'ville, GA
User Profile |
Here is the bull reversal - see if you can modify it for the bear reversal …
I’ve used arbitrary ATR multiples to handle your descriptions that say “near”, “about”, “small” etc … season to taste)
I did NOT include logic for your “not much overlap” rule since it was way too vague. How many prior bars? What do you mean by overlap? How much is not much, especially in light of your #1 requirement to have *some* overlap.
Good luck!
C > O and C > C[1] and O < C[1] * ATR(14)/10 and math.min(O,C) - L >= (H - L)/3 and math.min(O,C) - L <= (H - L)/2 and H - math.max(O,C) < ATR(14)/10
|