What must I add to this script to be able to change brush attributes in "Edit Strategy" menu? I can see the brush attributes but they are grayed out and I am not able to adjust them.
Thanks,
AddPlot(Brushes.MediumSeaGreen, "MyPlot1");
else if (State == State.DataLoaded)
{
EMA5 = EMA(Close, 35);
RMA1 = RMA(TrueRange(1), 35);
}
protected override void OnBarUpdate()
{
if (BarsInProgress != 0)
return;
if (CurrentBars[0] < 20)
return;
double rma0 = RMA1[0];
double ema0 = EMA5[0];
if (CurrentBar == 0)
MyPlot1[0] = Median[0];
else
{
MyPlot1[0] = ema0 + (rma0 * 0.5);
}
[Browsable(false)]
[XmlIgnore]
public Series<double> MyPlot1
{
get { return Values[0]; }
}

Comment