[Browsable(false), XmlIgnore] public Series<double> longVix { get { return Values[0]; } } [Browsable(false), XmlIgnore] public Series<double> upperBB { get { return Values[1]; } } [Browsable(false), XmlIgnore] public Series<double> shortVix { get { return Values[2]; } } [Browsable(false), XmlIgnore] public Series<double> lowerBB { get { return Values[3]; } }
AddPlot(Brushes.Orange, "Long Vix"); Plots[0].PlotStyle = PlotStyle.Bar; Plots[0].Width = 12; AddPlot(Brushes.Gray, "Long BB"); Plots[1].PlotStyle = PlotStyle.Dot; Plots[1].Width = 2; AddPlot(Brushes.Bisque, "Short Vix"); Plots[2].PlotStyle = PlotStyle.Bar; Plots[2].Width = 12; AddPlot(Brushes.Gray, "Short BB"); Plots[3].PlotStyle = PlotStyle.Dot; Plots[3].Width = 2;[FONT="Arial"][/FONT]
I have two exposed values coded as follows:
[Browsable(false), XmlIgnore] public Series<int> vixDirection { get { return _dirVix; } } [Browsable(false), XmlIgnore] public int vixCurrentValue { get { return _dirVix[0]; } }
[Browsable(true), XmlIgnore] [Display(ResourceType = typeof(Custom.Resource), Name = "vixPeriod", GroupName = "Settings Vix", Order = 0)] public int Period { get { return _vixPeriod; } set { _vixPeriod = Math.Max(1, value); } } [Browsable(true), XmlIgnore] [Display(ResourceType = typeof(Custom.Resource), Name = "BB Period", GroupName = "Settings Vix", Order = 1)] public int bbPeriod { get { return _bbPeriod; } set { _bbPeriod = Math.Max(1, value); } } [Browsable(true), XmlIgnore] [Display(ResourceType = typeof(Custom.Resource), Name = "BB Std", GroupName = "Settings Vix", Order = 2)] public double std { get { return _vixStd; } set { _vixStd = Math.Max(1.0, value); } }
However, when I attempt to obtain its exposed values in either a strategy or other indicator, I don't see them. Neither am I able to pass variables to control the settings properties.
I am looking to do something like this:
int vixDir; vixDir = jelTTVix(15,9,2).vixDirection;
Comment