Thank you for your reply.
You can use Instrument.FullName to get the instrument name and expiry if applicable:
protected override void OnBarUpdate()
{
// Print the full name (including contract month) of the configured instrument
Print(String.Format("{0} is being used as the input series", Instrument.FullName));
}
Print(BarsPeriod.Value + " " + BarsPeriod.BarsPeriodType);
Please let us know if we may be of further assistance to you.

Comment