But what I want is to display the last price of another instrument without including in the data series of the chart.When I call for the second data serie in the indicator there is an error in marketDataUpdate.Price[1]...
//else if (State == State.Configure)
//{
// AddDataSeries("ES 12-20", Data.BarsPeriodType.Tick, 1, Data.MarketDataType.Last);
//}
}
protected override void OnBarUpdate(){}
protected override void OnMarketData(Data.MarketDataEventArgs marketDataUpdate)
{
if (BarsInProgress != 0)
return;
if (CurrentBars[0] < 1
|| CurrentBars[1] < 0)
return;
if (marketDataUpdate.MarketDataType == MarketDataType.Last)
Draw.TextFixed(this, "", "" + marketDataUpdate.Price[1],TextPosition.TopRight, Brushes.White, new Gui.Tools.SimpleFont("Arial", 12), Brushes.Transparent, Brushes.Transparent, 100);
}
Would it be possible in another way?
Thanks a lot
Comment