I am trying to create an indicator that takes an array of doubles as a parameter. I got the thing working as an indicator on a chart, but I am having problems using it in strategies. The autogenerated portion of the code (namely the constructors referenced in strategies) is not picking up the new field.
I have made the following changes to the indicator, declaring it in the variables and properties regions, as well as initializes to a blank array...
<code>
#region Variables
private double[] bucketBounds;
#endregion
...
protected override void Initialize()
{
bucketBounds = new double[4];
}
...
#region Properties
[Description("...")]
[GridCategory("Parameters")]
public double[] BucketBounds
{
get { return bucketBounds; }
set { bucketBounds = value; }
}
#endregion
</code>
Am I missing something? Thanks
Comment