Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
One aspect of determining if the cross is higher or lower is defining a value for the cross. There are two lines involved. I decided to use the value of the Raw MACD line after the cross. I've also limited the lookback to 30 prior cross opportunities (the pattern can be extended):
Warning: Long Personal Criteria Formulas can dramatically increase the time it takes to update your PCFs.
Exponential MACD 12,26,9 xUp and xUp > prior xUp:
XAVGC12 - XAVGC26 > XAVG(XAVGC12,9) - XAVG(XAVGC26,9) AND XAVGC12.1 - XAVGC26.1 <= XAVG(XAVGC12.1,9) - XAVG(XAVGC26.1,9) AND XAVGC12 - XAVGC26 > ABS(XAVGC12.2 - XAVGC26.2 > XAVG(XAVGC12.2,9) - XAVG(XAVGC26.2,9) AND XAVGC12.3 - XAVGC26.3 <= XAVG(XAVGC12.3,9) - XAVG(XAVGC26.3,9)) * (XAVGC12.2 - XAVGC26.2) + ABS(XAVGC12.2 - XAVGC26.2 <= XAVG(XAVGC12.2,9) - XAVG(XAVGC26.2,9) OR XAVGC12.3 - XAVGC26.3 > XAVG(XAVGC12.3,9) - XAVG(XAVGC26.3,9)) * (ABS(XAVGC12.3 - XAVGC26.3 > XAVG(XAVGC12.3,9) - XAVG(XAVGC26.3,9) AND XAVGC12.4 - XAVGC26.4 <= XAVG(XAVGC12.4,9) - XAVG(XAVGC26.4,9)) * (XAVGC12.3 - XAVGC26.3) + ABS(XAVGC12.3 - XAVGC26.3 <= XAVG(XAVGC12.3,9) - XAVG(XAVGC26.3,9) OR XAVGC12.4 - XAVGC26.4 > XAVG(XAVGC12.4,9) - XAVG(XAVGC26.4,9)) * (ABS(XAVGC12.4 - XAVGC26.4 > XAVG(XAVGC12.4,9) - XAVG(XAVGC26.4,9) AND XAVGC12.5 - XAVGC26.5 <= XAVG(XAVGC12.5,9) - XAVG(XAVGC26.5,9)) * (XAVGC12.4 - XAVGC26.4) + ABS(XAVGC12.4 - XAVGC26.4 <= XAVG(XAVGC12.4,9) - XAVG(XAVGC26.4,9) OR XAVGC12.5 - XAVGC26.5 > XAVG(XAVGC12.5,9) - XAVG(XAVGC26.5,9)) * (ABS(XAVGC12.5 - XAVGC26.5 > XAVG(XAVGC12.5,9) - XAVG(XAVGC26.5,9) AND XAVGC12.6 - XAVGC26.6 <= XAVG(XAVGC12.6,9) - XAVG(XAVGC26.6,9)) * (XAVGC12.5 - XAVGC26.5) + ABS(XAVGC12.5 - XAVGC26.5 <= XAVG(XAVGC12.5,9) - XAVG(XAVGC26.5,9) OR XAVGC12.6 - XAVGC26.6 > XAVG(XAVGC12.6,9) - XAVG(XAVGC26.6,9)) * (ABS(XAVGC12.6 - XAVGC26.6 > XAVG(XAVGC12.6,9) - XAVG(XAVGC26.6,9) AND XAVGC12.7 - XAVGC26.7 <= XAVG(XAVGC12.7,9) - XAVG(XAVGC26.7,9)) * (XAVGC12.6 - XAVGC26.6) + ABS(XAVGC12.6 - XAVGC26.6 <= XAVG(XAVGC12.6,9) - XAVG(XAVGC26.6,9) OR XAVGC12.7 - XAVGC26.7 > XAVG(XAVGC12.7,9) - XAVG(XAVGC26.7,9)) * (ABS(XAVGC12.7 - XAVGC26.7 > XAVG(XAVGC12.7,9) - XAVG(XAVGC26.7,9) AND XAVGC12.8 - XAVGC26.8 <= XAVG(XAVGC12.8,9) - XAVG(XAVGC26.8,9)) * (XAVGC12.7 - XAVGC26.7) + ABS(XAVGC12.7 - XAVGC26.7 <= XAVG(XAVGC12.7,9) - XAVG(XAVGC26.7,9) OR XAVGC12.8 - XAVGC26.8 > XAVG(XAVGC12.8,9) - XAVG(XAVGC26.8,9)) * (ABS(XAVGC12.8 - XAVGC26.8 > XAVG(XAVGC12.8,9) - XAVG(XAVGC26.8,9) AND XAVGC12.9 - XAVGC26.9 <= XAVG(XAVGC12.9,9) - XAVG(XAVGC26.9,9)) * (XAVGC12.8 - XAVGC26.8) + ABS(XAVGC12.8 - XAVGC26.8 <= XAVG(XAVGC12.8,9) - XAVG(XAVGC26.8,9) OR XAVGC12.9 - XAVGC26.9 > XAVG(XAVGC12.9,9) - XAVG(XAVGC26.9,9)) * (ABS(XAVGC12.9 - XAVGC26.9 > XAVG(XAVGC12.9,9) - XAVG(XAVGC26.9,9) AND XAVGC12.10 - XAVGC26.10 <= XAVG(XAVGC12.10,9) - XAVG(XAVGC26.10,9)) * (XAVGC12.9 - XAVGC26.9) + ABS(XAVGC12.9 - XAVGC26.9 <= XAVG(XAVGC12.9,9) - XAVG(XAVGC26.9,9) OR XAVGC12.10 - XAVGC26.10 > XAVG(XAVGC12.10,9) - XAVG(XAVGC26.10,9)) * (ABS(XAVGC12.10 - XAVGC26.10 > XAVG(XAVGC12.10,9) - XAVG(XAVGC26.10,9) AND XAVGC12.11 - XAVGC26.11 <= XAVG(XAVGC12.11,9) - XAVG(XAVGC26.11,9)) * (XAVGC12.10 - XAVGC26.10) + ABS(XAVGC12.10 - XAVGC26.10 <= XAVG(XAVGC12.10,9) - XAVG(XAVGC26.10,9) OR XAVGC12.11 - XAVGC26.11 > XAVG(XAVGC12.11,9) - XAVG(XAVGC26.11,9)) * (ABS(XAVGC12.11 - XAVGC26.11 > XAVG(XAVGC12.11,9) - XAVG(XAVGC26.11,9) AND XAVGC12.12 - XAVGC26.12 <= XAVG(XAVGC12.12,9) - XAVG(XAVGC26.12,9)) * (XAVGC12.11 - XAVGC26.11) + ABS(XAVGC12.11 - XAVGC26.11 <= XAVG(XAVGC12.11,9) - XAVG(XAVGC26.11,9) OR XAVGC12.12 - XAVGC26.12 > XAVG(XAVGC12.12,9) - XAVG(XAVGC26.12,9)) * (ABS(XAVGC12.12 - XAVGC26.12 > XAVG(XAVGC12.12,9) - XAVG(XAVGC26.12,9) AND XAVGC12.13 - XAVGC26.13 <= XAVG(XAVGC12.13,9) - XAVG(XAVGC26.13,9)) * (XAVGC12.12 - XAVGC26.12) + ABS(XAVGC12.12 - XAVGC26.12 <= XAVG(XAVGC12.12,9) - XAVG(XAVGC26.12,9) OR XAVGC12.13 - XAVGC26.13 > XAVG(XAVGC12.13,9) - XAVG(XAVGC26.13,9)) * (ABS(XAVGC12.13 - XAVGC26.13 > XAVG(XAVGC12.13,9) - XAVG(XAVGC26.13,9) AND XAVGC12.14 - XAVGC26.14 <= XAVG(XAVGC12.14,9) - XAVG(XAVGC26.14,9)) * (XAVGC12.13 - XAVGC26.13) + ABS(XAVGC12.13 - XAVGC26.13 <= XAVG(XAVGC12.13,9) - XAVG(XAVGC26.13,9) OR XAVGC12.14 - XAVGC26.14 > XAVG(XAVGC12.14,9) - XAVG(XAVGC26.14,9)) * (ABS(XAVGC12.14 - XAVGC26.14 > XAVG(XAVGC12.14,9) - XAVG(XAVGC26.14,9) AND XAVGC12.15 - XAVGC26.15 <= XAVG(XAVGC12.15,9) - XAVG(XAVGC26.15,9)) * (XAVGC12.14 - XAVGC26.14) + ABS(XAVGC12.14 - XAVGC26.14 <= XAVG(XAVGC12.14,9) - XAVG(XAVGC26.14,9) OR XAVGC12.15 - XAVGC26.15 > XAVG(XAVGC12.15,9) - XAVG(XAVGC26.15,9)) * (ABS(XAVGC12.15 - XAVGC26.15 > XAVG(XAVGC12.15,9) - XAVG(XAVGC26.15,9) AND XAVGC12.16 - XAVGC26.16 <= XAVG(XAVGC12.16,9) - XAVG(XAVGC26.16,9)) * (XAVGC12.15 - XAVGC26.15) + ABS(XAVGC12.15 - XAVGC26.15 <= XAVG(XAVGC12.15,9) - XAVG(XAVGC26.15,9) OR XAVGC12.16 - XAVGC26.16 > XAVG(XAVGC12.16,9) - XAVG(XAVGC26.16,9)) * (ABS(XAVGC12.16 - XAVGC26.16 > XAVG(XAVGC12.16,9) - XAVG(XAVGC26.16,9) AND XAVGC12.17 - XAVGC26.17 <= XAVG(XAVGC12.17,9) - XAVG(XAVGC26.17,9)) * (XAVGC12.16 - XAVGC26.16) + ABS(XAVGC12.16 - XAVGC26.16 <= XAVG(XAVGC12.16,9) - XAVG(XAVGC26.16,9) OR XAVGC12.17 - XAVGC26.17 > XAVG(XAVGC12.17,9) - XAVG(XAVGC26.17,9)) * (ABS(XAVGC12.17 - XAVGC26.17 > XAVG(XAVGC12.17,9) - XAVG(XAVGC26.17,9) AND XAVGC12.18 - XAVGC26.18 <= XAVG(XAVGC12.18,9) - XAVG(XAVGC26.18,9)) * (XAVGC12.17 - XAVGC26.17) + ABS(XAVGC12.17 - XAVGC26.17 <= XAVG(XAVGC12.17,9) - XAVG(XAVGC26.17,9) OR XAVGC12.18 - XAVGC26.18 > XAVG(XAVGC12.18,9) - XAVG(XAVGC26.18,9)) * (ABS(XAVGC12.18 - XAVGC26.18 > XAVG(XAVGC12.18,9) - XAVG(XAVGC26.18,9) AND XAVGC12.19 - XAVGC26.19 <= XAVG(XAVGC12.19,9) - XAVG(XAVGC26.19,9)) * (XAVGC12.18 - XAVGC26.18) + ABS(XAVGC12.18 - XAVGC26.18 <= XAVG(XAVGC12.18,9) - XAVG(XAVGC26.18,9) OR XAVGC12.19 - XAVGC26.19 > XAVG(XAVGC12.19,9) - XAVG(XAVGC26.19,9)) * (ABS(XAVGC12.19 - XAVGC26.19 > XAVG(XAVGC12.19,9) - XAVG(XAVGC26.19,9) AND XAVGC12.20 - XAVGC26.20 <= XAVG(XAVGC12.20,9) - XAVG(XAVGC26.20,9)) * (XAVGC12.19 - XAVGC26.19) + ABS(XAVGC12.19 - XAVGC26.19 <= XAVG(XAVGC12.19,9) - XAVG(XAVGC26.19,9) OR XAVGC12.20 - XAVGC26.20 > XAVG(XAVGC12.20,9) - XAVG(XAVGC26.20,9)) * (ABS(XAVGC12.20 - XAVGC26.20 > XAVG(XAVGC12.20,9) - XAVG(XAVGC26.20,9) AND XAVGC12.21 - XAVGC26.21 <= XAVG(XAVGC12.21,9) - XAVG(XAVGC26.21,9)) * (XAVGC12.20 - XAVGC26.20) + ABS(XAVGC12.20 - XAVGC26.20 <= XAVG(XAVGC12.20,9) - XAVG(XAVGC26.20,9) OR XAVGC12.21 - XAVGC26.21 > XAVG(XAVGC12.21,9) - XAVG(XAVGC26.21,9)) * (ABS(XAVGC12.21 - XAVGC26.21 > XAVG(XAVGC12.21,9) - XAVG(XAVGC26.21,9) AND XAVGC12.22 - XAVGC26.22 <= XAVG(XAVGC12.22,9) - XAVG(XAVGC26.22,9)) * (XAVGC12.21 - XAVGC26.21) + ABS(XAVGC12.21 - XAVGC26.21 <= XAVG(XAVGC12.21,9) - XAVG(XAVGC26.21,9) OR XAVGC12.22 - XAVGC26.22 > XAVG(XAVGC12.22,9) - XAVG(XAVGC26.22,9)) * (ABS(XAVGC12.22 - XAVGC26.22 > XAVG(XAVGC12.22,9) - XAVG(XAVGC26.22,9) AND XAVGC12.23 - XAVGC26.23 <= XAVG(XAVGC12.23,9) - XAVG(XAVGC26.23,9)) * (XAVGC12.22 - XAVGC26.22) + ABS(XAVGC12.22 - XAVGC26.22 <= XAVG(XAVGC12.22,9) - XAVG(XAVGC26.22,9) OR XAVGC12.23 - XAVGC26.23 > XAVG(XAVGC12.23,9) - XAVG(XAVGC26.23,9)) * (ABS(XAVGC12.23 - XAVGC26.23 > XAVG(XAVGC12.23,9) - XAVG(XAVGC26.23,9) AND XAVGC12.24 - XAVGC26.24 <= XAVG(XAVGC12.24,9) - XAVG(XAVGC26.24,9)) * (XAVGC12.23 - XAVGC26.23) + ABS(XAVGC12.23 - XAVGC26.23 <= XAVG(XAVGC12.23,9) - XAVG(XAVGC26.23,9) OR XAVGC12.24 - XAVGC26.24 > XAVG(XAVGC12.24,9) - XAVG(XAVGC26.24,9)) * (ABS(XAVGC12.24 - XAVGC26.24 > XAVG(XAVGC12.24,9) - XAVG(XAVGC26.24,9) AND XAVGC12.25 - XAVGC26.25 <= XAVG(XAVGC12.25,9) - XAVG(XAVGC26.25,9)) * (XAVGC12.24 - XAVGC26.24) + ABS(XAVGC12.24 - XAVGC26.24 <= XAVG(XAVGC12.24,9) - XAVG(XAVGC26.24,9) OR XAVGC12.25 - XAVGC26.25 > XAVG(XAVGC12.25,9) - XAVG(XAVGC26.25,9)) * (ABS(XAVGC12.25 - XAVGC26.25 > XAVG(XAVGC12.25,9) - XAVG(XAVGC26.25,9) AND XAVGC12.26 - XAVGC26.26 <= XAVG(XAVGC12.26,9) - XAVG(XAVGC26.26,9)) * (XAVGC12.25 - XAVGC26.25) + ABS(XAVGC12.25 - XAVGC26.25 <= XAVG(XAVGC12.25,9) - XAVG(XAVGC26.25,9) OR XAVGC12.26 - XAVGC26.26 > XAVG(XAVGC12.26,9) - XAVG(XAVGC26.26,9)) * (ABS(XAVGC12.26 - XAVGC26.26 > XAVG(XAVGC12.26,9) - XAVG(XAVGC26.26,9) AND XAVGC12.27 - XAVGC26.27 <= XAVG(XAVGC12.27,9) - XAVG(XAVGC26.27,9)) * (XAVGC12.26 - XAVGC26.26) + ABS(XAVGC12.26 - XAVGC26.26 <= XAVG(XAVGC12.26,9) - XAVG(XAVGC26.26,9) OR XAVGC12.27 - XAVGC26.27 > XAVG(XAVGC12.27,9) - XAVG(XAVGC26.27,9)) * (ABS(XAVGC12.27 - XAVGC26.27 > XAVG(XAVGC12.27,9) - XAVG(XAVGC26.27,9) AND XAVGC12.28 - XAVGC26.28 <= XAVG(XAVGC12.28,9) - XAVG(XAVGC26.28,9)) * (XAVGC12.27 - XAVGC26.27) + ABS(XAVGC12.27 - XAVGC26.27 <= XAVG(XAVGC12.27,9) - XAVG(XAVGC26.27,9) OR XAVGC12.28 - XAVGC26.28 > XAVG(XAVGC12.28,9) - XAVG(XAVGC26.28,9)) * (ABS(XAVGC12.28 - XAVGC26.28 > XAVG(XAVGC12.28,9) - XAVG(XAVGC26.28,9) AND XAVGC12.29 - XAVGC26.29 <= XAVG(XAVGC12.29,9) - XAVG(XAVGC26.29,9)) * (XAVGC12.28 - XAVGC26.28) + ABS(XAVGC12.28 - XAVGC26.28 <= XAVG(XAVGC12.28,9) - XAVG(XAVGC26.28,9) OR XAVGC12.29 - XAVGC26.29 > XAVG(XAVGC12.29,9) - XAVG(XAVGC26.29,9)) * (ABS(XAVGC12.29 - XAVGC26.29 > XAVG(XAVGC12.29,9) - XAVG(XAVGC26.29,9) AND XAVGC12.30 - XAVGC26.30 <= XAVG(XAVGC12.30,9) - XAVG(XAVGC26.30,9)) * (XAVGC12.29 - XAVGC26.29) + ABS(XAVGC12.29 - XAVGC26.29 <= XAVG(XAVGC12.29,9) - XAVG(XAVGC26.29,9) OR XAVGC12.30 - XAVGC26.30 > XAVG(XAVGC12.30,9) - XAVG(XAVGC26.30,9)) * (ABS(XAVGC12.30 - XAVGC26.30 > XAVG(XAVGC12.30,9) - XAVG(XAVGC26.30,9) AND XAVGC12.31 - XAVGC26.31 <= XAVG(XAVGC12.31,9) - XAVG(XAVGC26.31,9)) * (XAVGC12.30 - XAVGC26.30) + ABS(XAVGC12.30 - XAVGC26.30 <= XAVG(XAVGC12.30,9) - XAVG(XAVGC26.30,9) OR XAVGC12.31 - XAVGC26.31 > XAVG(XAVGC12.31,9) - XAVG(XAVGC26.31,9)) * (ABS(XAVGC12.31 - XAVGC26.31 > XAVG(XAVGC12.31,9) - XAVG(XAVGC26.31,9) AND XAVGC12.32 - XAVGC26.32 <= XAVG(XAVGC12.32,9) - XAVG(XAVGC26.32,9)) * (XAVGC12.31 - XAVGC26.31) + ABS(XAVGC12.31 - XAVGC26.31 <= XAVG(XAVGC12.31,9) - XAVG(XAVGC26.31,9) OR XAVGC12.32 - XAVGC26.32 > XAVG(XAVGC12.32,9) - XAVG(XAVGC26.32,9)) * (XAVGC12 - XAVGC26))))))))))))))))))))))))))))))
Exponential MACD 12,26,9 xDown and xDown < prior xDown:
XAVGC12 - XAVGC26 < XAVG(XAVGC12,9) - XAVG(XAVGC26,9) AND XAVGC12.1 - XAVGC26.1 >= XAVG(XAVGC12.1,9) - XAVG(XAVGC26.1,9) AND XAVGC12 - XAVGC26 < ABS(XAVGC12.2 - XAVGC26.2 < XAVG(XAVGC12.2,9) - XAVG(XAVGC26.2,9) AND XAVGC12.3 - XAVGC26.3 >= XAVG(XAVGC12.3,9) - XAVG(XAVGC26.3,9)) * (XAVGC12.2 - XAVGC26.2) + ABS(XAVGC12.2 - XAVGC26.2 >= XAVG(XAVGC12.2,9) - XAVG(XAVGC26.2,9) OR XAVGC12.3 - XAVGC26.3 < XAVG(XAVGC12.3,9) - XAVG(XAVGC26.3,9)) * (ABS(XAVGC12.3 - XAVGC26.3 < XAVG(XAVGC12.3,9) - XAVG(XAVGC26.3,9) AND XAVGC12.4 - XAVGC26.4 >= XAVG(XAVGC12.4,9) - XAVG(XAVGC26.4,9)) * (XAVGC12.3 - XAVGC26.3) + ABS(XAVGC12.3 - XAVGC26.3 >= XAVG(XAVGC12.3,9) - XAVG(XAVGC26.3,9) OR XAVGC12.4 - XAVGC26.4 < XAVG(XAVGC12.4,9) - XAVG(XAVGC26.4,9)) * (ABS(XAVGC12.4 - XAVGC26.4 < XAVG(XAVGC12.4,9) - XAVG(XAVGC26.4,9) AND XAVGC12.5 - XAVGC26.5 >= XAVG(XAVGC12.5,9) - XAVG(XAVGC26.5,9)) * (XAVGC12.4 - XAVGC26.4) + ABS(XAVGC12.4 - XAVGC26.4 >= XAVG(XAVGC12.4,9) - XAVG(XAVGC26.4,9) OR XAVGC12.5 - XAVGC26.5 < XAVG(XAVGC12.5,9) - XAVG(XAVGC26.5,9)) * (ABS(XAVGC12.5 - XAVGC26.5 < XAVG(XAVGC12.5,9) - XAVG(XAVGC26.5,9) AND XAVGC12.6 - XAVGC26.6 >= XAVG(XAVGC12.6,9) - XAVG(XAVGC26.6,9)) * (XAVGC12.5 - XAVGC26.5) + ABS(XAVGC12.5 - XAVGC26.5 >= XAVG(XAVGC12.5,9) - XAVG(XAVGC26.5,9) OR XAVGC12.6 - XAVGC26.6 < XAVG(XAVGC12.6,9) - XAVG(XAVGC26.6,9)) * (ABS(XAVGC12.6 - XAVGC26.6 < XAVG(XAVGC12.6,9) - XAVG(XAVGC26.6,9) AND XAVGC12.7 - XAVGC26.7 >= XAVG(XAVGC12.7,9) - XAVG(XAVGC26.7,9)) * (XAVGC12.6 - XAVGC26.6) + ABS(XAVGC12.6 - XAVGC26.6 >= XAVG(XAVGC12.6,9) - XAVG(XAVGC26.6,9) OR XAVGC12.7 - XAVGC26.7 < XAVG(XAVGC12.7,9) - XAVG(XAVGC26.7,9)) * (ABS(XAVGC12.7 - XAVGC26.7 < XAVG(XAVGC12.7,9) - XAVG(XAVGC26.7,9) AND XAVGC12.8 - XAVGC26.8 >= XAVG(XAVGC12.8,9) - XAVG(XAVGC26.8,9)) * (XAVGC12.7 - XAVGC26.7) + ABS(XAVGC12.7 - XAVGC26.7 >= XAVG(XAVGC12.7,9) - XAVG(XAVGC26.7,9) OR XAVGC12.8 - XAVGC26.8 < XAVG(XAVGC12.8,9) - XAVG(XAVGC26.8,9)) * (ABS(XAVGC12.8 - XAVGC26.8 < XAVG(XAVGC12.8,9) - XAVG(XAVGC26.8,9) AND XAVGC12.9 - XAVGC26.9 >= XAVG(XAVGC12.9,9) - XAVG(XAVGC26.9,9)) * (XAVGC12.8 - XAVGC26.8) + ABS(XAVGC12.8 - XAVGC26.8 >= XAVG(XAVGC12.8,9) - XAVG(XAVGC26.8,9) OR XAVGC12.9 - XAVGC26.9 < XAVG(XAVGC12.9,9) - XAVG(XAVGC26.9,9)) * (ABS(XAVGC12.9 - XAVGC26.9 < XAVG(XAVGC12.9,9) - XAVG(XAVGC26.9,9) AND XAVGC12.10 - XAVGC26.10 >= XAVG(XAVGC12.10,9) - XAVG(XAVGC26.10,9)) * (XAVGC12.9 - XAVGC26.9) + ABS(XAVGC12.9 - XAVGC26.9 >= XAVG(XAVGC12.9,9) - XAVG(XAVGC26.9,9) OR XAVGC12.10 - XAVGC26.10 < XAVG(XAVGC12.10,9) - XAVG(XAVGC26.10,9)) * (ABS(XAVGC12.10 - XAVGC26.10 < XAVG(XAVGC12.10,9) - XAVG(XAVGC26.10,9) AND XAVGC12.11 - XAVGC26.11 >= XAVG(XAVGC12.11,9) - XAVG(XAVGC26.11,9)) * (XAVGC12.10 - XAVGC26.10) + ABS(XAVGC12.10 - XAVGC26.10 >= XAVG(XAVGC12.10,9) - XAVG(XAVGC26.10,9) OR XAVGC12.11 - XAVGC26.11 < XAVG(XAVGC12.11,9) - XAVG(XAVGC26.11,9)) * (ABS(XAVGC12.11 - XAVGC26.11 < XAVG(XAVGC12.11,9) - XAVG(XAVGC26.11,9) AND XAVGC12.12 - XAVGC26.12 >= XAVG(XAVGC12.12,9) - XAVG(XAVGC26.12,9)) * (XAVGC12.11 - XAVGC26.11) + ABS(XAVGC12.11 - XAVGC26.11 >= XAVG(XAVGC12.11,9) - XAVG(XAVGC26.11,9) OR XAVGC12.12 - XAVGC26.12 < XAVG(XAVGC12.12,9) - XAVG(XAVGC26.12,9)) * (ABS(XAVGC12.12 - XAVGC26.12 < XAVG(XAVGC12.12,9) - XAVG(XAVGC26.12,9) AND XAVGC12.13 - XAVGC26.13 >= XAVG(XAVGC12.13,9) - XAVG(XAVGC26.13,9)) * (XAVGC12.12 - XAVGC26.12) + ABS(XAVGC12.12 - XAVGC26.12 >= XAVG(XAVGC12.12,9) - XAVG(XAVGC26.12,9) OR XAVGC12.13 - XAVGC26.13 < XAVG(XAVGC12.13,9) - XAVG(XAVGC26.13,9)) * (ABS(XAVGC12.13 - XAVGC26.13 < XAVG(XAVGC12.13,9) - XAVG(XAVGC26.13,9) AND XAVGC12.14 - XAVGC26.14 >= XAVG(XAVGC12.14,9) - XAVG(XAVGC26.14,9)) * (XAVGC12.13 - XAVGC26.13) + ABS(XAVGC12.13 - XAVGC26.13 >= XAVG(XAVGC12.13,9) - XAVG(XAVGC26.13,9) OR XAVGC12.14 - XAVGC26.14 < XAVG(XAVGC12.14,9) - XAVG(XAVGC26.14,9)) * (ABS(XAVGC12.14 - XAVGC26.14 < XAVG(XAVGC12.14,9) - XAVG(XAVGC26.14,9) AND XAVGC12.15 - XAVGC26.15 >= XAVG(XAVGC12.15,9) - XAVG(XAVGC26.15,9)) * (XAVGC12.14 - XAVGC26.14) + ABS(XAVGC12.14 - XAVGC26.14 >= XAVG(XAVGC12.14,9) - XAVG(XAVGC26.14,9) OR XAVGC12.15 - XAVGC26.15 < XAVG(XAVGC12.15,9) - XAVG(XAVGC26.15,9)) * (ABS(XAVGC12.15 - XAVGC26.15 < XAVG(XAVGC12.15,9) - XAVG(XAVGC26.15,9) AND XAVGC12.16 - XAVGC26.16 >= XAVG(XAVGC12.16,9) - XAVG(XAVGC26.16,9)) * (XAVGC12.15 - XAVGC26.15) + ABS(XAVGC12.15 - XAVGC26.15 >= XAVG(XAVGC12.15,9) - XAVG(XAVGC26.15,9) OR XAVGC12.16 - XAVGC26.16 < XAVG(XAVGC12.16,9) - XAVG(XAVGC26.16,9)) * (ABS(XAVGC12.16 - XAVGC26.16 < XAVG(XAVGC12.16,9) - XAVG(XAVGC26.16,9) AND XAVGC12.17 - XAVGC26.17 >= XAVG(XAVGC12.17,9) - XAVG(XAVGC26.17,9)) * (XAVGC12.16 - XAVGC26.16) + ABS(XAVGC12.16 - XAVGC26.16 >= XAVG(XAVGC12.16,9) - XAVG(XAVGC26.16,9) OR XAVGC12.17 - XAVGC26.17 < XAVG(XAVGC12.17,9) - XAVG(XAVGC26.17,9)) * (ABS(XAVGC12.17 - XAVGC26.17 < XAVG(XAVGC12.17,9) - XAVG(XAVGC26.17,9) AND XAVGC12.18 - XAVGC26.18 >= XAVG(XAVGC12.18,9) - XAVG(XAVGC26.18,9)) * (XAVGC12.17 - XAVGC26.17) + ABS(XAVGC12.17 - XAVGC26.17 >= XAVG(XAVGC12.17,9) - XAVG(XAVGC26.17,9) OR XAVGC12.18 - XAVGC26.18 < XAVG(XAVGC12.18,9) - XAVG(XAVGC26.18,9)) * (ABS(XAVGC12.18 - XAVGC26.18 < XAVG(XAVGC12.18,9) - XAVG(XAVGC26.18,9) AND XAVGC12.19 - XAVGC26.19 >= XAVG(XAVGC12.19,9) - XAVG(XAVGC26.19,9)) * (XAVGC12.18 - XAVGC26.18) + ABS(XAVGC12.18 - XAVGC26.18 >= XAVG(XAVGC12.18,9) - XAVG(XAVGC26.18,9) OR XAVGC12.19 - XAVGC26.19 < XAVG(XAVGC12.19,9) - XAVG(XAVGC26.19,9)) * (ABS(XAVGC12.19 - XAVGC26.19 < XAVG(XAVGC12.19,9) - XAVG(XAVGC26.19,9) AND XAVGC12.20 - XAVGC26.20 >= XAVG(XAVGC12.20,9) - XAVG(XAVGC26.20,9)) * (XAVGC12.19 - XAVGC26.19) + ABS(XAVGC12.19 - XAVGC26.19 >= XAVG(XAVGC12.19,9) - XAVG(XAVGC26.19,9) OR XAVGC12.20 - XAVGC26.20 < XAVG(XAVGC12.20,9) - XAVG(XAVGC26.20,9)) * (ABS(XAVGC12.20 - XAVGC26.20 < XAVG(XAVGC12.20,9) - XAVG(XAVGC26.20,9) AND XAVGC12.21 - XAVGC26.21 >= XAVG(XAVGC12.21,9) - XAVG(XAVGC26.21,9)) * (XAVGC12.20 - XAVGC26.20) + ABS(XAVGC12.20 - XAVGC26.20 >= XAVG(XAVGC12.20,9) - XAVG(XAVGC26.20,9) OR XAVGC12.21 - XAVGC26.21 < XAVG(XAVGC12.21,9) - XAVG(XAVGC26.21,9)) * (ABS(XAVGC12.21 - XAVGC26.21 < XAVG(XAVGC12.21,9) - XAVG(XAVGC26.21,9) AND XAVGC12.22 - XAVGC26.22 >= XAVG(XAVGC12.22,9) - XAVG(XAVGC26.22,9)) * (XAVGC12.21 - XAVGC26.21) + ABS(XAVGC12.21 - XAVGC26.21 >= XAVG(XAVGC12.21,9) - XAVG(XAVGC26.21,9) OR XAVGC12.22 - XAVGC26.22 < XAVG(XAVGC12.22,9) - XAVG(XAVGC26.22,9)) * (ABS(XAVGC12.22 - XAVGC26.22 < XAVG(XAVGC12.22,9) - XAVG(XAVGC26.22,9) AND XAVGC12.23 - XAVGC26.23 >= XAVG(XAVGC12.23,9) - XAVG(XAVGC26.23,9)) * (XAVGC12.22 - XAVGC26.22) + ABS(XAVGC12.22 - XAVGC26.22 >= XAVG(XAVGC12.22,9) - XAVG(XAVGC26.22,9) OR XAVGC12.23 - XAVGC26.23 < XAVG(XAVGC12.23,9) - XAVG(XAVGC26.23,9)) * (ABS(XAVGC12.23 - XAVGC26.23 < XAVG(XAVGC12.23,9) - XAVG(XAVGC26.23,9) AND XAVGC12.24 - XAVGC26.24 >= XAVG(XAVGC12.24,9) - XAVG(XAVGC26.24,9)) * (XAVGC12.23 - XAVGC26.23) + ABS(XAVGC12.23 - XAVGC26.23 >= XAVG(XAVGC12.23,9) - XAVG(XAVGC26.23,9) OR XAVGC12.24 - XAVGC26.24 < XAVG(XAVGC12.24,9) - XAVG(XAVGC26.24,9)) * (ABS(XAVGC12.24 - XAVGC26.24 < XAVG(XAVGC12.24,9) - XAVG(XAVGC26.24,9) AND XAVGC12.25 - XAVGC26.25 >= XAVG(XAVGC12.25,9) - XAVG(XAVGC26.25,9)) * (XAVGC12.24 - XAVGC26.24) + ABS(XAVGC12.24 - XAVGC26.24 >= XAVG(XAVGC12.24,9) - XAVG(XAVGC26.24,9) OR XAVGC12.25 - XAVGC26.25 < XAVG(XAVGC12.25,9) - XAVG(XAVGC26.25,9)) * (ABS(XAVGC12.25 - XAVGC26.25 < XAVG(XAVGC12.25,9) - XAVG(XAVGC26.25,9) AND XAVGC12.26 - XAVGC26.26 >= XAVG(XAVGC12.26,9) - XAVG(XAVGC26.26,9)) * (XAVGC12.25 - XAVGC26.25) + ABS(XAVGC12.25 - XAVGC26.25 >= XAVG(XAVGC12.25,9) - XAVG(XAVGC26.25,9) OR XAVGC12.26 - XAVGC26.26 < XAVG(XAVGC12.26,9) - XAVG(XAVGC26.26,9)) * (ABS(XAVGC12.26 - XAVGC26.26 < XAVG(XAVGC12.26,9) - XAVG(XAVGC26.26,9) AND XAVGC12.27 - XAVGC26.27 >= XAVG(XAVGC12.27,9) - XAVG(XAVGC26.27,9)) * (XAVGC12.26 - XAVGC26.26) + ABS(XAVGC12.26 - XAVGC26.26 >= XAVG(XAVGC12.26,9) - XAVG(XAVGC26.26,9) OR XAVGC12.27 - XAVGC26.27 < XAVG(XAVGC12.27,9) - XAVG(XAVGC26.27,9)) * (ABS(XAVGC12.27 - XAVGC26.27 < XAVG(XAVGC12.27,9) - XAVG(XAVGC26.27,9) AND XAVGC12.28 - XAVGC26.28 >= XAVG(XAVGC12.28,9) - XAVG(XAVGC26.28,9)) * (XAVGC12.27 - XAVGC26.27) + ABS(XAVGC12.27 - XAVGC26.27 >= XAVG(XAVGC12.27,9) - XAVG(XAVGC26.27,9) OR XAVGC12.28 - XAVGC26.28 < XAVG(XAVGC12.28,9) - XAVG(XAVGC26.28,9)) * (ABS(XAVGC12.28 - XAVGC26.28 < XAVG(XAVGC12.28,9) - XAVG(XAVGC26.28,9) AND XAVGC12.29 - XAVGC26.29 >= XAVG(XAVGC12.29,9) - XAVG(XAVGC26.29,9)) * (XAVGC12.28 - XAVGC26.28) + ABS(XAVGC12.28 - XAVGC26.28 >= XAVG(XAVGC12.28,9) - XAVG(XAVGC26.28,9) OR XAVGC12.29 - XAVGC26.29 < XAVG(XAVGC12.29,9) - XAVG(XAVGC26.29,9)) * (ABS(XAVGC12.29 - XAVGC26.29 < XAVG(XAVGC12.29,9) - XAVG(XAVGC26.29,9) AND XAVGC12.30 - XAVGC26.30 >= XAVG(XAVGC12.30,9) - XAVG(XAVGC26.30,9)) * (XAVGC12.29 - XAVGC26.29) + ABS(XAVGC12.29 - XAVGC26.29 >= XAVG(XAVGC12.29,9) - XAVG(XAVGC26.29,9) OR XAVGC12.30 - XAVGC26.30 < XAVG(XAVGC12.30,9) - XAVG(XAVGC26.30,9)) * (ABS(XAVGC12.30 - XAVGC26.30 < XAVG(XAVGC12.30,9) - XAVG(XAVGC26.30,9) AND XAVGC12.31 - XAVGC26.31 >= XAVG(XAVGC12.31,9) - XAVG(XAVGC26.31,9)) * (XAVGC12.30 - XAVGC26.30) + ABS(XAVGC12.30 - XAVGC26.30 >= XAVG(XAVGC12.30,9) - XAVG(XAVGC26.30,9) OR XAVGC12.31 - XAVGC26.31 < XAVG(XAVGC12.31,9) - XAVG(XAVGC26.31,9)) * (ABS(XAVGC12.31 - XAVGC26.31 < XAVG(XAVGC12.31,9) - XAVG(XAVGC26.31,9) AND XAVGC12.32 - XAVGC26.32 >= XAVG(XAVGC12.32,9) - XAVG(XAVGC26.32,9)) * (XAVGC12.31 - XAVGC26.31) + ABS(XAVGC12.31 - XAVGC26.31 >= XAVG(XAVGC12.31,9) - XAVG(XAVGC26.31,9) OR XAVGC12.32 - XAVGC26.32 < XAVG(XAVGC12.32,9) - XAVG(XAVGC26.32,9)) * (XAVGC12 - XAVGC26))))))))))))))))))))))))))))))
You may wish to review the following:
How to create a Personal Criteria Forumula (PCF) Days Since Last Peak (or other day-counting needs) Understanding MACD Handy PCF example formulas to help you learn the syntax of PCFs! PCF Formula Descriptions
-Bruce Personal Criteria Formulas TC2000 Support Articles
|