forked from yura505/robinbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf-sample.js
47 lines (37 loc) · 1.39 KB
/
conf-sample.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
var c = module.exports = { }
// maximum pertfolio allocation per possition (7%)
c.POSITION_SIZING = 0.07;
// maximum loss of whole portfolio per position (0.5%)
c.MAX_LOSS_THRESHOLD = 0.005;
// trailing stop mode (none, max, atr, sar)
c.trailing_stop = "max";
// market breadth impact (true / false)
// true:
// - sell everything if market fall down
// - don't buy anything if market is weak
// - buy only in strong up market directon
// false: no not impact market breadth on trades.
c.market_breadth = false;
// earnings announcements impact (true / fasle)
// true: sell shares at the day before earnings report
// false: take risk and keep shares overnight
c.earnings_announcements = true;
// relative strength priority for portfolio allocation (m1, m3, m6, off)
// m1: prioritize stocks by 1 month return
// m3: prioritize stocks by 3 month return
// m6: prioritize stocks by 6 month return
// off: do not prioritize any stocks
c.rsa_priority = "m6";
// obtain token from www.quandl.com (free), need for market analysis
c.quandl_token = "";
// Robinhood credentials
c.robinhood_credentials = {
username: '',
password: ''
};
// List of securities to trade
c.list = ["AMZN","NVDA","HP","MU","ADBE","PXD","TROW","STI","BABA","VGT","PLNT","CBOE","FDX",
"FFTY","RHT","QQQ","UGA","SMH","DIA","SPY","LIT","IWM","XLF","XBI","XLV","IBB"];
// backtest
c.backtest = { }
c.backtest.cash = 10000