Can you tell me if FirstTickOfBar is valid only for the primary bars object or is it valid for other BarArray ? i.e
protectedoverridevoid Initialize()
{
Add(Instrument.FullName ........); // Instrument 1
Add(Instrument.FullName ........); // Instrument 2
.....
protectedoverridevoid OnBarUpdate()
{
if (FirstTickOfBar == true) // Valid for base instrument
if(BarsInProgress !=0)
{
if (BarsInProgress ==1)
{
If (FirstTickOfBar == true) // Is this valid for Instrument 1
{
if (BarsInProgress ==2)
{
If (FirstTickOfBar == true) // Is this valid for Instrument 2
{
Thanks for any help
Comment