Support Board
Date/Time: Sat, 19 Jul 2025 13:11:08 +0000
Post From: LifeCycle of sc.SupportTradingScaleOut in a study?
[2025-07-14 23:56:37] |
rajeshh - Posts: 17 |
Hello: I am trying to understand what it means to switch the values of sc.SupportTradingScaleOut in a study? Can it only be set once for a run of the study? I have a case where 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. I have tried: sc.SupportTradingScaleIn = 1;
if (sc.GetBarHasClosedStatus() != BHCS_BAR_HAS_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. If I always have sc.SupportTradingScaleOut = 0; , then when the opposite order is created, it also has attached orders. But this means I cannot use the ScaleOut at all.
Date Time Of Last Edit: 2025-07-15 01:53:15
|