Registered User Joined: 2/11/2013 Posts: 78
|
Bruce,
I'm trying to replicate an indicator for testing. It's being marketed under the name "X Pattern" and the generic formula is this:
Green line = (indicator Periods - Periods since highest high within Indicator Periods) / Indicator Periods) * 100
Red Line = (indicator Periods - Periods since lowest low within Indicator Periods) / Indicator Periods) * 100
I found the day count thread from way back and want to use that as a base. However, the formula is so complicated I'm not sure I did the conversion correctly. So can you help me nail down a version of the generic formulas above based on "20 indicator periods".
Here is what I have now:
Green Line:
( (20 - ( ABS(H < MAXH20) * (ABS(H1 = MAXH20) + ABS(H1 < MAXH20) * (ABS(H2 = MAXH20) * 2 + ABS(H2 < MAXH20) * (ABS(H3 = MAXH20) * 3 + ABS(H3 < MAXH20) * (ABS(H4 = MAXH20) * 4 + ABS(H4 < MAXH20) * (ABS(H5 = MAXH20) * 5 + ABS(H5 < MAXH20) * (ABS(H6 = MAXH20) * 6 + ABS(H6 < MAXH20) * (ABS(H7 = MAXH20) * 7 + ABS(H7 < MAXH20) * (ABS(H8 = MAXH20) * 8 + ABS(H8 < MAXH20) * (ABS(H9 = MAXH20) * 9 + ABS(H9 < MAXH20) * (ABS(H10 = MAXH20) * 10 + ABS(H10 < MAXH20) * (ABS(H11 = MAXH20) * 11 + ABS(H11 < MAXH20) * (ABS(H12 = MAXH20) * 12 + ABS(H12 < MAXH20) * (ABS(H13 = MAXH20) * 13 + ABS(H13 < MAXH20) * (ABS(H14 = MAXH20) * 14 + ABS(H14 < MAXH20) * (ABS(H15 = MAXH20) * 15 + ABS(H15 < MAXH20) * (ABS(H16 = MAXH20) * 16 + ABS(H16 < MAXH20) * (ABS(H17 = MAXH20) * 17 + ABS(H17 < MAXH20) * (ABS(H18 = MAXH20) * 18 + ABS(H18 < MAXH20) * (ABS(H19 = MAXH20) * 19))))))))))))))))))) ) ) / 20) * 100
Red Line:
( (20 - ( ABS(L > MINL20) * (ABS(L1 = MINL20) + ABS(L1 > MINL20) * (ABS(L2 = MINL20) * 2 + ABS(L2 > MINL20) * (ABS(L3 = MINL20) * 3 + ABS(L3 > MINL20) * (ABS(L4 = MINL20) * 4 + ABS(L4 > MINL20) * (ABS(L5 = MINL20) * 5 + ABS(L5 > MINL20) * (ABS(L6 = MINL20) * 6 + ABS(L6 > MINL20) * (ABS(L7 = MINL20) * 7 + ABS(L7 > MINL20) * (ABS(L8 = MINL20) * 8 + ABS(L8 > MINL20) * (ABS(L9 = MINL20) * 9 + ABS(L9 > MINL20) * (ABS(L10 = MINL20) * 10 + ABS(L10 > MINL20) * (ABS(L11 = MINL20) * 11 + ABS(L11 > MINL20) * (ABS(L12 = MINL20) * 12 + ABS(L12 > MINL20) * (ABS(L13 = MINL20) * 13 + ABS(L13 > MINL20) * (ABS(L14 = MINL20) * 14 + ABS(L14 > MINL20) * (ABS(L15 = MINL20) * 15 + ABS(L15 > MINL20) * (ABS(L16 = MINL20) * 16 + ABS(L16 > MINL20) * (ABS(L17 = MINL20) * 17 + ABS(L17 > MINL20) * (ABS(L18 = MINL20) * 18 + ABS(L18 > MINL20) * (ABS(L19 = MINL20) * 19))))))))))))))))))) ) ) / 20) * 100
Thanks a ton in advance (I know this one is complicated.
|
Administration
Joined: 9/30/2004 Posts: 9,187
|
There are some minor variances, but the plots look the same as Aroon set to 20 periods.
|
Registered User Joined: 1/28/2005 Posts: 6,049
|
QUOTE (esc952)
Bruce,
I'm trying to replicate an indicator for testing. It's being marketed under the name "X Pattern"
Its the Aroon Indicator.
In the video I saw they used a 100 period length.
Thanks
|
Registered User Joined: 2/11/2013 Posts: 78
|
Thanks Guys
|