Hi,
When I plot an intraday chart of an instrument with "build volume on trade volume" selected not all of the incoming ticks are increasing the volume on the display using
plot(volume);
in fact if you also plot(ticks) this is a larger (correct) number.
If you hit refresh it corrects itself but as the live bar continues building the volume does not reflect all the ticks again.
running time and sales alongside it looks like only random ticks (maybe 1 in 4) actually register volume on the chart?
Of course this is easy to get around but it doesn't seem right. I know all the old TS indicators check for bar type but isn't that just legacy stuff and unnecessary now? It still does not explain how volume sometimes updates sometimes not and that a refresh fixes it.
e.g. if BarType >= 2 and BarType < 5 then "use volume" else "use ticks"
Volume not reflecting actual volume on live data
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Volume not reflecting actual volume on live data
Hello Nick,
Ticks and volume reserved words work slightly differently. Please refer to the corresponding articles.
Also make sure your indicator has the option "Skip identical ticks" unchecked in Format->Study->Format->Properties.
Ticks and volume reserved words work slightly differently. Please refer to the corresponding articles.
Also make sure your indicator has the option "Skip identical ticks" unchecked in Format->Study->Format->Properties.
Re: Volume not reflecting actual volume on live data
Hi Henry,
Ahh, OK thanks. So on intra-day charts "ticks" contain the actual volume and volume contains volume on upticks! I don't know why I thought that "legacy" stuff had gone, a senior moment. I guess Omega thought it was a good idea back in the eighties.
Ahh, OK thanks. So on intra-day charts "ticks" contain the actual volume and volume contains volume on upticks! I don't know why I thought that "legacy" stuff had gone, a senior moment. I guess Omega thought it was a good idea back in the eighties.
Re: Volume not reflecting actual volume on live data
A quick side question that is kinda related. Are there reserved word to get volume conducted at the bid and volume conducted at the ask?
Presuambly this is done through a similar mechanism to upticks but with volume@ask returned instead? I seem to recall a beta before the current implementation that you could get upticks to return the upvolume (volume@bid) though I am probably mistaken.
Presuambly this is done through a similar mechanism to upticks but with volume@ask returned instead? I seem to recall a beta before the current implementation that you could get upticks to return the upvolume (volume@bid) though I am probably mistaken.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Volume not reflecting actual volume on live data
Thanks Henry. I wonder why using existing keywords was chosen rather than introducing new keywords (e.g. UpVolume,DownVolume)? If you want to study up/down ticks and up/down volume on the same data series you can't the way I understand it (which may be incorrect). Of course you could apply a second identical series to the chart (one for ticks one for volume) but that is not as 'clean' and consumes more resources.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Volume not reflecting actual volume on live data
These reserved words adjust based on the settings you are using for your chart:
UpTicks/DownTicks:
Return the total number of Up/Down ticks for the current bar if Build Volume On is set to Tick Count. Return the total Up/Down volume for the current bar if Build Volume On is set to Trade Volume.
UpTicks/DownTicks:
Return the total number of Up/Down ticks for the current bar if Build Volume On is set to Tick Count. Return the total Up/Down volume for the current bar if Build Volume On is set to Trade Volume.
Re: Volume not reflecting actual volume on live data
Hi Henry I understand that. My point is that it would make more sense to have one set of reserve words for ticks and one set for volume. I can also understand why and how it was implemented like this but a cleaner approach would to not re purpose things.These reserved words adjust based on the settings you are using for your chart:
UpTicks/DownTicks:
Return the total number of Up/Down ticks for the current bar if Build Volume On is set to Tick Count. Return the total Up/Down volume for the current bar if Build Volume On is set to Trade Volume.
To read up/down ticks and up/down volume in the same indicator you would need to have two versions of the same data series on the chart (one built on up volume one built on ticks), this is clearly not the most efficient way of doing things.