Login Page - Create Account

Support Board


Date/Time: Sun, 19 May 2024 02:02:16 +0000



Post From: s_SCTradeOrder order lifetime

[2015-10-05 19:38:40]
User35525 - Posts: 180
I'm sure it's version 1304. GetAttachedOrderIDsForParentOrder() seems to work, since TargetInternalOrderID and StopInternalOrderID get set correctly, but it causes the following CPU exception:


CTS FIX: Received 'Account Update/Balance Data' collateral report. | 2015-10-05 14:20:48
CTS FIX: Received 'Account Update/Balance Data' collateral report. | 2015-10-05 14:20:48
Warning: The Custom DLL study "code_for_sc_engineering.scsf_tScreenStats" has just caused a CPU exception. | 2015-10-05 14:20:48 *
Warning: This Custom DLL study may cause Sierra Chart to be unstable until you remove the study from your chart and restart Sierra Chart. | 2015-10-05 14:20:48 *

If anybody wants to test my code, please see attached; simply put "set Fill Space" and "tScreenStats" on an empty chart and then submit a buy or sell server-side bracket OCO order. tScreenStats displays on the screen your order quantity, parent fill price, take profit, and stop loss.

If GetAttachedOrderIDsForParentOrder() is commented, then there's no CPU exception, but nothing gets printed on the screen since it doesn't know the the OCO's children order ID's.
Date Time Of Last Edit: 2015-10-05 19:51:36
attachmentcode_for_sc_engineering.cpp - Attached On 2015-10-05 19:38:35 UTC - Size: 8.92 KB - 360 views