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)
first day of the week/month - requesting last day of the week/month
If it can help anybody, here are bits of code to detect first day of month and more complicated, first day of week, isolating holidays and misc. session closed.
in declarations don't forget
month
week
I'd like to know if you guys have a trick to detect this time, the LAST day of the week/month (excluding sessions closed, holidays, weekends), which is more trouble...
Why ? because I like to display my pivots as soon as I've got the close of the last day, in order to think about the potential trades for upcoming week or month.
Thanks already
Can you help answer these questions from other members on NexusFi?
Here is a method from the pivot indicator, for a DateTime time it returns the last day of the week and the last day of the month.
If you want to add holidays, you need an array which contains all relevant holiday dates. May I point again to the SessionPivots indicator for NT7. I had exactly the same problems.
The following 3 users say Thank You to Fat Tails for this post: