Registered User Joined: 1/9/2017 Posts: 13
|
Hello folks
what is the pcf for 18EMA bounce on the last 2 bar? But I need those bars to be a pullbacks!
THanks
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I probably am not understanding the question, but if you mean the price bar was completely above the moving average 3 bars ago, moved down and intersected or dropped below the moving average during the next two bars with the current price bar completely above the moving average during the current bar.
L > XAVGC18 AND (L1 <= XAVGC18.1 OR L2 <= XAVGC18.2) AND MINC2.1 < C3 AND L3 > XAVGC18.3
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 1/9/2017 Posts: 13
|
Hi Bruce,
Thanks for you response and I am sorry I confused you. What I need is
XAVGC18 to be "testing" the tale of the last 2 bars (XAVGC18 to be between the L and O ( when O<C) and XAVGC18 to be between L and C (when O>C))
Thanks
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Just the testing part for both bars without any check for pullback could be written as follows in TC2000 v17.
L <= XAVGC18 AND XAVGC18 <= LEAST(O, C) AND L1 <= XAVGC18.1 AND XAVGC18.1 <= LEAST(O1, C1)
As far as a pullback goes, you could check for the close of both bars to be below the close of the bar before that:
L <= XAVGC18 AND XAVGC18 <= LEAST(O, C) AND L1 <= XAVGC18.1 AND XAVGC18.1 <= LEAST(O1, C1) AND MAXC2 < C2
Or for the low of 2 bars back to be above the moving average.
L <= XAVGC18 AND XAVGC18 <= LEAST(O, C) AND L1 <= XAVGC18.1 AND XAVGC18.1 <= LEAST(O1, C1) AND XAVGC18.2 < L2
Or a variety of other things (but we would have to decide on how the pullback is defined).
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 1/9/2017 Posts: 13
|
Awesome
I appreciate your help Bruce
Thank you
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|