Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I've got a list of FOMC dates in an array that I can reference. What I would like to do is backtest some strategies by buying "X" number of trading days before the FOMC date. The problem I run into is something like this most recent FOMC date of "1220615".
If I'm trying to buy 3 trading days prior, that would be the 10th (1220610), but adding 3 to the date doesn't work as the next dates go from "1220613" to "1220616" skipping "1220615".
I know this can be done as I've seen traders backtest this strategy.
Since TS/EL goes bar by bar, how can I get the Date of "X" bars (in this case 3) in the future?
Or is there a better way to handle this?
(FYI I'm still pretty new to EL programing)
Can you help answer these questions from other members on NexusFi?