Skip to content
Prev 6916 / 15274 Next

How to calculate Trading Days

Hi Noah,

checkout library (timeDate), especially the fns timeSequence, 
isBizday,holidayNYSE.
- Define a calendar for your exchange (use an available one as a 
template, e.g. holidayNYSE)
- define a sequence of days with  timeSequence
- subindex the sequence with isBizday using your calendar as an argument
- count the length of this result

Best
Dan




Am 07.11.2010 19:02, schrieb Noah Silverman: