How to determine which instrument got current tick ?!

Questions about MultiCharts .NET and user contributed studies.
radekj
Posts: 113
Joined: 28 Apr 2008
Has thanked: 20 times
Been thanked: 1 time

How to determine which instrument got current tick ?!

Postby radekj » 29 Aug 2012

If i have two instruments on chart,
how to deterime which instrument got/caused current tick ?

ciao
radekj

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: How to determine which instrument got current tick ?!

Postby Henry MultiСharts » 29 Aug 2012

Hello Radekj,

You need to remember the last tick's time/other parameter for each instrument and then compare the new ticks's value to determine which data series updated.

radekj
Posts: 113
Joined: 28 Apr 2008
Has thanked: 20 times
Been thanked: 1 time

Re: How to determine which instrument got current tick ?!

Postby radekj » 29 Aug 2012

Via timestamp it is not possible, because instrument1 and instrument2 have always same timestamp.

Price,volume,upticks etc can be same for two datapoints only the ID is different.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: How to determine which instrument got current tick ?!

Postby Henry MultiСharts » 29 Aug 2012

What I can suggest is to remember the volume and price on the last bar. Volume and/or price should be changed with the new tick.


Return to “MultiCharts .NET”