Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Swing Fan Crossover Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
investit
Posted : Saturday, August 15, 2009 2:58:01 PM
Gold Customer Gold Customer

Joined: 7/13/2007
Posts: 28
I need help finding Up & Down Crossovers of a 20 day MA with the following formula ((ABS(XAVGC20 - XAVGC40) + ((ABS(XAVGC50 - XAVGC40))/(XAVGC40)*100. I would appreciate help in writing 2 pcfs identifying both positive and negative crosses.
                                                                                                                                      Thanks,
                                                                                                                                                Marty
Bruce_L
Posted : Monday, August 17, 2009 1:51:38 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
If the 20 day MA is Simple:

Custom Indicator xUp its own SMA20:

19 * (ABS(XAVGC20 - XAVGC40) + ABS(XAVGC50 - XAVGC40)) / XAVGC40 > (ABS(XAVGC20.1 - XAVGC40.1) + ABS(XAVGC50.1 - XAVGC40.1)) / XAVGC40.1 + (ABS(XAVGC20.2 - XAVGC40.2) + ABS(XAVGC50.2 - XAVGC40.2)) / XAVGC40.2 + (ABS(XAVGC20.3 - XAVGC40.3) + ABS(XAVGC50.3 - XAVGC40.3)) / XAVGC40.3 + (ABS(XAVGC20.4 - XAVGC40.4) + ABS(XAVGC50.4 - XAVGC40.4)) / XAVGC40.4 + (ABS(XAVGC20.5 - XAVGC40.5) + ABS(XAVGC50.5 - XAVGC40.5)) / XAVGC40.5 + (ABS(XAVGC20.6 - XAVGC40.6) + ABS(XAVGC50.6 - XAVGC40.6)) / XAVGC40.6 + (ABS(XAVGC20.7 - XAVGC40.7) + ABS(XAVGC50.7 - XAVGC40.7)) / XAVGC40.7 + (ABS(XAVGC20.8 - XAVGC40.8) + ABS(XAVGC50.8 - XAVGC40.8)) / XAVGC40.8 + (ABS(XAVGC20.9 - XAVGC40.9) + ABS(XAVGC50.9 - XAVGC40.9)) / XAVGC40.9 + (ABS(XAVGC20.10 - XAVGC40.10) + ABS(XAVGC50.10 - XAVGC40.10)) / XAVGC40.10 + (ABS(XAVGC20.11 - XAVGC40.11) + ABS(XAVGC50.11 - XAVGC40.11)) / XAVGC40.11 + (ABS(XAVGC20.12 - XAVGC40.12) + ABS(XAVGC50.12 - XAVGC40.12)) / XAVGC40.12 + (ABS(XAVGC20.13 - XAVGC40.13) + ABS(XAVGC50.13 - XAVGC40.13)) / XAVGC40.13 + (ABS(XAVGC20.14 - XAVGC40.14) + ABS(XAVGC50.14 - XAVGC40.14)) / XAVGC40.14 + (ABS(XAVGC20.15 - XAVGC40.15) + ABS(XAVGC50.15 - XAVGC40.15)) / XAVGC40.15 + (ABS(XAVGC20.16 - XAVGC40.16) + ABS(XAVGC50.16 - XAVGC40.16)) / XAVGC40.16 + (ABS(XAVGC20.17 - XAVGC40.17) + ABS(XAVGC50.17 - XAVGC40.17)) / XAVGC40.17 + (ABS(XAVGC20.18 - XAVGC40.18) + ABS(XAVGC50.18 - XAVGC40.18)) / XAVGC40.18 + (ABS(XAVGC20.19 - XAVGC40.19) + ABS(XAVGC50.19 - XAVGC40.19)) / XAVGC40.19 AND 19 * (ABS(XAVGC20.1 - XAVGC40.1) + ABS(XAVGC50.1 - XAVGC40.1)) / XAVGC40.1 <= (ABS(XAVGC20.2 - XAVGC40.2) + ABS(XAVGC50.2 - XAVGC40.2)) / XAVGC40.2 + (ABS(XAVGC20.3 - XAVGC40.3) + ABS(XAVGC50.3 - XAVGC40.3)) / XAVGC40.3 + (ABS(XAVGC20.4 - XAVGC40.4) + ABS(XAVGC50.4 - XAVGC40.4)) / XAVGC40.4 + (ABS(XAVGC20.5 - XAVGC40.5) + ABS(XAVGC50.5 - XAVGC40.5)) / XAVGC40.5 + (ABS(XAVGC20.6 - XAVGC40.6) + ABS(XAVGC50.6 - XAVGC40.6)) / XAVGC40.6 + (ABS(XAVGC20.7 - XAVGC40.7) + ABS(XAVGC50.7 - XAVGC40.7)) / XAVGC40.7 + (ABS(XAVGC20.8 - XAVGC40.8) + ABS(XAVGC50.8 - XAVGC40.8)) / XAVGC40.8 + (ABS(XAVGC20.9 - XAVGC40.9) + ABS(XAVGC50.9 - XAVGC40.9)) / XAVGC40.9 + (ABS(XAVGC20.10 - XAVGC40.10) + ABS(XAVGC50.10 - XAVGC40.10)) / XAVGC40.10 + (ABS(XAVGC20.11 - XAVGC40.11) + ABS(XAVGC50.11 - XAVGC40.11)) / XAVGC40.11 + (ABS(XAVGC20.12 - XAVGC40.12) + ABS(XAVGC50.12 - XAVGC40.12)) / XAVGC40.12 + (ABS(XAVGC20.13 - XAVGC40.13) + ABS(XAVGC50.13 - XAVGC40.13)) / XAVGC40.13 + (ABS(XAVGC20.14 - XAVGC40.14) + ABS(XAVGC50.14 - XAVGC40.14)) / XAVGC40.14 + (ABS(XAVGC20.15 - XAVGC40.15) + ABS(XAVGC50.15 - XAVGC40.15)) / XAVGC40.15 + (ABS(XAVGC20.16 - XAVGC40.16) + ABS(XAVGC50.16 - XAVGC40.16)) / XAVGC40.16 + (ABS(XAVGC20.17 - XAVGC40.17) + ABS(XAVGC50.17 - XAVGC40.17)) / XAVGC40.17 + (ABS(XAVGC20.18 - XAVGC40.18) + ABS(XAVGC50.18 - XAVGC40.18)) / XAVGC40.18 + (ABS(XAVGC20.19 - XAVGC40.19) + ABS(XAVGC50.19 - XAVGC40.19)) / XAVGC40.19 + (ABS(XAVGC20.20 - XAVGC40.20) + ABS(XAVGC50.20 - XAVGC40.20)) / XAVGC40.20

Custom Indicator xDn its own SMA20:

19 * (ABS(XAVGC20 - XAVGC40) + ABS(XAVGC50 - XAVGC40)) / XAVGC40 < (ABS(XAVGC20.1 - XAVGC40.1) + ABS(XAVGC50.1 - XAVGC40.1)) / XAVGC40.1 + (ABS(XAVGC20.2 - XAVGC40.2) + ABS(XAVGC50.2 - XAVGC40.2)) / XAVGC40.2 + (ABS(XAVGC20.3 - XAVGC40.3) + ABS(XAVGC50.3 - XAVGC40.3)) / XAVGC40.3 + (ABS(XAVGC20.4 - XAVGC40.4) + ABS(XAVGC50.4 - XAVGC40.4)) / XAVGC40.4 + (ABS(XAVGC20.5 - XAVGC40.5) + ABS(XAVGC50.5 - XAVGC40.5)) / XAVGC40.5 + (ABS(XAVGC20.6 - XAVGC40.6) + ABS(XAVGC50.6 - XAVGC40.6)) / XAVGC40.6 + (ABS(XAVGC20.7 - XAVGC40.7) + ABS(XAVGC50.7 - XAVGC40.7)) / XAVGC40.7 + (ABS(XAVGC20.8 - XAVGC40.8) + ABS(XAVGC50.8 - XAVGC40.8)) / XAVGC40.8 + (ABS(XAVGC20.9 - XAVGC40.9) + ABS(XAVGC50.9 - XAVGC40.9)) / XAVGC40.9 + (ABS(XAVGC20.10 - XAVGC40.10) + ABS(XAVGC50.10 - XAVGC40.10)) / XAVGC40.10 + (ABS(XAVGC20.11 - XAVGC40.11) + ABS(XAVGC50.11 - XAVGC40.11)) / XAVGC40.11 + (ABS(XAVGC20.12 - XAVGC40.12) + ABS(XAVGC50.12 - XAVGC40.12)) / XAVGC40.12 + (ABS(XAVGC20.13 - XAVGC40.13) + ABS(XAVGC50.13 - XAVGC40.13)) / XAVGC40.13 + (ABS(XAVGC20.14 - XAVGC40.14) + ABS(XAVGC50.14 - XAVGC40.14)) / XAVGC40.14 + (ABS(XAVGC20.15 - XAVGC40.15) + ABS(XAVGC50.15 - XAVGC40.15)) / XAVGC40.15 + (ABS(XAVGC20.16 - XAVGC40.16) + ABS(XAVGC50.16 - XAVGC40.16)) / XAVGC40.16 + (ABS(XAVGC20.17 - XAVGC40.17) + ABS(XAVGC50.17 - XAVGC40.17)) / XAVGC40.17 + (ABS(XAVGC20.18 - XAVGC40.18) + ABS(XAVGC50.18 - XAVGC40.18)) / XAVGC40.18 + (ABS(XAVGC20.19 - XAVGC40.19) + ABS(XAVGC50.19 - XAVGC40.19)) / XAVGC40.19 AND 19 * (ABS(XAVGC20.1 - XAVGC40.1) + ABS(XAVGC50.1 - XAVGC40.1)) / XAVGC40.1 >= (ABS(XAVGC20.2 - XAVGC40.2) + ABS(XAVGC50.2 - XAVGC40.2)) / XAVGC40.2 + (ABS(XAVGC20.3 - XAVGC40.3) + ABS(XAVGC50.3 - XAVGC40.3)) / XAVGC40.3 + (ABS(XAVGC20.4 - XAVGC40.4) + ABS(XAVGC50.4 - XAVGC40.4)) / XAVGC40.4 + (ABS(XAVGC20.5 - XAVGC40.5) + ABS(XAVGC50.5 - XAVGC40.5)) / XAVGC40.5 + (ABS(XAVGC20.6 - XAVGC40.6) + ABS(XAVGC50.6 - XAVGC40.6)) / XAVGC40.6 + (ABS(XAVGC20.7 - XAVGC40.7) + ABS(XAVGC50.7 - XAVGC40.7)) / XAVGC40.7 + (ABS(XAVGC20.8 - XAVGC40.8) + ABS(XAVGC50.8 - XAVGC40.8)) / XAVGC40.8 + (ABS(XAVGC20.9 - XAVGC40.9) + ABS(XAVGC50.9 - XAVGC40.9)) / XAVGC40.9 + (ABS(XAVGC20.10 - XAVGC40.10) + ABS(XAVGC50.10 - XAVGC40.10)) / XAVGC40.10 + (ABS(XAVGC20.11 - XAVGC40.11) + ABS(XAVGC50.11 - XAVGC40.11)) / XAVGC40.11 + (ABS(XAVGC20.12 - XAVGC40.12) + ABS(XAVGC50.12 - XAVGC40.12)) / XAVGC40.12 + (ABS(XAVGC20.13 - XAVGC40.13) + ABS(XAVGC50.13 - XAVGC40.13)) / XAVGC40.13 + (ABS(XAVGC20.14 - XAVGC40.14) + ABS(XAVGC50.14 - XAVGC40.14)) / XAVGC40.14 + (ABS(XAVGC20.15 - XAVGC40.15) + ABS(XAVGC50.15 - XAVGC40.15)) / XAVGC40.15 + (ABS(XAVGC20.16 - XAVGC40.16) + ABS(XAVGC50.16 - XAVGC40.16)) / XAVGC40.16 + (ABS(XAVGC20.17 - XAVGC40.17) + ABS(XAVGC50.17 - XAVGC40.17)) / XAVGC40.17 + (ABS(XAVGC20.18 - XAVGC40.18) + ABS(XAVGC50.18 - XAVGC40.18)) / XAVGC40.18 + (ABS(XAVGC20.19 - XAVGC40.19) + ABS(XAVGC50.19 - XAVGC40.19)) / XAVGC40.19 + (ABS(XAVGC20.20 - XAVGC40.20) + ABS(XAVGC50.20 - XAVGC40.20)) / XAVGC40.20

If the 20 day MA is Exponential:

Custom Indicator xUp its own EMA20:

(ABS(XAVGC20 - XAVGC40) + ABS(XAVGC50 - XAVGC40)) / XAVGC40 > .0953245136006837 * ((ABS(XAVGC20 - XAVGC40) + ABS(XAVGC50 - XAVGC40)) / XAVGC40.0 + 19 / 21 * ((ABS(XAVGC20.1 - XAVGC40.1) + ABS(XAVGC50.1 - XAVGC40.1)) / XAVGC40.1 + 19 / 21 * ((ABS(XAVGC20.2 - XAVGC40.2) + ABS(XAVGC50.2 - XAVGC40.2)) / XAVGC40.2 + 19 / 21 * ((ABS(XAVGC20.3 - XAVGC40.3) + ABS(XAVGC50.3 - XAVGC40.3)) / XAVGC40.3 + 19 / 21 * ((ABS(XAVGC20.4 - XAVGC40.4) + ABS(XAVGC50.4 - XAVGC40.4)) / XAVGC40.4 + 19 / 21 * ((ABS(XAVGC20.5 - XAVGC40.5) + ABS(XAVGC50.5 - XAVGC40.5)) / XAVGC40.5 + 19 / 21 * ((ABS(XAVGC20.6 - XAVGC40.6) + ABS(XAVGC50.6 - XAVGC40.6)) / XAVGC40.6 + 19 / 21 * ((ABS(XAVGC20.7 - XAVGC40.7) + ABS(XAVGC50.7 - XAVGC40.7)) / XAVGC40.7 + 19 / 21 * ((ABS(XAVGC20.8 - XAVGC40.8) + ABS(XAVGC50.8 - XAVGC40.8)) / XAVGC40.8 + 19 / 21 * ((ABS(XAVGC20.9 - XAVGC40.9) + ABS(XAVGC50.9 - XAVGC40.9)) / XAVGC40.9 + 19 / 21 * ((ABS(XAVGC20.10 - XAVGC40.10) + ABS(XAVGC50.10 - XAVGC40.10)) / XAVGC40.10 + 19 / 21 * ((ABS(XAVGC20.11 - XAVGC40.11) + ABS(XAVGC50.11 - XAVGC40.11)) / XAVGC40.11 + 19 / 21 * ((ABS(XAVGC20.12 - XAVGC40.12) + ABS(XAVGC50.12 - XAVGC40.12)) / XAVGC40.12 + 19 / 21 * ((ABS(XAVGC20.13 - XAVGC40.13) + ABS(XAVGC50.13 - XAVGC40.13)) / XAVGC40.13 + 19 / 21 * ((ABS(XAVGC20.14 - XAVGC40.14) + ABS(XAVGC50.14 - XAVGC40.14)) / XAVGC40.14 + 19 / 21 * ((ABS(XAVGC20.15 - XAVGC40.15) + ABS(XAVGC50.15 - XAVGC40.15)) / XAVGC40.15 + 19 / 21 * ((ABS(XAVGC20.16 - XAVGC40.16) + ABS(XAVGC50.16 - XAVGC40.16)) / XAVGC40.16 + 19 / 21 * ((ABS(XAVGC20.17 - XAVGC40.17) + ABS(XAVGC50.17 - XAVGC40.17)) / XAVGC40.17 + 19 / 21 * ((ABS(XAVGC20.18 - XAVGC40.18) + ABS(XAVGC50.18 - XAVGC40.18)) / XAVGC40.18 + 19 / 21 * ((ABS(XAVGC20.19 - XAVGC40.19) + ABS(XAVGC50.19 - XAVGC40.19)) / XAVGC40.19 + 19 / 21 * ((ABS(XAVGC20.20 - XAVGC40.20) + ABS(XAVGC50.20 - XAVGC40.20)) / XAVGC40.20 + 19 / 21 * ((ABS(XAVGC20.21 - XAVGC40.21) + ABS(XAVGC50.21 - XAVGC40.21)) / XAVGC40.21 + 19 / 21 * ((ABS(XAVGC20.22 - XAVGC40.22) + ABS(XAVGC50.22 - XAVGC40.22)) / XAVGC40.22 + 19 / 21 * ((ABS(XAVGC20.23 - XAVGC40.23) + ABS(XAVGC50.23 - XAVGC40.23)) / XAVGC40.23 + 19 / 21 * ((ABS(XAVGC20.24 - XAVGC40.24) + ABS(XAVGC50.24 - XAVGC40.24)) / XAVGC40.24 + 19 / 21 * ((ABS(XAVGC20.25 - XAVGC40.25) + ABS(XAVGC50.25 - XAVGC40.25)) / XAVGC40.25 + 19 / 21 * ((ABS(XAVGC20.26 - XAVGC40.26) + ABS(XAVGC50.26 - XAVGC40.26)) / XAVGC40.26 + 19 / 21 * ((ABS(XAVGC20.27 - XAVGC40.27) + ABS(XAVGC50.27 - XAVGC40.27)) / XAVGC40.27 + 19 / 21 * ((ABS(XAVGC20.28 - XAVGC40.28) + ABS(XAVGC50.28 - XAVGC40.28)) / XAVGC40.28 + 19 / 21 * ((ABS(XAVGC20.29 - XAVGC40.29) + ABS(XAVGC50.29 - XAVGC40.29)) / XAVGC40.29 + 19 / 21 * ((ABS(XAVGC20.30 - XAVGC40.30) + ABS(XAVGC50.30 - XAVGC40.30)) / XAVGC40.30 + 19 / 21 * ((ABS(XAVGC20.31 - XAVGC40.31) + ABS(XAVGC50.31 - XAVGC40.31)) / XAVGC40.31 + 19 / 21 * ((ABS(XAVGC20.32 - XAVGC40.32) + ABS(XAVGC50.32 - XAVGC40.32)) / XAVGC40.32 + 19 / 21 * ((ABS(XAVGC20.33 - XAVGC40.33) + ABS(XAVGC50.33 - XAVGC40.33)) / XAVGC40.33 + 19 / 21 * ((ABS(XAVGC20.34 - XAVGC40.34) + ABS(XAVGC50.34 - XAVGC40.34)) / XAVGC40.34 + 19 / 21 * ((ABS(XAVGC20.35 - XAVGC40.35) + ABS(XAVGC50.35 - XAVGC40.35)) / XAVGC40.35 + 19 / 21 * ((ABS(XAVGC20.36 - XAVGC40.36) + ABS(XAVGC50.36 - XAVGC40.36)) / XAVGC40.36 + 19 / 21 * ((ABS(XAVGC20.37 - XAVGC40.37) + ABS(XAVGC50.37 - XAVGC40.37)) / XAVGC40.37 + 19 / 21 * ((ABS(XAVGC20.38 - XAVGC40.38) + ABS(XAVGC50.38 - XAVGC40.38)) / XAVGC40.38 + 19 / 21 * ((ABS(XAVGC20.39 - XAVGC40.39) + ABS(XAVGC50.39 - XAVGC40.39)) / XAVGC40.39 + 19 / 21 * ((ABS(XAVGC20.40 - XAVGC40.40) + ABS(XAVGC50.40 - XAVGC40.40)) / XAVGC40.40 + 19 / 21 * ((ABS(XAVGC20.41 - XAVGC40.41) + ABS(XAVGC50.41 - XAVGC40.41)) / XAVGC40.41 + 19 / 21 * ((ABS(XAVGC20.42 - XAVGC40.42) + ABS(XAVGC50.42 - XAVGC40.42)) / XAVGC40.42 + 19 / 21 * ((ABS(XAVGC20.43 - XAVGC40.43) + ABS(XAVGC50.43 - XAVGC40.43)) / XAVGC40.43 + 19 / 21 * ((ABS(XAVGC20.44 - XAVGC40.44) + ABS(XAVGC50.44 - XAVGC40.44)) / XAVGC40.44 + 19 / 21 * ((ABS(XAVGC20.45 - XAVGC40.45) + ABS(XAVGC50.45 - XAVGC40.45)) / XAVGC40.45 + 19 / 21 * ((ABS(XAVGC20.46 - XAVGC40.46) + ABS(XAVGC50.46 - XAVGC40.46)) / XAVGC40.46 + 19 / 21 * ((ABS(XAVGC20.47 - XAVGC40.47) + ABS(XAVGC50.47 - XAVGC40.47)) / XAVGC40.47 + 19 / 21 * ((ABS(XAVGC20.48 - XAVGC40.48) + ABS(XAVGC50.48 - XAVGC40.48)) / XAVGC40.48 + 19 / 21 * ((ABS(XAVGC20.49 - XAVGC40.49) + ABS(XAVGC50.49 - XAVGC40.49)) / XAVGC40.49 + 19 / 21 * ((ABS(XAVGC20.50 - XAVGC40.50) + ABS(XAVGC50.50 - XAVGC40.50)) / XAVGC40.50 + 19 / 21 * ((ABS(XAVGC20.51 - XAVGC40.51) + ABS(XAVGC50.51 - XAVGC40.51)) / XAVGC40.51 + 19 / 21 * ((ABS(XAVGC20.52 - XAVGC40.52) + ABS(XAVGC50.52 - XAVGC40.52)) / XAVGC40.52 + 19 / 21 * ((ABS(XAVGC20.53 - XAVGC40.53) + ABS(XAVGC50.53 - XAVGC40.53)) / XAVGC40.53 + 19 / 21 * ((ABS(XAVGC20.54 - XAVGC40.54) + ABS(XAVGC50.54 - XAVGC40.54)) / XAVGC40.54 + 19 / 21 * ((ABS(XAVGC20.55 - XAVGC40.55) + ABS(XAVGC50.55 - XAVGC40.55)) / XAVGC40.55 + 19 / 21 * ((ABS(XAVGC20.56 - XAVGC40.56) + ABS(XAVGC50.56 - XAVGC40.56)) / XAVGC40.56 + 19 / 21 * ((ABS(XAVGC20.57 - XAVGC40.57) + ABS(XAVGC50.57 - XAVGC40.57)) / XAVGC40.57 + 19 / 21 * ((ABS(XAVGC20.58 - XAVGC40.58) + ABS(XAVGC50.58 - XAVGC40.58)) / XAVGC40.58 + 19 / 21 * ((ABS(XAVGC20.59 - XAVGC40.59) + ABS(XAVGC50.59 - XAVGC40.59)) / XAVGC40.59 + 19 / 21 * ((ABS(XAVGC20.60 - XAVGC40.60) + ABS(XAVGC50.60 - XAVGC40.60)) / XAVGC40.60 + 19 / 21 * ((ABS(XAVGC20.61 - XAVGC40.61) + ABS(XAVGC50.61 - XAVGC40.61)) / XAVGC40.61 + 19 / 21 * ((ABS(XAVGC20.62 - XAVGC40.62) + ABS(XAVGC50.62 - XAVGC40.62)) / XAVGC40.62 + 19 / 21 * ((ABS(XAVGC20.63 - XAVGC40.63) + ABS(XAVGC50.63 - XAVGC40.63)) / XAVGC40.63 + 19 / 21 * ((ABS(XAVGC20.64 - XAVGC40.64) + ABS(XAVGC50.64 - XAVGC40.64)) / XAVGC40.64 + 19 / 21 * ((ABS(XAVGC20.65 - XAVGC40.65) + ABS(XAVGC50.65 - XAVGC40.65)) / XAVGC40.65 + 19 / 21 * ((ABS(XAVGC20.66 - XAVGC40.66) + ABS(XAVGC50.66 - XAVGC40.66)) / XAVGC40.66 + 19 / 21 * ((ABS(XAVGC20.67 - XAVGC40.67) + ABS(XAVGC50.67 - XAVGC40.67)) / XAVGC40.67 + 19 / 21 * ((ABS(XAVGC20.68 - XAVGC40.68) + ABS(XAVGC50.68 - XAVGC40.68)) / XAVGC40.68 + 19 / 21 * ((ABS(XAVGC20.69 - XAVGC40.69) + ABS(XAVGC50.69 - XAVGC40.69)) / XAVGC40.69)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND (ABS(XAVGC20.1 - XAVGC40.1) + ABS(XAVGC50.1 - XAVGC40.1)) / XAVGC40.1 <= .0953245136006837 * ((ABS(XAVGC20.1 - XAVGC40.1) + ABS(XAVGC50.1 - XAVGC40.1)) / XAVGC40.1 + 19 / 21 * ((ABS(XAVGC20.2 - XAVGC40.2) + ABS(XAVGC50.2 - XAVGC40.2)) / XAVGC40.2 + 19 / 21 * ((ABS(XAVGC20.3 - XAVGC40.3) + ABS(XAVGC50.3 - XAVGC40.3)) / XAVGC40.3 + 19 / 21 * ((ABS(XAVGC20.4 - XAVGC40.4) + ABS(XAVGC50.4 - XAVGC40.4)) / XAVGC40.4 + 19 / 21 * ((ABS(XAVGC20.5 - XAVGC40.5) + ABS(XAVGC50.5 - XAVGC40.5)) / XAVGC40.5 + 19 / 21 * ((ABS(XAVGC20.6 - XAVGC40.6) + ABS(XAVGC50.6 - XAVGC40.6)) / XAVGC40.6 + 19 / 21 * ((ABS(XAVGC20.7 - XAVGC40.7) + ABS(XAVGC50.7 - XAVGC40.7)) / XAVGC40.7 + 19 / 21 * ((ABS(XAVGC20.8 - XAVGC40.8) + ABS(XAVGC50.8 - XAVGC40.8)) / XAVGC40.8 + 19 / 21 * ((ABS(XAVGC20.9 - XAVGC40.9) + ABS(XAVGC50.9 - XAVGC40.9)) / XAVGC40.9 + 19 / 21 * ((ABS(XAVGC20.10 - XAVGC40.10) + ABS(XAVGC50.10 - XAVGC40.10)) / XAVGC40.10 + 19 / 21 * ((ABS(XAVGC20.11 - XAVGC40.11) + ABS(XAVGC50.11 - XAVGC40.11)) / XAVGC40.11 + 19 / 21 * ((ABS(XAVGC20.12 - XAVGC40.12) + ABS(XAVGC50.12 - XAVGC40.12)) / XAVGC40.12 + 19 / 21 * ((ABS(XAVGC20.13 - XAVGC40.13) + ABS(XAVGC50.13 - XAVGC40.13)) / XAVGC40.13 + 19 / 21 * ((ABS(XAVGC20.14 - XAVGC40.14) + ABS(XAVGC50.14 - XAVGC40.14)) / XAVGC40.14 + 19 / 21 * ((ABS(XAVGC20.15 - XAVGC40.15) + ABS(XAVGC50.15 - XAVGC40.15)) / XAVGC40.15 + 19 / 21 * ((ABS(XAVGC20.16 - XAVGC40.16) + ABS(XAVGC50.16 - XAVGC40.16)) / XAVGC40.16 + 19 / 21 * ((ABS(XAVGC20.17 - XAVGC40.17) + ABS(XAVGC50.17 - XAVGC40.17)) / XAVGC40.17 + 19 / 21 * ((ABS(XAVGC20.18 - XAVGC40.18) + ABS(XAVGC50.18 - XAVGC40.18)) / XAVGC40.18 + 19 / 21 * ((ABS(XAVGC20.19 - XAVGC40.19) + ABS(XAVGC50.19 - XAVGC40.19)) / XAVGC40.19 + 19 / 21 * ((ABS(XAVGC20.20 - XAVGC40.20) + ABS(XAVGC50.20 - XAVGC40.20)) / XAVGC40.20 + 19 / 21 * ((ABS(XAVGC20.21 - XAVGC40.21) + ABS(XAVGC50.21 - XAVGC40.21)) / XAVGC40.21 + 19 / 21 * ((ABS(XAVGC20.22 - XAVGC40.22) + ABS(XAVGC50.22 - XAVGC40.22)) / XAVGC40.22 + 19 / 21 * ((ABS(XAVGC20.23 - XAVGC40.23) + ABS(XAVGC50.23 - XAVGC40.23)) / XAVGC40.23 + 19 / 21 * ((ABS(XAVGC20.24 - XAVGC40.24) + ABS(XAVGC50.24 - XAVGC40.24)) / XAVGC40.24 + 19 / 21 * ((ABS(XAVGC20.25 - XAVGC40.25) + ABS(XAVGC50.25 - XAVGC40.25)) / XAVGC40.25 + 19 / 21 * ((ABS(XAVGC20.26 - XAVGC40.26) + ABS(XAVGC50.26 - XAVGC40.26)) / XAVGC40.26 + 19 / 21 * ((ABS(XAVGC20.27 - XAVGC40.27) + ABS(XAVGC50.27 - XAVGC40.27)) / XAVGC40.27 + 19 / 21 * ((ABS(XAVGC20.28 - XAVGC40.28) + ABS(XAVGC50.28 - XAVGC40.28)) / XAVGC40.28 + 19 / 21 * ((ABS(XAVGC20.29 - XAVGC40.29) + ABS(XAVGC50.29 - XAVGC40.29)) / XAVGC40.29 + 19 / 21 * ((ABS(XAVGC20.30 - XAVGC40.30) + ABS(XAVGC50.30 - XAVGC40.30)) / XAVGC40.30 + 19 / 21 * ((ABS(XAVGC20.31 - XAVGC40.31) + ABS(XAVGC50.31 - XAVGC40.31)) / XAVGC40.31 + 19 / 21 * ((ABS(XAVGC20.32 - XAVGC40.32) + ABS(XAVGC50.32 - XAVGC40.32)) / XAVGC40.32 + 19 / 21 * ((ABS(XAVGC20.33 - XAVGC40.33) + ABS(XAVGC50.33 - XAVGC40.33)) / XAVGC40.33 + 19 / 21 * ((ABS(XAVGC20.34 - XAVGC40.34) + ABS(XAVGC50.34 - XAVGC40.34)) / XAVGC40.34 + 19 / 21 * ((ABS(XAVGC20.35 - XAVGC40.35) + ABS(XAVGC50.35 - XAVGC40.35)) / XAVGC40.35 + 19 / 21 * ((ABS(XAVGC20.36 - XAVGC40.36) + ABS(XAVGC50.36 - XAVGC40.36)) / XAVGC40.36 + 19 / 21 * ((ABS(XAVGC20.37 - XAVGC40.37) + ABS(XAVGC50.37 - XAVGC40.37)) / XAVGC40.37 + 19 / 21 * ((ABS(XAVGC20.38 - XAVGC40.38) + ABS(XAVGC50.38 - XAVGC40.38)) / XAVGC40.38 + 19 / 21 * ((ABS(XAVGC20.39 - XAVGC40.39) + ABS(XAVGC50.39 - XAVGC40.39)) / XAVGC40.39 + 19 / 21 * ((ABS(XAVGC20.40 - XAVGC40.40) + ABS(XAVGC50.40 - XAVGC40.40)) / XAVGC40.40 + 19 / 21 * ((ABS(XAVGC20.41 - XAVGC40.41) + ABS(XAVGC50.41 - XAVGC40.41)) / XAVGC40.41 + 19 / 21 * ((ABS(XAVGC20.42 - XAVGC40.42) + ABS(XAVGC50.42 - XAVGC40.42)) / XAVGC40.42 + 19 / 21 * ((ABS(XAVGC20.43 - XAVGC40.43) + ABS(XAVGC50.43 - XAVGC40.43)) / XAVGC40.43 + 19 / 21 * ((ABS(XAVGC20.44 - XAVGC40.44) + ABS(XAVGC50.44 - XAVGC40.44)) / XAVGC40.44 + 19 / 21 * ((ABS(XAVGC20.45 - XAVGC40.45) + ABS(XAVGC50.45 - XAVGC40.45)) / XAVGC40.45 + 19 / 21 * ((ABS(XAVGC20.46 - XAVGC40.46) + ABS(XAVGC50.46 - XAVGC40.46)) / XAVGC40.46 + 19 / 21 * ((ABS(XAVGC20.47 - XAVGC40.47) + ABS(XAVGC50.47 - XAVGC40.47)) / XAVGC40.47 + 19 / 21 * ((ABS(XAVGC20.48 - XAVGC40.48) + ABS(XAVGC50.48 - XAVGC40.48)) / XAVGC40.48 + 19 / 21 * ((ABS(XAVGC20.49 - XAVGC40.49) + ABS(XAVGC50.49 - XAVGC40.49)) / XAVGC40.49 + 19 / 21 * ((ABS(XAVGC20.50 - XAVGC40.50) + ABS(XAVGC50.50 - XAVGC40.50)) / XAVGC40.50 + 19 / 21 * ((ABS(XAVGC20.51 - XAVGC40.51) + ABS(XAVGC50.51 - XAVGC40.51)) / XAVGC40.51 + 19 / 21 * ((ABS(XAVGC20.52 - XAVGC40.52) + ABS(XAVGC50.52 - XAVGC40.52)) / XAVGC40.52 + 19 / 21 * ((ABS(XAVGC20.53 - XAVGC40.53) + ABS(XAVGC50.53 - XAVGC40.53)) / XAVGC40.53 + 19 / 21 * ((ABS(XAVGC20.54 - XAVGC40.54) + ABS(XAVGC50.54 - XAVGC40.54)) / XAVGC40.54 + 19 / 21 * ((ABS(XAVGC20.55 - XAVGC40.55) + ABS(XAVGC50.55 - XAVGC40.55)) / XAVGC40.55 + 19 / 21 * ((ABS(XAVGC20.56 - XAVGC40.56) + ABS(XAVGC50.56 - XAVGC40.56)) / XAVGC40.56 + 19 / 21 * ((ABS(XAVGC20.57 - XAVGC40.57) + ABS(XAVGC50.57 - XAVGC40.57)) / XAVGC40.57 + 19 / 21 * ((ABS(XAVGC20.58 - XAVGC40.58) + ABS(XAVGC50.58 - XAVGC40.58)) / XAVGC40.58 + 19 / 21 * ((ABS(XAVGC20.59 - XAVGC40.59) + ABS(XAVGC50.59 - XAVGC40.59)) / XAVGC40.59 + 19 / 21 * ((ABS(XAVGC20.60 - XAVGC40.60) + ABS(XAVGC50.60 - XAVGC40.60)) / XAVGC40.60 + 19 / 21 * ((ABS(XAVGC20.61 - XAVGC40.61) + ABS(XAVGC50.61 - XAVGC40.61)) / XAVGC40.61 + 19 / 21 * ((ABS(XAVGC20.62 - XAVGC40.62) + ABS(XAVGC50.62 - XAVGC40.62)) / XAVGC40.62 + 19 / 21 * ((ABS(XAVGC20.63 - XAVGC40.63) + ABS(XAVGC50.63 - XAVGC40.63)) / XAVGC40.63 + 19 / 21 * ((ABS(XAVGC20.64 - XAVGC40.64) + ABS(XAVGC50.64 - XAVGC40.64)) / XAVGC40.64 + 19 / 21 * ((ABS(XAVGC20.65 - XAVGC40.65) + ABS(XAVGC50.65 - XAVGC40.65)) / XAVGC40.65 + 19 / 21 * ((ABS(XAVGC20.66 - XAVGC40.66) + ABS(XAVGC50.66 - XAVGC40.66)) / XAVGC40.66 + 19 / 21 * ((ABS(XAVGC20.67 - XAVGC40.67) + ABS(XAVGC50.67 - XAVGC40.67)) / XAVGC40.67 + 19 / 21 * ((ABS(XAVGC20.68 - XAVGC40.68) + ABS(XAVGC50.68 - XAVGC40.68)) / XAVGC40.68 + 19 / 21 * ((ABS(XAVGC20.69 - XAVGC40.69) + ABS(XAVGC50.69 - XAVGC40.69)) / XAVGC40.69 + 19 / 21 * ((ABS(XAVGC20.70 - XAVGC40.70) + ABS(XAVGC50.70 - XAVGC40.70)) / XAVGC40.70))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

Custom Indicator xDn its own EMA20:

(ABS(XAVGC20 - XAVGC40) + ABS(XAVGC50 - XAVGC40)) / XAVGC40 < .0953245136006837 * ((ABS(XAVGC20 - XAVGC40) + ABS(XAVGC50 - XAVGC40)) / XAVGC40.0 + 19 / 21 * ((ABS(XAVGC20.1 - XAVGC40.1) + ABS(XAVGC50.1 - XAVGC40.1)) / XAVGC40.1 + 19 / 21 * ((ABS(XAVGC20.2 - XAVGC40.2) + ABS(XAVGC50.2 - XAVGC40.2)) / XAVGC40.2 + 19 / 21 * ((ABS(XAVGC20.3 - XAVGC40.3) + ABS(XAVGC50.3 - XAVGC40.3)) / XAVGC40.3 + 19 / 21 * ((ABS(XAVGC20.4 - XAVGC40.4) + ABS(XAVGC50.4 - XAVGC40.4)) / XAVGC40.4 + 19 / 21 * ((ABS(XAVGC20.5 - XAVGC40.5) + ABS(XAVGC50.5 - XAVGC40.5)) / XAVGC40.5 + 19 / 21 * ((ABS(XAVGC20.6 - XAVGC40.6) + ABS(XAVGC50.6 - XAVGC40.6)) / XAVGC40.6 + 19 / 21 * ((ABS(XAVGC20.7 - XAVGC40.7) + ABS(XAVGC50.7 - XAVGC40.7)) / XAVGC40.7 + 19 / 21 * ((ABS(XAVGC20.8 - XAVGC40.8) + ABS(XAVGC50.8 - XAVGC40.8)) / XAVGC40.8 + 19 / 21 * ((ABS(XAVGC20.9 - XAVGC40.9) + ABS(XAVGC50.9 - XAVGC40.9)) / XAVGC40.9 + 19 / 21 * ((ABS(XAVGC20.10 - XAVGC40.10) + ABS(XAVGC50.10 - XAVGC40.10)) / XAVGC40.10 + 19 / 21 * ((ABS(XAVGC20.11 - XAVGC40.11) + ABS(XAVGC50.11 - XAVGC40.11)) / XAVGC40.11 + 19 / 21 * ((ABS(XAVGC20.12 - XAVGC40.12) + ABS(XAVGC50.12 - XAVGC40.12)) / XAVGC40.12 + 19 / 21 * ((ABS(XAVGC20.13 - XAVGC40.13) + ABS(XAVGC50.13 - XAVGC40.13)) / XAVGC40.13 + 19 / 21 * ((ABS(XAVGC20.14 - XAVGC40.14) + ABS(XAVGC50.14 - XAVGC40.14)) / XAVGC40.14 + 19 / 21 * ((ABS(XAVGC20.15 - XAVGC40.15) + ABS(XAVGC50.15 - XAVGC40.15)) / XAVGC40.15 + 19 / 21 * ((ABS(XAVGC20.16 - XAVGC40.16) + ABS(XAVGC50.16 - XAVGC40.16)) / XAVGC40.16 + 19 / 21 * ((ABS(XAVGC20.17 - XAVGC40.17) + ABS(XAVGC50.17 - XAVGC40.17)) / XAVGC40.17 + 19 / 21 * ((ABS(XAVGC20.18 - XAVGC40.18) + ABS(XAVGC50.18 - XAVGC40.18)) / XAVGC40.18 + 19 / 21 * ((ABS(XAVGC20.19 - XAVGC40.19) + ABS(XAVGC50.19 - XAVGC40.19)) / XAVGC40.19 + 19 / 21 * ((ABS(XAVGC20.20 - XAVGC40.20) + ABS(XAVGC50.20 - XAVGC40.20)) / XAVGC40.20 + 19 / 21 * ((ABS(XAVGC20.21 - XAVGC40.21) + ABS(XAVGC50.21 - XAVGC40.21)) / XAVGC40.21 + 19 / 21 * ((ABS(XAVGC20.22 - XAVGC40.22) + ABS(XAVGC50.22 - XAVGC40.22)) / XAVGC40.22 + 19 / 21 * ((ABS(XAVGC20.23 - XAVGC40.23) + ABS(XAVGC50.23 - XAVGC40.23)) / XAVGC40.23 + 19 / 21 * ((ABS(XAVGC20.24 - XAVGC40.24) + ABS(XAVGC50.24 - XAVGC40.24)) / XAVGC40.24 + 19 / 21 * ((ABS(XAVGC20.25 - XAVGC40.25) + ABS(XAVGC50.25 - XAVGC40.25)) / XAVGC40.25 + 19 / 21 * ((ABS(XAVGC20.26 - XAVGC40.26) + ABS(XAVGC50.26 - XAVGC40.26)) / XAVGC40.26 + 19 / 21 * ((ABS(XAVGC20.27 - XAVGC40.27) + ABS(XAVGC50.27 - XAVGC40.27)) / XAVGC40.27 + 19 / 21 * ((ABS(XAVGC20.28 - XAVGC40.28) + ABS(XAVGC50.28 - XAVGC40.28)) / XAVGC40.28 + 19 / 21 * ((ABS(XAVGC20.29 - XAVGC40.29) + ABS(XAVGC50.29 - XAVGC40.29)) / XAVGC40.29 + 19 / 21 * ((ABS(XAVGC20.30 - XAVGC40.30) + ABS(XAVGC50.30 - XAVGC40.30)) / XAVGC40.30 + 19 / 21 * ((ABS(XAVGC20.31 - XAVGC40.31) + ABS(XAVGC50.31 - XAVGC40.31)) / XAVGC40.31 + 19 / 21 * ((ABS(XAVGC20.32 - XAVGC40.32) + ABS(XAVGC50.32 - XAVGC40.32)) / XAVGC40.32 + 19 / 21 * ((ABS(XAVGC20.33 - XAVGC40.33) + ABS(XAVGC50.33 - XAVGC40.33)) / XAVGC40.33 + 19 / 21 * ((ABS(XAVGC20.34 - XAVGC40.34) + ABS(XAVGC50.34 - XAVGC40.34)) / XAVGC40.34 + 19 / 21 * ((ABS(XAVGC20.35 - XAVGC40.35) + ABS(XAVGC50.35 - XAVGC40.35)) / XAVGC40.35 + 19 / 21 * ((ABS(XAVGC20.36 - XAVGC40.36) + ABS(XAVGC50.36 - XAVGC40.36)) / XAVGC40.36 + 19 / 21 * ((ABS(XAVGC20.37 - XAVGC40.37) + ABS(XAVGC50.37 - XAVGC40.37)) / XAVGC40.37 + 19 / 21 * ((ABS(XAVGC20.38 - XAVGC40.38) + ABS(XAVGC50.38 - XAVGC40.38)) / XAVGC40.38 + 19 / 21 * ((ABS(XAVGC20.39 - XAVGC40.39) + ABS(XAVGC50.39 - XAVGC40.39)) / XAVGC40.39 + 19 / 21 * ((ABS(XAVGC20.40 - XAVGC40.40) + ABS(XAVGC50.40 - XAVGC40.40)) / XAVGC40.40 + 19 / 21 * ((ABS(XAVGC20.41 - XAVGC40.41) + ABS(XAVGC50.41 - XAVGC40.41)) / XAVGC40.41 + 19 / 21 * ((ABS(XAVGC20.42 - XAVGC40.42) + ABS(XAVGC50.42 - XAVGC40.42)) / XAVGC40.42 + 19 / 21 * ((ABS(XAVGC20.43 - XAVGC40.43) + ABS(XAVGC50.43 - XAVGC40.43)) / XAVGC40.43 + 19 / 21 * ((ABS(XAVGC20.44 - XAVGC40.44) + ABS(XAVGC50.44 - XAVGC40.44)) / XAVGC40.44 + 19 / 21 * ((ABS(XAVGC20.45 - XAVGC40.45) + ABS(XAVGC50.45 - XAVGC40.45)) / XAVGC40.45 + 19 / 21 * ((ABS(XAVGC20.46 - XAVGC40.46) + ABS(XAVGC50.46 - XAVGC40.46)) / XAVGC40.46 + 19 / 21 * ((ABS(XAVGC20.47 - XAVGC40.47) + ABS(XAVGC50.47 - XAVGC40.47)) / XAVGC40.47 + 19 / 21 * ((ABS(XAVGC20.48 - XAVGC40.48) + ABS(XAVGC50.48 - XAVGC40.48)) / XAVGC40.48 + 19 / 21 * ((ABS(XAVGC20.49 - XAVGC40.49) + ABS(XAVGC50.49 - XAVGC40.49)) / XAVGC40.49 + 19 / 21 * ((ABS(XAVGC20.50 - XAVGC40.50) + ABS(XAVGC50.50 - XAVGC40.50)) / XAVGC40.50 + 19 / 21 * ((ABS(XAVGC20.51 - XAVGC40.51) + ABS(XAVGC50.51 - XAVGC40.51)) / XAVGC40.51 + 19 / 21 * ((ABS(XAVGC20.52 - XAVGC40.52) + ABS(XAVGC50.52 - XAVGC40.52)) / XAVGC40.52 + 19 / 21 * ((ABS(XAVGC20.53 - XAVGC40.53) + ABS(XAVGC50.53 - XAVGC40.53)) / XAVGC40.53 + 19 / 21 * ((ABS(XAVGC20.54 - XAVGC40.54) + ABS(XAVGC50.54 - XAVGC40.54)) / XAVGC40.54 + 19 / 21 * ((ABS(XAVGC20.55 - XAVGC40.55) + ABS(XAVGC50.55 - XAVGC40.55)) / XAVGC40.55 + 19 / 21 * ((ABS(XAVGC20.56 - XAVGC40.56) + ABS(XAVGC50.56 - XAVGC40.56)) / XAVGC40.56 + 19 / 21 * ((ABS(XAVGC20.57 - XAVGC40.57) + ABS(XAVGC50.57 - XAVGC40.57)) / XAVGC40.57 + 19 / 21 * ((ABS(XAVGC20.58 - XAVGC40.58) + ABS(XAVGC50.58 - XAVGC40.58)) / XAVGC40.58 + 19 / 21 * ((ABS(XAVGC20.59 - XAVGC40.59) + ABS(XAVGC50.59 - XAVGC40.59)) / XAVGC40.59 + 19 / 21 * ((ABS(XAVGC20.60 - XAVGC40.60) + ABS(XAVGC50.60 - XAVGC40.60)) / XAVGC40.60 + 19 / 21 * ((ABS(XAVGC20.61 - XAVGC40.61) + ABS(XAVGC50.61 - XAVGC40.61)) / XAVGC40.61 + 19 / 21 * ((ABS(XAVGC20.62 - XAVGC40.62) + ABS(XAVGC50.62 - XAVGC40.62)) / XAVGC40.62 + 19 / 21 * ((ABS(XAVGC20.63 - XAVGC40.63) + ABS(XAVGC50.63 - XAVGC40.63)) / XAVGC40.63 + 19 / 21 * ((ABS(XAVGC20.64 - XAVGC40.64) + ABS(XAVGC50.64 - XAVGC40.64)) / XAVGC40.64 + 19 / 21 * ((ABS(XAVGC20.65 - XAVGC40.65) + ABS(XAVGC50.65 - XAVGC40.65)) / XAVGC40.65 + 19 / 21 * ((ABS(XAVGC20.66 - XAVGC40.66) + ABS(XAVGC50.66 - XAVGC40.66)) / XAVGC40.66 + 19 / 21 * ((ABS(XAVGC20.67 - XAVGC40.67) + ABS(XAVGC50.67 - XAVGC40.67)) / XAVGC40.67 + 19 / 21 * ((ABS(XAVGC20.68 - XAVGC40.68) + ABS(XAVGC50.68 - XAVGC40.68)) / XAVGC40.68 + 19 / 21 * ((ABS(XAVGC20.69 - XAVGC40.69) + ABS(XAVGC50.69 - XAVGC40.69)) / XAVGC40.69)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND (ABS(XAVGC20.1 - XAVGC40.1) + ABS(XAVGC50.1 - XAVGC40.1)) / XAVGC40.1 >= .0953245136006837 * ((ABS(XAVGC20.1 - XAVGC40.1) + ABS(XAVGC50.1 - XAVGC40.1)) / XAVGC40.1 + 19 / 21 * ((ABS(XAVGC20.2 - XAVGC40.2) + ABS(XAVGC50.2 - XAVGC40.2)) / XAVGC40.2 + 19 / 21 * ((ABS(XAVGC20.3 - XAVGC40.3) + ABS(XAVGC50.3 - XAVGC40.3)) / XAVGC40.3 + 19 / 21 * ((ABS(XAVGC20.4 - XAVGC40.4) + ABS(XAVGC50.4 - XAVGC40.4)) / XAVGC40.4 + 19 / 21 * ((ABS(XAVGC20.5 - XAVGC40.5) + ABS(XAVGC50.5 - XAVGC40.5)) / XAVGC40.5 + 19 / 21 * ((ABS(XAVGC20.6 - XAVGC40.6) + ABS(XAVGC50.6 - XAVGC40.6)) / XAVGC40.6 + 19 / 21 * ((ABS(XAVGC20.7 - XAVGC40.7) + ABS(XAVGC50.7 - XAVGC40.7)) / XAVGC40.7 + 19 / 21 * ((ABS(XAVGC20.8 - XAVGC40.8) + ABS(XAVGC50.8 - XAVGC40.8)) / XAVGC40.8 + 19 / 21 * ((ABS(XAVGC20.9 - XAVGC40.9) + ABS(XAVGC50.9 - XAVGC40.9)) / XAVGC40.9 + 19 / 21 * ((ABS(XAVGC20.10 - XAVGC40.10) + ABS(XAVGC50.10 - XAVGC40.10)) / XAVGC40.10 + 19 / 21 * ((ABS(XAVGC20.11 - XAVGC40.11) + ABS(XAVGC50.11 - XAVGC40.11)) / XAVGC40.11 + 19 / 21 * ((ABS(XAVGC20.12 - XAVGC40.12) + ABS(XAVGC50.12 - XAVGC40.12)) / XAVGC40.12 + 19 / 21 * ((ABS(XAVGC20.13 - XAVGC40.13) + ABS(XAVGC50.13 - XAVGC40.13)) / XAVGC40.13 + 19 / 21 * ((ABS(XAVGC20.14 - XAVGC40.14) + ABS(XAVGC50.14 - XAVGC40.14)) / XAVGC40.14 + 19 / 21 * ((ABS(XAVGC20.15 - XAVGC40.15) + ABS(XAVGC50.15 - XAVGC40.15)) / XAVGC40.15 + 19 / 21 * ((ABS(XAVGC20.16 - XAVGC40.16) + ABS(XAVGC50.16 - XAVGC40.16)) / XAVGC40.16 + 19 / 21 * ((ABS(XAVGC20.17 - XAVGC40.17) + ABS(XAVGC50.17 - XAVGC40.17)) / XAVGC40.17 + 19 / 21 * ((ABS(XAVGC20.18 - XAVGC40.18) + ABS(XAVGC50.18 - XAVGC40.18)) / XAVGC40.18 + 19 / 21 * ((ABS(XAVGC20.19 - XAVGC40.19) + ABS(XAVGC50.19 - XAVGC40.19)) / XAVGC40.19 + 19 / 21 * ((ABS(XAVGC20.20 - XAVGC40.20) + ABS(XAVGC50.20 - XAVGC40.20)) / XAVGC40.20 + 19 / 21 * ((ABS(XAVGC20.21 - XAVGC40.21) + ABS(XAVGC50.21 - XAVGC40.21)) / XAVGC40.21 + 19 / 21 * ((ABS(XAVGC20.22 - XAVGC40.22) + ABS(XAVGC50.22 - XAVGC40.22)) / XAVGC40.22 + 19 / 21 * ((ABS(XAVGC20.23 - XAVGC40.23) + ABS(XAVGC50.23 - XAVGC40.23)) / XAVGC40.23 + 19 / 21 * ((ABS(XAVGC20.24 - XAVGC40.24) + ABS(XAVGC50.24 - XAVGC40.24)) / XAVGC40.24 + 19 / 21 * ((ABS(XAVGC20.25 - XAVGC40.25) + ABS(XAVGC50.25 - XAVGC40.25)) / XAVGC40.25 + 19 / 21 * ((ABS(XAVGC20.26 - XAVGC40.26) + ABS(XAVGC50.26 - XAVGC40.26)) / XAVGC40.26 + 19 / 21 * ((ABS(XAVGC20.27 - XAVGC40.27) + ABS(XAVGC50.27 - XAVGC40.27)) / XAVGC40.27 + 19 / 21 * ((ABS(XAVGC20.28 - XAVGC40.28) + ABS(XAVGC50.28 - XAVGC40.28)) / XAVGC40.28 + 19 / 21 * ((ABS(XAVGC20.29 - XAVGC40.29) + ABS(XAVGC50.29 - XAVGC40.29)) / XAVGC40.29 + 19 / 21 * ((ABS(XAVGC20.30 - XAVGC40.30) + ABS(XAVGC50.30 - XAVGC40.30)) / XAVGC40.30 + 19 / 21 * ((ABS(XAVGC20.31 - XAVGC40.31) + ABS(XAVGC50.31 - XAVGC40.31)) / XAVGC40.31 + 19 / 21 * ((ABS(XAVGC20.32 - XAVGC40.32) + ABS(XAVGC50.32 - XAVGC40.32)) / XAVGC40.32 + 19 / 21 * ((ABS(XAVGC20.33 - XAVGC40.33) + ABS(XAVGC50.33 - XAVGC40.33)) / XAVGC40.33 + 19 / 21 * ((ABS(XAVGC20.34 - XAVGC40.34) + ABS(XAVGC50.34 - XAVGC40.34)) / XAVGC40.34 + 19 / 21 * ((ABS(XAVGC20.35 - XAVGC40.35) + ABS(XAVGC50.35 - XAVGC40.35)) / XAVGC40.35 + 19 / 21 * ((ABS(XAVGC20.36 - XAVGC40.36) + ABS(XAVGC50.36 - XAVGC40.36)) / XAVGC40.36 + 19 / 21 * ((ABS(XAVGC20.37 - XAVGC40.37) + ABS(XAVGC50.37 - XAVGC40.37)) / XAVGC40.37 + 19 / 21 * ((ABS(XAVGC20.38 - XAVGC40.38) + ABS(XAVGC50.38 - XAVGC40.38)) / XAVGC40.38 + 19 / 21 * ((ABS(XAVGC20.39 - XAVGC40.39) + ABS(XAVGC50.39 - XAVGC40.39)) / XAVGC40.39 + 19 / 21 * ((ABS(XAVGC20.40 - XAVGC40.40) + ABS(XAVGC50.40 - XAVGC40.40)) / XAVGC40.40 + 19 / 21 * ((ABS(XAVGC20.41 - XAVGC40.41) + ABS(XAVGC50.41 - XAVGC40.41)) / XAVGC40.41 + 19 / 21 * ((ABS(XAVGC20.42 - XAVGC40.42) + ABS(XAVGC50.42 - XAVGC40.42)) / XAVGC40.42 + 19 / 21 * ((ABS(XAVGC20.43 - XAVGC40.43) + ABS(XAVGC50.43 - XAVGC40.43)) / XAVGC40.43 + 19 / 21 * ((ABS(XAVGC20.44 - XAVGC40.44) + ABS(XAVGC50.44 - XAVGC40.44)) / XAVGC40.44 + 19 / 21 * ((ABS(XAVGC20.45 - XAVGC40.45) + ABS(XAVGC50.45 - XAVGC40.45)) / XAVGC40.45 + 19 / 21 * ((ABS(XAVGC20.46 - XAVGC40.46) + ABS(XAVGC50.46 - XAVGC40.46)) / XAVGC40.46 + 19 / 21 * ((ABS(XAVGC20.47 - XAVGC40.47) + ABS(XAVGC50.47 - XAVGC40.47)) / XAVGC40.47 + 19 / 21 * ((ABS(XAVGC20.48 - XAVGC40.48) + ABS(XAVGC50.48 - XAVGC40.48)) / XAVGC40.48 + 19 / 21 * ((ABS(XAVGC20.49 - XAVGC40.49) + ABS(XAVGC50.49 - XAVGC40.49)) / XAVGC40.49 + 19 / 21 * ((ABS(XAVGC20.50 - XAVGC40.50) + ABS(XAVGC50.50 - XAVGC40.50)) / XAVGC40.50 + 19 / 21 * ((ABS(XAVGC20.51 - XAVGC40.51) + ABS(XAVGC50.51 - XAVGC40.51)) / XAVGC40.51 + 19 / 21 * ((ABS(XAVGC20.52 - XAVGC40.52) + ABS(XAVGC50.52 - XAVGC40.52)) / XAVGC40.52 + 19 / 21 * ((ABS(XAVGC20.53 - XAVGC40.53) + ABS(XAVGC50.53 - XAVGC40.53)) / XAVGC40.53 + 19 / 21 * ((ABS(XAVGC20.54 - XAVGC40.54) + ABS(XAVGC50.54 - XAVGC40.54)) / XAVGC40.54 + 19 / 21 * ((ABS(XAVGC20.55 - XAVGC40.55) + ABS(XAVGC50.55 - XAVGC40.55)) / XAVGC40.55 + 19 / 21 * ((ABS(XAVGC20.56 - XAVGC40.56) + ABS(XAVGC50.56 - XAVGC40.56)) / XAVGC40.56 + 19 / 21 * ((ABS(XAVGC20.57 - XAVGC40.57) + ABS(XAVGC50.57 - XAVGC40.57)) / XAVGC40.57 + 19 / 21 * ((ABS(XAVGC20.58 - XAVGC40.58) + ABS(XAVGC50.58 - XAVGC40.58)) / XAVGC40.58 + 19 / 21 * ((ABS(XAVGC20.59 - XAVGC40.59) + ABS(XAVGC50.59 - XAVGC40.59)) / XAVGC40.59 + 19 / 21 * ((ABS(XAVGC20.60 - XAVGC40.60) + ABS(XAVGC50.60 - XAVGC40.60)) / XAVGC40.60 + 19 / 21 * ((ABS(XAVGC20.61 - XAVGC40.61) + ABS(XAVGC50.61 - XAVGC40.61)) / XAVGC40.61 + 19 / 21 * ((ABS(XAVGC20.62 - XAVGC40.62) + ABS(XAVGC50.62 - XAVGC40.62)) / XAVGC40.62 + 19 / 21 * ((ABS(XAVGC20.63 - XAVGC40.63) + ABS(XAVGC50.63 - XAVGC40.63)) / XAVGC40.63 + 19 / 21 * ((ABS(XAVGC20.64 - XAVGC40.64) + ABS(XAVGC50.64 - XAVGC40.64)) / XAVGC40.64 + 19 / 21 * ((ABS(XAVGC20.65 - XAVGC40.65) + ABS(XAVGC50.65 - XAVGC40.65)) / XAVGC40.65 + 19 / 21 * ((ABS(XAVGC20.66 - XAVGC40.66) + ABS(XAVGC50.66 - XAVGC40.66)) / XAVGC40.66 + 19 / 21 * ((ABS(XAVGC20.67 - XAVGC40.67) + ABS(XAVGC50.67 - XAVGC40.67)) / XAVGC40.67 + 19 / 21 * ((ABS(XAVGC20.68 - XAVGC40.68) + ABS(XAVGC50.68 - XAVGC40.68)) / XAVGC40.68 + 19 / 21 * ((ABS(XAVGC20.69 - XAVGC40.69) + ABS(XAVGC50.69 - XAVGC40.69)) / XAVGC40.69 + 19 / 21 * ((ABS(XAVGC20.70 - XAVGC40.70) + ABS(XAVGC50.70 - XAVGC40.70)) / XAVGC40.70))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

You may wish to review the following:

How to create a Personal Criteria Forumula (PCF)
Cascades of Moving Averages
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
investit
Posted : Thursday, August 20, 2009 4:50:21 PM
Gold Customer Gold Customer

Joined: 7/13/2007
Posts: 28
Thanks Bruce,
         The PCF's work great in identifying the crossovers
                                                                                                                                              Marty
Bruce_L
Posted : Thursday, August 20, 2009 5:03:39 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.