Commit Graph

86 Commits

Author SHA1 Message Date
6d6f70ae00 Fix SLTP for backtests 2025-11-12 23:52:58 +07:00
3b176c290c Update precalculated indicators values 2025-11-12 23:26:12 +07:00
e0d2111553 Fix positions for backtests 2025-11-12 19:45:30 +07:00
e8a21a03d9 Refactor TradingBotBase to remove unnecessary debug logging and streamline position recovery checks. Improved clarity in position management by eliminating redundant code. 2025-11-12 00:58:33 +07:00
8d97fce41c Refactor TradingBotBase to streamline recovery logic for recently canceled positions. Removed redundant recovery call and added comments for clarity in position management. 2025-11-12 00:50:16 +07:00
2057c233e5 Enhance TradingBotBase with recovery logic for recently canceled positions and improved error handling for Web3Proxy. Updated CheckPositionInExchangeHistory to return error status, ensuring robust position verification and cancellation processes. 2025-11-12 00:41:39 +07:00
903413692c Add precalculated signals list + multi scenario test 2025-11-11 14:05:09 +07:00
fc036bb7de docs: enhance benchmark command with business logic validation tests
- Add 2 ETH-based validation tests to benchmark script
- Validates ExecuteBacktest_With_ETH_FifteenMinutes_Data_Should_Return_LightBacktest
- Validates ExecuteBacktest_With_ETH_FifteenMinutes_Data_Second_File_Should_Return_LightBacktest
- Ensures performance optimizations don't break trading logic
- Update command documentation with comprehensive validation details
- All 3 validation levels must pass for benchmark success
2025-11-11 12:32:56 +07:00
61fdcec902 perf: remove debug logging and optimize rolling window maintenance (+5.0%) 2025-11-11 12:26:44 +07:00
46966cc5d8 perf: optimize TradingBotBase and TradingBox - reduce LINQ overhead and allocations (+31.1%) 2025-11-11 12:21:50 +07:00
1792cd2371 Fix backtest consistency 2025-11-11 12:15:12 +07:00
567de2e5ee Add benchmark + fix bundle that should be completed 2025-11-11 11:35:48 +07:00
1d70355617 Optimze worker for backtest 2025-11-11 03:59:41 +07:00
51a227e27e Improve perf for backtests 2025-11-10 02:15:43 +07:00
db6e06ad5d Do not check signal if position open and flipping is off 2025-11-05 10:56:07 +07:00
1079f38ed7 Add exception for webhook + add gracefull time before market decrease 2025-11-05 10:54:14 +07:00
60035ca299 Fix pnl calculation when force closed 2025-11-03 19:26:48 +07:00
ce43bbf31f Remove debug for position updated 2025-10-27 11:05:15 +07:00
abd5eb675c Re-update internal balance before opening position 2025-10-27 10:25:45 +07:00
f816b8de50 Update fetch borkerPosition in bot + better HandleClosePosition + Add debug channel to receive all debug 2025-10-25 18:35:51 +07:00
38e6998ff3 Add test to check if backtest behavior changed 2025-10-24 19:08:10 +07:00
fc4369a008 Add start and enddate when fetching the position history 2025-10-24 18:00:23 +07:00
554cac7d89 Check direction of the position before updating the broker position 2025-10-24 02:41:40 +07:00
8170052fd7 Update open price when position filled to match more the reality 2025-10-17 16:52:30 +07:00
3f1b5f09e0 Update the gmx for the execution fees 2025-10-17 00:49:20 +07:00
d6122aeb27 Fix backtests and indicators 2025-10-16 20:06:47 +07:00
1dcd562cf8 Fix backtests 2025-10-16 00:47:55 +07:00
f1df1a06e2 Add more log during cooldown 2025-10-15 23:11:01 +07:00
4543246871 Remove ocndition for account name 2025-10-12 10:27:47 +07:00
7ddde08b98 Fix % formating for SL TP 2025-10-12 01:13:00 +07:00
b6a4c7661f Fix update agent Summary when new balance fetch 2025-10-11 13:10:47 +07:00
04df72a6bd Fix .First Position update + add more details when position rejected 2025-10-11 12:27:54 +07:00
d71d47f644 Add reason when stopping bot 2025-10-10 23:31:32 +07:00
d9ffadfe2b Log internal positions 2025-10-10 22:52:05 +07:00
bdb254809e Improve CandleStore grain deactivating 2025-10-10 22:09:30 +07:00
c618bca108 Fix cooldown 2025-10-10 16:45:11 +07:00
652c01b8bb Fix AgentName 2025-10-10 16:08:50 +07:00
21314430ef Reduce logs for backtests 2025-10-10 01:59:27 +07:00
a3d6dd1238 Remove warning for backtest when signal is expired 2025-10-10 01:35:10 +07:00
e4c2f8b7a5 Add monitoring on queries with sentry alert + Fix check position list in db for backtest 2025-10-10 00:15:02 +07:00
fa160e2d1b Update messages 2025-10-08 20:30:57 +07:00
1a99224d18 Fix ROI calculation for Strategy 2025-10-08 19:37:24 +07:00
76b087a6e4 Fix status and filtered positions for metrics 2025-10-08 18:37:38 +07:00
86dd6849ea Fix status IsFinished/IsOpen/IsForMetrics + use redis for markets on gmx.tsx instead of inmemory cache 2025-10-08 12:13:04 +07:00
67065469a6 Fix config update + remove messages + Summary fix for not open position 2025-10-08 02:52:11 +07:00
51fbef6072 Fix position status when checkbroker say no 2025-10-06 21:35:48 +07:00
347c78afc7 Update messaging 2025-10-06 01:34:13 +07:00
dac0a9641f Fetch closed position to get last pnl realized 2025-10-05 23:31:17 +07:00
976c1a6580 Fix volume when position not open 2025-10-05 17:14:47 +07:00
5468b1e7f7 Update closing trade date on SL or TP 2025-10-04 19:36:27 +07:00