The following code causes the "MyColor" input parameter below to show up as an editable hexadecimal number "#FFFF0000" in the Strategy Analyzer input parameters property grid rather than a nice color button that when clicked allows the user to pick a color from a color picker dialog box.
// In the "protected override void OnStateChange()" method... if (State == State.SetDefaults) { ... MyColor = Color.FromArgb(255, 255, 0, 0); ... } // In the list of Input Parameters for the Strategy... [NinjaScriptProperty] [Display(ResourceType = typeof(Custom.Resource), Name="Color", Description="", Order=1, GroupName="NinjaScriptStrategyParameters")] public Color MyColor { get; set; }
Thanks in advance!
EquityTrader
Comment