Use a streak calculation, like the one Larry Connors uses in his Connors RSI.
On Thu, Oct 22, 2015 at 1:41 PM, Gambulator Gambulator <gambula...@gmail.com > wrote: > Hi All > > I want to prevent another buy signal to be triggered if it was just active > within the past X days. For example, if I always buy on Monday and exit on > Tuesday, but I only want to do this every other week. Is there a way to > tell if this signal was active within the past 5 business days already so > it won't be triggered this week but it will be triggered next week since it > has been 5 days ? > > thanks > > [[alternative HTML version deleted]] > > _______________________________________________ > R-SIG-Finance@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-sig-finance > -- Subscriber-posting only. If you want to post, subscribe first. > -- Also note that this is not the r-help list where general R questions > should go. > [[alternative HTML version deleted]] _______________________________________________ R-SIG-Finance@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-finance -- Subscriber-posting only. If you want to post, subscribe first. -- Also note that this is not the r-help list where general R questions should go.