Login Page - Create Account

Support Board


Date/Time: Wed, 10 Sep 2025 00:51:55 +0000



Post From: LifeCycle of sc.SupportTradingScaleOut in a study?

[2025-07-15 02:34:10]
ForgivingComputers.com - Posts: 1114
I want to be able to scaleOut during the lifetime of a bar except on the bar close, when I may place an opposite order with attached orders in my study.

Change

BHCS_BAR_HAS_CLOSED

to

BHCS_BAR_HAS_NOT_CLOSED

sc.SupportTradingScaleIn = 1;

if (sc.GetBarHasClosedStatus() != BHCS_BAR_HAS_NOT_CLOSED)

sc.SupportTradingScaleOut = 1;

else

sc.SupportTradingScaleOut = 0;

//Submit order to create an opposite order with attached orders does not create attached orders, only the opposite order.