This repository has been archived by the owner on Nov 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sim.sh
133 lines (123 loc) · 2.52 KB
/
sim.sh
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#!/bin/bash
function mongo_start() {
mongod --fork --logpath /var/log/mongod.log
}
function mongo_exit() {
mongo --eval "db.getSiblingDB('admin').shutdownServer()"
}
function back() {
./zenbot.sh backfill binance.$1-USDT --days 40
}
function sim() {
./zenbot.sh sim \
binance.$2-USDT \
--days 30 \
--strategy $3 \
--use_fee_asset BNB \
--buy_pct $1 \
--profit_stop_enable_pct $4 \
--profit_stop_pct $5 \
--sell_stop_pct $5 \
--currency_capital 2000 \
--filename /data/db/$2-$1-$3-$4-$5.html --non_interactive
}
function sim2() {
./zenbot.sh sim \
binance.$2-USDT \
--days 30 \
--strategy $3 \
--use_fee_asset BNB \
--buy_pct $1 \
--currency_capital 2000 \
--filename /data/db/$2-$1-$3.html --non_interactive
}
function sim21() {
./zenbot.sh sim \
binance.$2-USDT \
--days 30 \
--strategy $3 \
--use_fee_asset BNB \
--currency_capital 100 \
--filename /data/db/100-$2-$1-$3.html --non_interactive
}
function sim3() {
./zenbot.sh sim \
binance.$2-USDT \
--days 40 \
--strategy $3 \
--use_fee_asset BNB \
--buy_pct $1 \
--profit_stop_enable_pct 10 \
--profit_stop_pct 4 \
--sell_stop_pct 4 \
--currency_capital 2000 \
--filename /data/db/n3-$2-$1-$3.html --non_interactive
}
function sim31() {
./zenbot.sh sim \
binance.$2-USDT \
--days 40 \
--strategy $3 \
--use_fee_asset BNB \
--currency_capital 100 \
--profit_stop_enable_pct 10 \
--profit_stop_pct 4 \
--sell_stop_pct 4 \
--filename /data/db/n3-100-$2-$1-$3.html --non_interactive
}
function simTypes() {
sim3 10 BTT $1
sim3 10 BTC $1
sim31 99 BTT $1
sim31 99 BTC $1
}
function all() {
simTypes bollinger
simTypes cci_srsi
simTypes crossover_vwap
simTypes dema
simTypes ehlers_ft
simTypes ehlers_mama
simTypes ehlers_trend
simTypes ichimoku
simTypes ichimoku_score
simTypes kc
simTypes macd
simTypes momentum
simTypes multi
simTypes neural
simTypes noop
simTypes pivot
simTypes renko
simTypes rsi
simTypes sar
simTypes speed
simTypes srsi_macd
# simTypes stddev // travou
simTypes ta_ema
simTypes ta_macd
simTypes ta_macd_ext
simTypes ta_ppo
simTypes ta_srsi_bollinger
simTypes ta_stoch_bollinger
simTypes ta_trix
simTypes ta_ultosc
simTypes ti_bollinger
simTypes ti_hma
simTypes ti_stoch
simTypes ti_stoch_bollinger
simTypes trend_bollinger
simTypes trend_ema
simTypes trendline
simTypes trust_distrust
simTypes vpt
simTypes wavetrend
}
function main() {
mongo_start
back BTT
back BTC
all
mongo_exit
}
main