Would like to expose a variable in Market Analyzer withOUT plotting on chart. I found an old post code sample which was very helpful (SampleBoolSeries_NT8.zip). I’ve added the code, then added the column in Market analyzer, but my variable is grayed out and I only see ‘–’ in the column field value. I am not sure what I am missing. Appreciate any help!
Steps taken:
- Created var: private Series isFVGFilled;
- Initialized var in State.Configure : isFVGFilled = new Series(this);
- Set value in OnBarUpdate (): Returns 0=None, 1=Bullish FVG Filled, 2=Bearish FVG Filled"
- Expose var for Market Analyzer:
[Browsable(false)]
[XmlIgnore]
public Series IsFVGFilledSeries
{
get { return isFVGFilled; }
}
[Browsable(true)]
[XmlIgnore]
[Display(Name = “FVG Filled Status”,
Description = “Returns 0=None, 1=Bullish FVG Filled, 2=Bearish FVG Filled”,
Order = 1000,
GroupName = “Market Analyzer”)]
[ReadOnly(true)]
public double IsFVGFilledValue
{
get
{
if (isFVGFilled [0] != null && CurrentBar >= 0)
return isFVGFilled[0];
else
return 0;
}
}