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)
Hello,
I saw code for this somewhere, and can't find it again via searching through Google or the Ninja boards.
I'd like to backtest a strategy that iterates through all 24 hours of the day (ES futures) but will only enter a trade between 8:30 am and 4:15pm (or thereabouts).
If I recall, it only took 1 line of code to do this. Anyone have this or know how to construct it?
Thanks!
blenderking
Can you help answer these questions from other members on NexusFi?
Where 070000 = 7am, 0 minutes, 0 seconds, and where 151500 = 3pm, 15 minutes, 0 seconds. If the time is before or after that, the script will return (not execute).
My back test results are skewed (screwed) because I haven't been able to limit the times, until now. Given that I know jack squat about C#, where do I put this line in the code? I think I already know the answer but here goes. In order to add this line I have to "unlock" the code in NT strategy, correct?. For some reason NT won't let me go back to point & click after I do this, Why? I need to add your line of code at the end of writing my strategy because of this.