How to program 'increasing X days'

StrataSearch has many powerful features, with many techniques and approaches to explore. Here we discuss the things we've done, and the things we'd like to do.

Re: How to program 'increasing X days'

Postby Overload » Tue Apr 01, 2014 8:46 am

The formula you're looking for is probably HadAlert(), which identies how many times an expression was TRUE over the past n days. So your formula might look like this:

HadAlert(decreasing(mom(close, 12)), 2) = 2

The above will trigger if the momentum(12) has been decreasing for 2 days in a row.

Pete
Overload
 
Posts: 2248
Joined: Wed Nov 30, 2005 12:14 pm

Return to General Discussion

cron