Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

18 test the last 2 intervals Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Boyko
Posted : Thursday, February 9, 2017 2:09:09 PM
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

Bruce_L
Posted : Friday, February 10, 2017 10:39:47 AM


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
Boyko
Posted : Friday, February 10, 2017 12:59:29 PM
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 "testingthe 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

Bruce_L
Posted : Friday, February 10, 2017 1:14:39 PM


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
Boyko
Posted : Friday, February 10, 2017 1:56:59 PM
Registered User
Joined: 1/9/2017
Posts: 13

Awesome

I appreciate your help Bruce

Thank you

Bruce_L
Posted : Friday, February 10, 2017 2:03:25 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.