Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 20:04:52 +0000



Post From: Two issues with my custom study incl. crashing computer during replay

[2018-10-07 17:26:14]
Yoda - Posts: 106
I created a custom trading study that has two issues that I hope someone can help me with. I've attached a copy of my chart book and the cpp file.

This custom trading study should:
BUY when price crosses and closes above a moving average line and
SELL when the price crosses and closes below the moving average line.

Exits should happen in reverse:
BUY EXIT when price crosses and closes below the moving average &
SELL EXIT when price crosses and closes above the moving average.

Issue #1 - The buy & sell works, but the exits do not work.
It appears that the trade is closed based on the Trade Window setting.

Issue #2 - The script sometimes crashes my computer during a replay.

I've read thru Sierra Chart Unexpectedly Shutting Down | Memory Errors | Unusual Software Problems | Exception Errors | Freezing of User Interface and particularly the paragraph that states "Under no circumstances does a program like Sierra Chart which is a normal program that uses standard operating system functions, cause a computer to restart or freeze." I understand this, however based on the error messages, I do believe that my custom study is crashing the computer and I do not have faulty hardware.

The crash usually happens after running the script thru Replay a few times. Depending on how many days I'm back testing, the computer will either recover from the crash or will completely shutdown.

I've been testing the script with SC data for NQZ18 for the period of 2018-09-01 to 2018-09-30. I've been testing on the 15 min time period.

From the SC Message Log I see a "Windows error code 1455: The paging file is too small for this operation to complete"

And from the Windows Event Viewer I see the following message:
" The following programs consumer the most virtual memory: SierraChart_64.exe (12824) consumed 71808061440 bytes, MsMPEng.exe(628) consumed 149725184 bytes, and explorer.exe(4168) consumed 125263872 bytes"

The paging file was set to automatic. However, to try to stop the crashing I increased it to 40 GB, but obviously considering how much memory SC is consuming, this still didn't stop the crashing.

Additional details:
Sierra Chart Version: 1815 64-bit
DLL: Is created using Remote Build
Data used: SC Data - All Services [data]
OS: Windows 10 pro
HD: Samsung Pro 960 NVMe
Memory: 32 GB
Anti-Virus: Only Windows Defender & SC folder is excluded from program
attachmentMAvgX-Shared-20181007-1057.cpp - Attached On 2018-10-07 17:07:13 UTC - Size: 7.7 KB - 309 views
attachmentMAvgX-Shared-20181007-1140.Cht - Attached On 2018-10-07 17:07:25 UTC - Size: 30.01 KB - 294 views