// Initialize()
Add(new Plot(Color.FromKnownColor(KnownColor.Transparent), PlotStyle.Line, "Plot1"));
// OnBarUpdate()
if (condition is hit for long)
Plot1.Set (1);
else if (condition is hit for short)
Plot1.Set(2);
// properties
[Browsable(false)]
[XmlIgnore()]
public DataSeries Plot1
{
get { return Values[1]; }
}
This allowed setting up the above indicator as a column in Market Analyzer and able to print 0, 1(long) or 2(short) as signals.
Question: How do I set the plot as above in NT8? Is there a sample?
In NT8 after fixing compile errors, was always printing wrong value and not 0 or 1 or 2 in Market Analyzer
Reference: I did look at: http://ninjatrader.com/support/forum...ead.php?t=4991 but didn't help. I do understand the Plot above may need to return Series<double>, but a sample may help
Comment