Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 05:50:46 +0000



Post From: CPU Exception when Study is triggered.

[2024-09-09 18:07:56]
skalaydzhiyski - Posts: 58
I thought I could fix the issue by following the correct new and delete patterns, but for some reason I am getting the Windows errors 0 and 122 still (even though I don't get the warning by sierra).

2024-09-10 13:17:58.852 | Chart: #5 MNQ-202409-CME-USD[M] 1 Min | Study: Trigger Backtest | backtest started
2024-09-10 13:17:58.852 | Chart: #5 MNQ-202409-CME-USD[M] 1 Min | Study: Trigger Backtest | init ranges
2024-09-10 13:17:58.852 | Chart: #5 MNQ-202409-CME-USD[M] 1 Min | Study: Trigger Backtest | ranges to run for...
2024-09-10 13:17:58.852 | Chart: #5 MNQ-202409-CME-USD[M] 1 Min | Study: Trigger Backtest | 2024-09-09 13:00:00
2024-09-10 13:17:58.852 | Chart: #5 MNQ-202409-CME-USD[M] 1 Min | Study: Trigger Backtest | 2024-09-09 13:30:00
2024-09-10 13:17:58.852 | Chart: #5 MNQ-202409-CME-USD[M] 1 Min | Study: Trigger Backtest | 2024-09-09 14:00:00
2024-09-10 13:17:58.852 | Chart: #5 MNQ-202409-CME-USD[M] 1 Min | Study: Trigger Backtest | 2024-09-09 14:30:00
2024-09-10 13:17:58.852 | Chart: #5 MNQ-202409-CME-USD[M] 1 Min | Study: Trigger Backtest | init complete
2024-09-10 13:17:58.852 | Chart: #5 MNQ-202409-CME-USD[M] 1 Min | Study: Trigger Backtest | stop previous replay
2024-09-10 13:17:58.852 | Chart: #5 MNQ-202409-CME-USD[M] 1 Min | Study: Trigger Backtest | start replay for current index -> 0
2024-09-10 13:17:58.900 | Replay 60X: MNQ-202409-CME-USD[M] 1 Min | Reloading chart.
2024-09-10 13:17:58.915 | Windows error code 0: The operation completed successfully.
2024-09-10 13:17:58.915 | Windows error code 122: The data area passed to a system call is too small. | Number times message added: 36
2024-09-10 13:17:58.924 | Windows error code 0: The operation completed successfully.
2024-09-10 13:17:58.924 | Windows error code 122: The data area passed to a system call is too small. | Number times message added: 36
2024-09-10 13:18:00.454 | Replay 60X: MNQ-202409-CME-USD[M] 1 Min | Chart data loading complete.

The functionality is working as expected -> I get both backtests for both ranges to run in sequence, but I am scared the study is screwing up Sierra somehow behind the scenes in ways I don't understand, I don't want to just hide the excepitons "under the rug".

Can you please have a look at the attachments here (updated main.cpp and helpers.cpp).

I am really struggling to understand what might be happening, so any help is welcome :/

All the best,
Date Time Of Last Edit: 2024-09-10 12:52:15
attachmenthelpers.cpp - Attached On 2024-09-10 12:44:07 UTC - Size: 1.03 KB - 79 views
attachmentmain.cpp - Attached On 2024-09-10 12:44:14 UTC - Size: 3.6 KB - 77 views