Login Page - Create Account

Support Board


Date/Time: Sat, 19 Jul 2025 13:50:17 +0000



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

[2025-07-15 02:34:10]
ForgivingComputers.com - Posts: 1085
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.