Hi
is there a function to know the close one year before?
ex today : 30 /06/2016 one year before 30/06/2015
thank you
Nuno
CLOSE ONE YEAR BEFORE [SOLVED]
-
- Posts: 174
- Joined: 31 Jan 2006
- Has thanked: 74 times
- Been thanked: 5 times
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: CLOSE ONE YEAR BEFORE
Hello Nuno,
Do you want to know the price values of a bar with the same Day and Month but 1 year before current?
What is your chart resolution?
Do you want to know the price values of a bar with the same Day and Month but 1 year before current?
What is your chart resolution?
-
- Posts: 174
- Joined: 31 Jan 2006
- Has thanked: 74 times
- Been thanked: 5 times
Re: CLOSE ONE YEAR BEFORE
yes, i want to know the price values of a bar with the same Day and Month but 1 year before current
This is a daily chart
This is a daily chart
- TJ
- Posts: 7752
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1034 times
- Been thanked: 2228 times
Re: CLOSE ONE YEAR BEFORE
yes, i want to know the price values of a bar with the same Day and Month but 1 year before current
This is a daily chart
What if the day is a holiday or weekend?
Should it return "zero"?
-
- Posts: 174
- Joined: 31 Jan 2006
- Has thanked: 74 times
- Been thanked: 5 times
Re: CLOSE ONE YEAR BEFORE
is it possible to have the day after 1 year if the day is a holiday?
is it much easy to have the close mini 365 days before?
is it much easy to have the close mini 365 days before?
- TJ
- Posts: 7752
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1034 times
- Been thanked: 2228 times
Re: CLOSE ONE YEAR BEFORE
is it possible to have the day after 1 year if the day is a holiday?
is it much easy to have the close mini 365 days before?
What if that is a Saturday? and the day after is a Sunday?
In the case of a long weekend, the Monday is a holiday.
In the case of Easter, Friday, Saturday and Sunday are non-trading days.
For some markets, the Easter Monday is a day off as well.
You have to think your question through.
The easiest method is to estimate the number of trading days in a year.
eg if there are 250 trading days in a year,
then the close of 250 days prior would be:
Close[250]
-
- Posts: 174
- Joined: 31 Jan 2006
- Has thanked: 74 times
- Been thanked: 5 times