If i have two instruments on chart,
how to deterime which instrument got/caused current tick ?
ciao
radekj
How to determine which instrument got current tick ?!
- 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 ?!
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.
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.
Re: How to determine which instrument got current tick ?!
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.
Price,volume,upticks etc can be same for two datapoints only the ID is different.
- 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 ?!
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.