I was looking for a post that could answer my question before posting here. I found this https://ninjatrader.com/support/foru...t-plots?t=4991 which was exactly what I was looking for. I understand everything explained and I've downloaded the examples to view the sample code.
I have a custom indicator that basically does the same underlying thing as the example provided. Expose two Series<bool> variables that can be used in conjunction with other indicators for evaluating a bearIndication or bullIndication on each bar. I've done what I believe is required to be able to use this indicator in the Strategy Builder:
//Class variables defined
private Series<bool> bearIndication;
private Series<bool> bullIndication;
//..Inside State.Configure
bullIndication = new Series<bool>(this);
bearIndication = new Series<bool>(this);
//..Inside OnBarUpdate()
//Stuff happens
bearIndication[0] = (true);
//Other Stuff happens
bullIndication[0] = (true);
//In #region Properties
[Browsable(false)]
[XmlIgnore]
public Series<bool> BearIndication
{
get { return bearIndication; }
}
[Browsable(false)]
[XmlIgnore]
public Series<bool> BullIndication
{
get { return bullIndication; }
}
Draw.ArrowDown(this, "RangeReversal"+currentBarIndex, true, 1, currentHigh + TickSize, Brushes.Red); and Draw.ArrowUp(this, "RangeReversal"+currentBarIndex, true, 1, currentLow - TickSize, Brushes.Green);
Thanks in advance,
Adrian

Comment