PDA

View Full Version : Time since condition was met


333333
06-19-2008, 04:28 PM
Any way to use the condition builder to check whether a specific condition has been met at some point over the last X number of days?

My understanding is that you can easily check for a condition a certain number of days (or bars) ago....but is there something that will check the entire period from a certain number of days (or bars) ago?

Thanks in advance.

NinjaTrader_Ray
06-19-2008, 04:34 PM
Unfortunately not in the wizard, although this is supported programatically.

333333
06-20-2008, 08:27 AM
Thanks NinjaTrader_Ray,

Any way I can request this as a condition builder enhancement....seems like it would be fairly straightforward to and extremely useful to a lot of people/strategies.

I'll look into the programatic solution.

Thanks again.

NinjaTrader_Ray
06-20-2008, 08:35 AM
Thanks for the suggestion.

raz0rback
06-23-2008, 04:02 AM
Hi 3

I would suggest firing up the wizard, generate the template, then edit the code.

Use the MRO function to check if a condition was true within a certain period.

Read the help file to see how to do it.

Cheers