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)
Yeah the goal is to avoid daybreaks to move back in time only for real trading sessions.
I did not look at your sessionPivots indicator yet (actually, just a bit and it is very complete) but it seems to me that cory with his "ADR_cory" indicator already programmed that.
Now, I'll have to dig into it enough because it's not sweet candy for my brain.
So in OnBarUpdate() I just use "Now" and it'll work for backtesting and real-time trading. For example, if I want to only trade between 9:30 am (930) and 1:15 pm (1315)
Or, if I do NOT want to trade between 10:15 and 10:45 every Wednesday because of oil inventory reports I would
you read it from a programmer stand point. My comment is for a regular user when they want 5 days back they may not realize there is no data on Sat. and depending on the session time they may not even have data on Sun. Thus 5 days to them could be = 3 days with data.
So could you be able to exclude non data days ? i.e. if it is set to 5, then take the last 5 sessions with data (skipping holidays, weekends, etc)
If you have the code for this by hand easily, I'd be really grateful if you can isolate it and share it. It's not that easy to navigate through someone else's code.
This way I can finish an idea of an overall indicator framing volatility (I have 2-3 ideas to include)