protectedoverridevoid Initialize()
{
BPer= BarsPeriod.Value;
Add(PeriodType.Minute,90);
CalculateOnBarClose = true;
InstrumentName=(Instrument.MasterInstrument.Name[1].ToString());
BValue= (BarsPeriods[1].Id.ToString()) ;
Print (BValue);
Print (BPer);
Print (InstrumentName);
}
Yields the following results on a GBPUSD 30 minute chart;
Minute
30
B
Minute
30
Q
The 'Minute' and '30' are correct.
Why are 'B' and 'Q' being returned? I am expecting 'GBPUSD'
If I use InstrumentName=(Instrument.FullName[0].ToString()); I get the same type of results for InstrumentName.
I checked the ref mat'l that I found referenced on the forum. I believe I did what was indicated on the forum.
Thank you,
Duke
Comment