no problem with the red line, PlotXXO.
no problem with the green line, PlotXXO_2.
the intended blue line will not change. It remains a black line, as it was initially created a few days ago [ie] it does not change with the updated current logic although it works for the green line ????
***INITIALIZE REGION***
protected override void Initialize()
{
Overlay=true;
Add(new Plot(new Pen(Color.Red, 2), "PlotXXO"));
Add(new Plot(new Pen(Color.Blue, 2), PlotStyle.Dot, "PlotXXO_1"));
Add(new Plot(new Pen(Color.Green, 2), PlotStyle.Dot, "PlotXXO_2"));
CalculateOnBarClose = false;
}
***from OnBarUpdate() REGION***
if (Instrument.FullName == "$EURUSD")/
{
PlotXXO.Set(XXOpen);
EURUSDticks=150;
PlotXXO_1.Set(XXOpen + (TickSize*EURUSDticks));
PlotXXO_2.Set(XXOpen - (TickSize*EURUSDticks));
else if (Instrument.FullName == "$USDJPY")
{
PlotXXO.Set(XXOpen);
USDJPYticks=75;
PlotXXO_1.Set(XXOpen + (TickSize*USDJPYticks));
PlotXXO_2.Set(XXOpen - (TickSize*USDJPYticks));
}
else if (Instrument.FullName == "ZN 12-13")
{
PlotXXO.Set(XXOpen);
ZNticks=75;
PlotXXO_1.Set(XXOpen + (TickSize*ZNticks));
PlotXXO_2.Set(XXOpen - (TickSize*ZNticks));
}
Comment