Reply To: TimeSinceSignal formulas

Optuma Forums Optuma Scripting TimeSinceSignal formulas Reply To: TimeSinceSignal formulas

#58337
DarrenDarren
  • Topics: 63
  • Replies: 557
  • Posts: 620

Hi Dean,

I think the issue is that you may be counting since the condition was last true – not how long it has been true, hence the zeroes for those where currently true. It’s a bit confusing, but instead you need to count how long it’s been since the condition was last false. Remember that a value of 1 is true and 0 is false, so this will show how long it has been true by counting the days since it was false:

This list of FTSE100 stocks shows when the V1 condition is true in blue on the chart, with the green showing the time counts. So OCDO has been positive for 51 days, whereas the ADX False column shows how long it has been false (in other words how long since it’s been true) i.e. 28 days for NG. Hope that makes sense!

Capture

  • This reply was modified 9 months, 1 week ago by DarrenDarren.
1 user thanked author for this post.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close