forked from r-kan/Quant-in-R
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstock_eval.R
More file actions
24 lines (20 loc) · 794 Bytes
/
stock_eval.R
File metadata and controls
24 lines (20 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Evaluation function of a given stock id
source('eval_util.R')
evaluate_stock <- function(id, update_progress=NULL)
{
dprint(paste0('[stock_eval] evaluate_stock with ', id))
stopifnot(class(id) == 'character')
return (evaluate(function(dummy_input){return (id)}, id, update_progress=update_progress))
#id_list = c('2303', '2002', '1101', '2891', '2408', '2884', '9904', '1326', '2474', '1303', '2330')
#return (evaluate(function(dummy_input){return (id_list)}, "test_stock_group"))
}
evaluate_stock_pair_relative <- function(id1, id2)
{
evaluate_pair_relative(stock_id_closure(id1), id1,
stock_id_closure(id2), id2)
}
evaluate_stock_pair <- function(id1, id2)
{
evaluate_pair(stock_id_closure(id1), id1,
stock_id_closure(id2), id2)
}