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

Days back and kludge Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
0002ct
Posted : Friday, August 24, 2018 4:12:20 PM
Registered User
Joined: 11/19/2015
Posts: 459

Hello.

1. What's the correct formula for counting the days back since an event has occurred? In an example, since a cross above EMA100?

2. Is there any kludge formula for outputting a "true" check for a selected ticker? Let's say I have a watchlist of 20 stocks. One of these stocks is "held by my uncle" and I want to track that piece of information with a "true check". Is there any tricky way to do this?

Thank you very much.

Bruce_L
Posted : Friday, August 24, 2018 4:52:26 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You can use the SinceTrue() function for this.

SinceTrue(XUP(C, XAVGC100), 50)

This checks the most recent 50 bars, returns between zero and (period - 1) if the cross did happen and returns -1 if the cross didn't happen within this period of time.

Sometimes it might make more sense to return between zero and period with period happening if the cross didn't happen (instead of -1). If so, you could use the following structure instead.

TrueInRow(NOT(XUP(C, XAVGC100)), 50)

Other than the flag feature, I really can't think of a kludge to indicate a symbol is held by my uncle.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
0002ct
Posted : Friday, August 24, 2018 9:58:17 PM
Registered User
Joined: 11/19/2015
Posts: 459

Hi, Bruce. Hope all is well, and thank you very much. Sorry for my late reply.

Thank you for the solutions to part A. I think for part B, simply get to know your uncle better. Take him out for coffee or miniature golf. He'll probably offer a tip or two. I don't know, just spitballing here.

Enjoy the weekend. Thanks again.

Bruce_L
Posted : Monday, August 27, 2018 9:35:37 AM


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.