Commit Graph

18 Commits

Author SHA1 Message Date
root
2567bd0caa set the defauinteralv alue to 1m 2024-02-28 15:02:57 +08:00
root
cdeb0bc908 FIX: format minimal profit to percent 2023-11-29 18:37:28 +08:00
root
a4ccad9463 FIX: deactivate exit when position in closing 2023-11-29 18:26:01 +08:00
c9s
5afd23b5c7
bbgo: trigger trailingStop when kline is updated 2023-06-27 16:39:10 +08:00
c9s
aa281b164e
bbgo: improve tradingStop message 2023-06-07 16:14:46 +08:00
Andy Cheng
bb8dbb155f
exits/trailingstop: fix typo 2023-03-17 10:43:47 +08:00
Andy Cheng
58b2678ae8
improve/exit: use roi.Percentage() instead of roi.Float64() 2023-03-08 17:12:41 +08:00
Andy Cheng
2970f73542
improve/exit: show symbol in trailing stop triggered message 2023-03-08 15:35:44 +08:00
Andy Cheng
8527d4996e trailingstop: add default case 2022-08-11 17:23:42 +08:00
Andy Cheng
8d3dfd17c7 trailingstop: add side both 2022-08-11 16:39:16 +08:00
Andy Cheng
df0e527e1e exits/trailingstop: properly works on both long and short positions 2022-08-11 13:36:31 +08:00
c9s
6e4c28ed1b
disable marketTrade stop 2022-07-17 00:59:35 +08:00
c9s
81560746bd
all: reformat code 2022-07-07 02:26:39 +08:00
c9s
d2637ce261
trailing stop: apply ClosePosition parameter 2022-07-07 02:26:39 +08:00
c9s
b49f12300c
add long position test for trailing stop
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-07-06 10:54:53 +08:00
c9s
03481000cc
reset activated flag when stop order is submitted
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-07-06 03:09:57 +08:00
c9s
2bc12c0522
add trailing stop and it's test cases with gomock
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-07-06 03:04:01 +08:00
c9s
4de5b0bc9b
add TrailingStop2 2022-07-05 16:10:55 +08:00