How to get ib tick data "micro second information"?

Hello,

i do not understand how to request the "micro second value" from stored ib ticks ?
In an exploration it looks well, by converting to string this information got lost ?
For me it seems to be a counter only at runtime, could be my assumption possible ?

_SECTION_BEGIN( "_ib_tick_micro" );

SetBarsRequired( sbrAll, sbrAll );

bi = BarIndex();
mls = MilliSec();
mcs = MicroSec();

Filter = 1;

AddColumn( bi, "barindex", 1, colorDefault, colorLightGrey, 100 );
AddColumn( mls, "milli", 1, colorDefault, colorDefault, 100 );
AddColumn( mcs, "micro", 1, colorDefault, colorLightGrey, 100 );
AddTextColumn( NumToStr( mcs, 1.9 ), "micro", 1.9, colorDefault, colorDefault, 100 );

_SECTION_END();

Thanks,
Peter

You are using it wrong. Text columns are for TEXT, not for arrays.

For arrays use AddColumn.

AddTextColumn is NOT FOR ARRAYS.

AddTextColumn accepts parameter that is SINGLE STRING, not 'array of strings'.

When you pass array to NumToStr, it converts only last value (or selected value) of array to SINGLE STRING.

So such column would hold SAME TEXT VALUE for all bars per single symbol.

Correct use is AddColumn:

AddColumn( mcs, "micro", 1.9 );

Tomasz, as always, you are right, thank you !

just to test/verify ...

_SECTION_BEGIN( "_ib_tick_micro" );

SetBarsRequired( sbrAll, sbrAll );

mcs = MicroSec();
dt = DateTime();

for( i = 984600; i < 984955; i++ )
{
    xdt = DateTimeToStr( dt[ i ], 2 );
    _TRACE( "mcs : " + xdt + "    " + NumToStr( mcs[i], 1, False ) );
}

_SECTION_END();

Best regards,
Peter