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)
Thanks but do you know how to deal with the trading day counter?
I can call a particular month as month of January = 1 but
then on counting the trading days from the beginning of the month to the end is where I have an issue!
Print doesn't because the counter does not work, if I enter 1 as in first trading day it gives me results for trading every day for a particular month entering 2 would give me 0 trades.
the counter works, the problem is that you reset the counter variable to 0 on every code computation. That's why I suggested using print, so you can see the values that your code computes.
I am not aware of any publicly available functions besides the week function you pointed out.
If you found an error with it, I would suggest reporting it to Multicharts so they can fix it.
you might also want to check your data and code. I am getting a result of 12 for the week on March 19th using daily MSFT data and just plotting Week(Date).