ascii mapping doesn't import volume data  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
novaleaf
Posts: 49
Joined: 17 Apr 2014
Has thanked: 9 times
Been thanked: 4 times

ascii mapping doesn't import volume data

Postby novaleaf » 14 May 2015

I have a text file with data such as the following, but volume information, though mapped properly, is not available in charts or this.Bar.Volume

do I need to name the volume column differently? or something else?

Code: Select all

symbol,date,time,open,high,low,close,volume
MBVT,20150427,0930,29.260000,29.260000,29.260000,29.260000,49
MBVT,20150427,0938,29.610000,29.610000,29.610000,29.610000,12
MBVT,20150427,1015,29.500000,29.500000,29.500000,29.500000,11
MBVT,20150427,1219,29.320000,29.320000,29.250000,29.250000,201
MBVT,20150427,1229,29.250000,29.250000,29.250000,29.250000,13
MBVT,20150427,1245,29.250000,29.250000,29.250000,29.250000,100
MBVT,20150427,1258,29.390000,29.390000,29.390000,29.390000,1
MBVT,20150427,1308,29.250000,29.250000,29.250000,29.250000,2
MBVT,20150427,1312,29.390000,29.390000,29.390000,29.390000,99

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: ascii mapping doesn't import volume data  [SOLVED]

Postby JoshM » 15 May 2015

I have a text file with data such as the following, but volume information, though mapped properly, is not available in charts or this.Bar.Volume
Have you tried `Bars.Ticks`? When your chart is set to 'Trade Volume' with the 'Build Volume On' setting (Format Instrument -> Settings tab), the `Bars.Ticks` property returns the volume for a certain bar.

`Bars.Volume` only returns the total volume for a bar when the time frame is set to 1 day or higher (otherwise it returns the uptick volume).

For more, see volume data in MultiCharts .NET.

novaleaf
Posts: 49
Joined: 17 Apr 2014
Has thanked: 9 times
Been thanked: 4 times

Re: ascii mapping doesn't import volume data

Postby novaleaf » 15 May 2015

thank you Josh, I switched to use Bars.TrueVolume().Value and now it provides the right volume data for ascii mapped or exchange realtime data.


Return to “MultiCharts .NET”