Login Page - Create Account

Support Board


Date/Time: Tue, 15 Jul 2025 17:56:22 +0000



Post From: SetGraphicsSetting() not applying to chart from Apply button in study settings

[2023-09-13 16:08:17]
User719512 - Posts: 316
Hi Sierra Engineering,

Using SetGraphicsSetting() to set the trade window background like this


sc.SetGraphicsSetting(
sc.ChartNumber,
isTradeSimulationIsOn ? n_ACSIL::GRAPHICS_SETTING_CHART_TRADE_WINDOW_BACKGROUND_SIM : n_ACSIL::GRAPHICS_SETTING_CHART_TRADE_WINDOW_BACKGROUND,
isTradeSimulationIsOn ? Input_SIM_BackgroundColor.GetColor() : Input_LIVE_BackgroundColor.GetColor(),
lineWidth,
lineStyle
);

And the changes to not take affect when hitting APPLY in the study dialog, nor Studies (F6) dialog, nor when closing the dialog/etc.

Only toggling "Sim On/Off" will cause the trade window to reflect the background set from the aforementioned study.

Can you reproduce and confirm this issue?
If so, can you fix this so the API works as expected?

Thanks!