Commit Graph

349 Commits

Author SHA1 Message Date
fc0aa80a2e Change tema value 2024-03-31 04:58:32 +09:00
Sik
4c4d947b99 Add filtering delist trades (#5)
Co-authored-by: Sik Yoon <younxxxx@gmail.com>
Reviewed-on: http://192.168.1.100:3000/Sik/tradingbot/pulls/5
2024-03-30 19:10:20 +00:00
e4d19b7d48 Limit buy price 2024-03-28 23:54:54 +09:00
3193cfac5f Change filtering 2024-03-28 01:17:29 +09:00
f62078793e Change criteria price with open price 2024-03-28 00:57:10 +09:00
6835b9cfa6 Change filtering orders 2024-03-28 00:32:48 +09:00
cb37d0b39b New strategist 2024-03-27 01:40:22 +09:00
51e08a5fa1 Implement debug 2024-03-24 22:44:02 +09:00
1da5e57e94 Change filtering method 2024-03-24 22:42:29 +09:00
a556d90f71 Add connection close 2024-03-24 21:53:39 +09:00
b587809813 Add new filtering 2024-03-24 06:18:54 +09:00
e7c2d63102 Delete debug code 2024-03-24 06:11:05 +09:00
4a323815c8 New tema indicator 2024-03-24 06:04:15 +09:00
a6e610f02c Delete unnecessary code 2024-03-24 05:37:34 +09:00
e149cdc2eb Complete debugging dema 2024-03-24 05:34:00 +09:00
2108b42b6c Debug dema 2024-03-24 05:28:08 +09:00
44e495915e Debug dema eample 2024-03-24 04:56:07 +09:00
249db79a3d New dema function 2024-03-24 04:51:00 +09:00
c86007eb80 Fix error of index bound 2024-03-23 23:47:56 +09:00
725bcec59c Fix bound condition 2024-03-12 13:03:25 +09:00
00646370ab Fix typo 2024-03-12 02:52:33 +09:00
5799fa5bb7 New strategy 2024-03-12 02:50:54 +09:00
c2698851ed Redifine target profit percent 2024-03-12 02:11:05 +09:00
b95a194e84 Fix calculation of amplitude 2024-03-12 00:51:45 +09:00
bd24ffe455 More detail filtering 2024-03-10 22:41:22 +09:00
857763f69e New selling filtering 2024-03-10 22:22:36 +09:00
3e7690d998 Change filtering 2024-02-27 23:11:02 +09:00
6c32e12cab Keep transaction time information 2024-02-25 02:42:15 +09:00
50ccd6e8a8 Fix overflow reference 2024-02-23 01:19:35 +09:00
c768807acc Change filtering 2024-02-22 02:10:33 +09:00
c26d132e71 Change filtering 2024-02-22 02:01:51 +09:00
ec217f8a9a Off rest strategies 2024-02-09 07:37:52 +09:00
5bad09b955 New selling filtering 2024-02-09 07:35:12 +09:00
f9f5cc53b7 New sell filtering 2024-02-08 01:07:53 +09:00
c0c2aba90e Fix wrong registerer number 2024-02-07 23:34:38 +09:00
aca2335b8e Fix wrong reference of index 2024-02-07 23:28:54 +09:00
8010c23f20 New strategy 2024-02-04 01:48:48 +09:00
Sik
a247ee63f0 Add log level and input argument (#4)
Co-authored-by: Sik Yoon <younxxxx@gmail.com>
Reviewed-on: http://siknas.duckdns.org:3000/Sik/tradingbot/pulls/4
2024-02-03 16:28:14 +00:00
0ef2d381da Fix refer wrong index 2024-02-03 20:06:13 +09:00
Sik
223c6760c1 Replace Vec with HashMap (#3)
All vec operation was replaced with HashMap.

Increase outstanding performance.

Co-authored-by: Sik Yoon <younxxxx@gmail.com>
Reviewed-on: http://192.168.1.100:3000/Sik/tradingbot/pulls/3
2024-01-29 16:03:04 +00:00
6adf6cab88 Delete unnecessary code 2024-01-15 23:03:00 +09:00
bae51ccaae Add filtering 2024-01-14 18:40:10 +09:00
53f53a1af1 Disable threading 2024-01-14 18:02:29 +09:00
2d82a17f0e Delete unnecessary threading 2024-01-13 19:50:35 +09:00
830be77c03 Fix wrong selling 2024-01-13 19:45:54 +09:00
61844671ba Delete unnecessary threading 2024-01-13 19:36:30 +09:00
bcdb693049 Delete unnecassary threading 2024-01-13 19:25:08 +09:00
5582fba946 Delete unnecessary threading 2024-01-13 19:03:00 +09:00
47e54ed9cc Delete unnecessary threading 2024-01-13 18:36:39 +09:00
ec4ea20d84 Rollback threading 2024-01-13 17:14:09 +09:00
f548c0b63c Rollback sleep timer 2024-01-13 17:11:08 +09:00
8b86a49fc4 Move filtering 2024-01-13 17:09:38 +09:00
1a35cf73d4 Disable threading 2024-01-13 16:10:54 +09:00
f3725d3cd7 Add filtering 2024-01-13 16:10:38 +09:00
d7e8de337a Increase sleep time 2024-01-13 15:58:29 +09:00
c6758549f9 New filtering 2024-01-13 04:19:47 +09:00
886ee5bbee Delete unnecessary operation 2024-01-13 04:18:32 +09:00
dd234f2448 New filtering 2024-01-13 04:17:56 +09:00
f0bf95e218 Increase unit trade usdt 2024-01-08 20:12:43 +09:00
ae12688b5f Change filtering 2024-01-08 20:09:19 +09:00
53c74828b4 DIsable Filtering 2024-01-08 00:07:25 +09:00
9a863b82f9 Add filtering 2024-01-07 19:35:13 +09:00
a1dbccb1bb Add filtering 2024-01-07 18:12:41 +09:00
0b8b8bce04 Change filtering 2024-01-07 17:55:22 +09:00
bbc30cd242 Rollback sell_count 2024-01-07 04:25:50 +09:00
1c4b922752 Fix panic 2024-01-07 04:18:42 +09:00
e3369c5cfa Fix wrong filtering 2024-01-07 03:14:45 +09:00
36aba8b864 Add buy and sell of strategy 003 2024-01-07 02:54:10 +09:00
959f3022a0 Add strategy 003 2024-01-07 02:46:16 +09:00
a00cc601c7 Add indicators using opclo price 2024-01-07 01:04:34 +09:00
c6dd992e86 Change filtering 2024-01-03 23:58:49 +09:00
774e4fab25 Change filtering 2024-01-03 00:47:46 +09:00
d4767af7de Fix wrong registerer number 2024-01-01 18:48:25 +09:00
f023ac22c8 New strategy_004 2024-01-01 18:15:26 +09:00
e3b6f9e293 Implement thread 2024-01-01 13:36:06 +09:00
f4435da178 Change input parameters 2024-01-01 12:59:11 +09:00
ba4629f5e4 Simplify code 2024-01-01 12:53:57 +09:00
43b0423d30 Move thread task starting point 2024-01-01 12:49:25 +09:00
c0344961bf Change input pamaneters 2024-01-01 12:36:53 +09:00
5858b97667 Change filtering 2023-12-31 19:35:15 +09:00
d559e51c25 Change MACD calculation 2023-12-31 19:04:38 +09:00
662d531bbd Change filtering 2023-12-29 03:08:59 +09:00
53512aa57c Change parameters for REAL 2023-12-25 21:06:42 +09:00
e4664c119a Add filtering 2023-12-25 21:00:59 +09:00
957c5e5a7d Fix typo 2023-12-18 13:01:58 +09:00
3bfea6663b Add verifying the latest rt candle 2023-12-18 04:33:16 +09:00
115c7fda72 Add strategy005, 006 2023-12-18 04:11:12 +09:00
08ef3cf59a Rollback strategist004 2023-12-18 02:36:51 +09:00
c66c24ff81 Fix typo 2023-12-18 02:25:47 +09:00
832ebd76fb Fix wrong calculation 2023-12-18 01:53:21 +09:00
b09edb9796 Change code to test 2023-12-18 01:20:31 +09:00
aca9eff415 Add strategy_test 2023-12-18 01:17:05 +09:00
17dd137abf Add ADX indicator 2023-12-18 00:39:35 +09:00
73a968b839 Add filtering 2023-12-11 00:00:42 +09:00
daddbed2b0 Delete codes in loop in main 2023-12-09 21:59:58 +09:00
83a11a703a Change print selling message 2023-12-09 21:56:04 +09:00
3fe5df885d Change filtering 2023-12-09 03:44:47 +09:00
7736c2e373 Add filtering 2023-12-09 03:04:53 +09:00
572a07e662 Change filtering method 2023-12-08 02:06:54 +09:00
9753aca93b Change filtering method 2023-12-08 02:04:17 +09:00
f34c7e0c52 Shorten wait time 2023-12-08 00:55:40 +09:00
e75d70120a Make main loop to repeat every 1 sec 2023-12-04 22:53:14 +09:00
4a1ebd3034 Increase timeout 2023-12-02 23:27:36 +09:00
554d5b3cab Increase timeout 2023-12-02 23:25:16 +09:00
6cb6d1710b Add debug to check vectors capacity 2023-12-02 22:18:08 +09:00
116edcbe07 Move client variable into loop 2023-12-02 20:33:35 +09:00
c6df1ac360 Move collection data type into loop 2023-12-02 20:03:41 +09:00
cbbfac0162 Disable using webdriver 2023-12-02 18:52:30 +09:00
70e6b7c690 Change print content for task#1 2023-12-02 18:39:22 +09:00
f8e702a462 Change parameter data type 2023-12-02 03:02:06 +09:00
6a8cfa5c6f Change to real mode 2023-12-02 03:01:34 +09:00
16440be796 Apply formatter 2023-12-02 03:00:17 +09:00
8d74ec64de Rollback 2023-12-02 02:57:24 +09:00
9f1f49f761 Change expression of countdown 2023-12-02 02:56:11 +09:00
f45d5da3c3 Change find() with position() 2023-11-20 20:25:56 +09:00
689a3cd8a7 Define FilteredData struct 2023-11-19 23:29:56 +09:00
420173a361 Add stoploss 2023-11-19 23:29:29 +09:00
efd0bd5b10 Add target_price column 2023-11-19 13:38:51 +09:00
5b7c4a9acb Apply Cargo fmt 2023-11-19 01:58:09 +09:00
dc0cc8234a Separate selling function 2023-11-19 01:27:51 +09:00
de71293f0b Make mod.rs 2023-11-18 23:51:29 +09:00
abd03aaeab Fix searching symbols 2023-11-18 21:29:09 +09:00
7e45793d54 Add FIXME tags 2023-11-18 21:28:06 +09:00
5191a284d2 Fix searching symbols 2023-11-18 21:25:37 +09:00
bc1e429377 Add kelly criterion 2023-11-18 21:21:43 +09:00
819453aee5 Change order of functions 2023-11-18 21:20:19 +09:00
12996a4d17 Integrate functions 2023-11-18 21:19:03 +09:00
f7ee3845d3 Set sleep time shorter 2023-11-18 21:15:23 +09:00
4aee72baf4 Rollback adding kelly_betting_usdt 2023-11-05 02:03:00 +09:00
58613d9ba6 Add kelly_betting_usdt column 2023-11-05 01:12:12 +09:00
704c1ea513 Add waiting time for retrieving 30m candles 2023-10-15 15:27:25 +09:00
2df8f5ae10 Change code to use all trade-pairs 2023-10-15 15:25:37 +09:00
f0f3384be4 Add strategists #2~#6 2023-10-15 15:22:35 +09:00
e7d9874347 Change initialization of variable by using method 2023-10-15 15:20:01 +09:00
02099ac1f6 Add kelly_criterion table 2023-10-15 15:16:32 +09:00
7d54ee50e1 Change memory with innoDB for all tables engine 2023-10-04 20:53:54 +09:00
3a977045bb Change print messages 2023-10-04 20:14:17 +09:00
fdd2623fba Refactor code 2023-10-04 20:13:22 +09:00
39b8c31e30 Refactor codes 2023-10-04 20:12:13 +09:00
9d7e001860 Change set_unit_usdt() for Simulation 2023-10-04 20:10:05 +09:00
13f1e59e7a Add retry code 2023-10-04 20:08:21 +09:00
0100c36191 Remove unused imports 2023-09-16 01:35:14 +09:00
a484827a18 Add error handling 2023-09-16 01:33:28 +09:00
a1c69ff65c Increase initial money value for test mode 2023-09-16 01:30:33 +09:00
38d5a305ad Move Client into function 2023-09-16 01:29:54 +09:00
f5ca681f9b Change code to apply thread 2023-09-09 01:38:59 +09:00
be190a8c7a Add more RSI criteria 2023-08-16 22:32:21 +09:00
a44901f537 Fix expire time and buy price expression 2023-08-16 22:09:50 +09:00
72aaa3bf60 Delete unused codes 2023-08-15 15:22:07 +09:00
4e5d12be8f Rollback time 2023-08-15 15:16:11 +09:00
e01e7ce6f4 Fix calc bug of target_profit_percent 2023-08-15 15:15:25 +09:00
d05a8fb579 Change calculation way of set_unit_usdt() 2023-08-15 14:07:37 +09:00
90ea086a62 Change calculation of target_profit_percent with using closure 2023-08-15 13:05:11 +09:00
4823b01d09 Add new filtering based on StochRSI into strategy1 2023-08-15 02:02:14 +09:00
9f6678c69d Make print message clearer 2023-08-13 01:04:12 +09:00
bae564bf68 Add comment 2023-08-13 00:22:22 +09:00
45f640e3bc Make calculation in parallel 2023-08-13 00:02:42 +09:00
ddbaaa0508 Make calculation in parallel 2023-08-12 23:23:01 +09:00
1a242da6b3 Delete unnecessary code 2023-08-12 22:51:45 +09:00
c695107681 Delete unnecessary code 2023-08-12 22:47:59 +09:00
764be22171 Replace legacy structure of stoch rsi 2023-08-12 22:46:00 +09:00
799afebefc Change function name 2023-08-12 21:58:50 +09:00
5ead6052e9 Delete unnecessary code 2023-08-12 20:26:49 +09:00
25b2c5ad51 Fixed selling coin problem 2023-08-12 20:25:42 +09:00
2d3b340123 Delete unnecessary code 2023-08-12 19:41:18 +09:00
ed5d6f86b0 Move Task#10 into Task#4 2023-08-12 19:15:18 +09:00
52489fd359 Refactor buy_coin() 2023-08-12 19:05:09 +09:00
bd2f31fab3 Apply formatter 2023-08-12 18:55:14 +09:00
fbcee4a48b Rename function 2023-08-12 18:54:24 +09:00
b88f779926 Refactor buy_coin() 2023-08-12 18:52:52 +09:00
140d65eae0 Rename function 2023-08-12 18:35:26 +09:00
aa7ec40434 Delete unnecessary logic 2023-08-12 18:33:51 +09:00
7fc7aa8a25 Delete unnecessary codes 2023-08-12 18:17:07 +09:00
052b5589d3 Rename function 2023-08-12 18:16:38 +09:00
10924bfa31 Rename function 2023-08-12 18:04:37 +09:00
6ef75f20e1 Delete unnecessary check 2023-08-12 17:56:38 +09:00
3dd3dfc344 Add error handling 2023-08-12 17:43:56 +09:00
13f9848f88 Add more trade pairs 2023-08-12 17:43:00 +09:00
3dbaab6365 Change evaluation for selling 2023-08-05 03:29:21 +09:00
7bdb130865 Change code to run strategy in parallel 2023-08-05 03:07:16 +09:00
b0631921d3 Change parameter type 2023-08-03 00:01:57 +09:00
dd37415e1d Move Task#10 into task#4 2023-08-02 23:56:45 +09:00
fdc7c887e5 Add error handling 2023-08-02 21:18:09 +09:00
046195503c Add error handling 2023-07-31 22:46:44 +09:00
a147535dc7 Apply formatter 2023-07-22 20:28:32 +09:00
95c7dd4b23 Apply threading for filterings 2023-07-22 20:27:36 +09:00
5f8f613042 Change limit value of pure profit percent 2023-07-22 20:26:30 +09:00
ce61f28e40 Change sleep time from 1000ms to 500ms 2023-07-22 20:25:30 +09:00
500026212f Apply threading for iteration work 2023-07-22 20:17:19 +09:00
f846d0e978 Apply threading for iteratoration 2023-07-22 19:28:44 +09:00
f0b3224e49 Apply formatter 2023-07-16 17:29:48 +09:00
b978a9038f Move parameter to return value of sma() 2023-07-16 17:25:04 +09:00
a0ede8e8be Move parameter to return value of bollingerband() 2023-07-16 17:22:37 +09:00
65dd318aaa Disable Task#11 2023-07-16 17:17:22 +09:00
593d963af3 Apply Lint 2023-07-16 02:08:28 +09:00
0779d3794f Apply cargo formatter 2023-07-16 01:39:40 +09:00
f9c6f0dce1 Delete unused function 2023-07-16 01:34:54 +09:00
f7048b0c9a Apply fixed directory of chromedriver 2023-07-16 01:14:05 +09:00
0c4e8ada55 Fork from tradingbot_sandbox 2023-07-15 19:41:36 +09:00