Login Page - Create Account

Support Board


Date/Time: Sat, 23 May 2026 11:14:32 +0000



Post From: Default Colors

[2023-07-27 17:26:55]
WarriorTrader - Posts: 251
Hello,

FYI, the default colors for sc.Input[] no longer work. A random color is set when the study is first loaded. So the lines below have no effect. You have to manually change the color after the study is loaded. Is there a new way to set defaults for a sc.Input[] variable?




    BreakoutColor.Name = "Breakout Color";
    BreakoutColor.SetColor(0, 255, 0);

    BreakdownColor.Name = "Breakdown Color";
    BreakdownColor.SetColor(255, 0, 0);


--WT