I have two double properties in my indicator:
[Range(0.0, 5.0)] [NinjaScriptProperty] [Display(Name = "Offset upper band", Order = 2, GroupName = "Price band settings")] public double OffsetUpperBand { get; set; } [Range(0.0, 5.0)] [NinjaScriptProperty] [Display(Name = "Offset lower band", Order = 3, GroupName = "Price band settings")] public double OffsetLowerBand { get; set; }
protected override void OnStateChange() { if (State == State.SetDefaults) { OffsetUpperBand = 1.005; OffsetLowerBand = 0.995; } }
(see attachment)
But while they show with the decimal dot (`.`) in the inputs, I cannot type a dot myself there. So if I remove `0.995` and try to type `0.990`, the dot isn't entered and I end up with `0990` as input value. Am I doing something wrong?
Comment