Checking conditions in the past?
Author: ZDavid
Creation Date: 4/13/2009 6:03 PM
profile picture

ZDavid

#1
I want to execute a trade based on a set of current conditions, only if certain other conditions have occurred in the past x bars.

Is there a more efficient way of doing this than continually accessing/updating lists of data?
profile picture

Eugene

#2
Maybe you're looking for a way to set up a timeout condition?

WealthScript Techniques | Setups, Triggers, Delays, and Timeouts
profile picture

ZDavid

#3
Thanks Eugene, I was actually just overlooking a more complex lookback. Everything is starting to come back to me now that I'm trying to use only code, it's been a few years since c++, but this environment is gorgeous to work in.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).