Liking cljdoc? Tell your friends :D

clojure-backtesting.counter


dateclj

source

date-after-n-trading-daysclj

(date-after-n-trading-days date n)

The date n trading days after date in the dataset, or the dataset's last date if fewer than n remain.

The date n trading days after `date` in the dataset, or the dataset's
last date if fewer than n remain.
sourceraw docstring

get-dateclj

(get-date)
source

get-next-dateclj

(get-next-date)

Returns the next date without actually moving the counter.

Returns the next date without actually moving the counter.
sourceraw docstring

get-prev-n-dateclj

(get-prev-n-date n)

Returns the date of the previous n valid days.

E.g. prev 1 of 1973-02-04 may be 1973-02-03 or 1973-02-02 or even 1973-02-01.

Returns the date of the previous n valid days.

E.g. prev 1 of 1973-02-04 may be 1973-02-03 or 1973-02-02 or even 1973-02-01.
sourceraw docstring

init-dateclj

(init-date _date)

Initialize the current date as input date.

If the input not in dataset, will go to the closest smaller date (if any, otherwise closest larger date).

Return the resultant date.

Initialize the current date as input date.

If the input not in dataset, will go to the closest smaller date (if any, otherwise closest larger date).

Return the resultant date.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close