I have a modified indicator...that seems to work, but gives unusual looking verbiage in the indicator properties box when I call it up....
(see attached screen grab)
Instead of providing visual confirmation of the usual parameter settings....it shows the following:
PASwh2 (6E 09-10(1min),<unknown>,<unknown>,<unknown>
The "unknown" fields should contain the default settings for those parameters
The actual parameter settings seem to be valid and working, but I can't figure out why I get the <unknown> .
Below is the properties for this code.....
#region Properties
[Description("Deviation in percent or points regarding on the deviation type")]
[GridCategory("Parameters")]
[Gui.Design.DisplayName("Deviation value")]
public double DeviationValue
{
get { return deviationValue; }
set { deviationValue = Math.Max(0.0, value); }
}
[Description("Type of the deviation value")]
[GridCategory("Parameters")]
[Gui.Design.DisplayName("Deviation type")]
public DeviationType DeviationType
{
get { return deviationType; }
set { deviationType = value; }
}
[Description("True = Use high and low instead of selected price type.")]
[GridCategory("Parameters")]
[Gui.Design.DisplayName("Use high and low")]
public bool UseHighLow
{
get { return useHighLow; }
set { useHighLow = value; }
}
================================================== =======
Variables settings:
#region Variables
private DeviationType deviationType = DeviationType.Points;
private double deviationValue = 0.0005;
private bool useHighLow = true;
Not sure what is wrong....any advice is most appreciated...
Comment