Kevin_in_GA 4,599 posts msg #123288 - Ignore Kevin_in_GA |
3/21/2015 8:47:59 AM
This might help:
http://www.stockfetcher.com/forums/Filter-Exchange/Tails-ODRs-ROCdiv-OH-MY/80806
The credit for this code goes to Alf. This is a set of code that finds either topping or bottoming tails.
/* Tails */
/* Bottoming Tails */
/* Consecutive Down Days */
set{daysClose_Down, days(Close above Close 1 day ago,100)}
set{RangeA, High - Low}
set{MinCloOp, min(Close,Open)}
set{TailRngA, MinCloOp - Low}
set{TailRatioA, TailRngA / RangeA}
set{Tail_A, count(daysClose_Down 1 day ago above 1, 1)}
set{Tail_B, count(Low is below MinCloOp, 1)}
set{Tail_C, count(TailRatioA is above .50, 1)}
set{Tail_D, count(Close below EMA(10) , 1)}
set{Tail_1, Tail_A * Tail_B}
set{Tail_2, Tail_1 * Tail_C}
set{TailBot, Tail_2 * Tail_D}
/* ---------- */
/* Topping Tails */
/* Consecutive Up Days */
set{daysClose_Up, days(Close below Close 1 day ago,100)}
set{RangeAA, High - Low}
set{MaxCloOp, max(Close,Open)}
set{TailRngAA, High - MaxCloOp}
set{TailRatioAA, TailRngAA / RangeAA}
set{Tail_AA, count(daysClose_Up 1 day ago above 1, 1)}
set{Tail_BB, count(High is above MaxCloOp, 1)}
set{Tail_CC, count(TailRatioAA is above .50, 1)}
set{Tail_DD, count(Close above EMA(10), 1)}
set{Tail_11, Tail_AA * Tail_BB}
set{Tail_22, Tail_11 * Tail_CC}
set{TailTop, Tail_22 * Tail_DD}
/* ---------- */
/* Tails Top OR Bottom */
set{Tail_topORbot, TailBot + TailTop}
/* ---------- */
|