I have a data set that is 2 minute bars with volume data that I imported through the Quote Manager. However there is no volume data in the Portfolio Trader with my signals that use volume data analysis. To confirm, I printed the volume data to the console, bar-by-bar, and it's all 0.
However if I open a chart in MC, add a volume indicator and use the same data set, the volume data is there and shows up. I tried both trade volume and tick volume, and both result in 0.
Any ideas?
Portfolio Trader, ASCII data and Volume data [SOLVED]
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Portfolio Trader, ASCII data and Volume data
Hello The9000,
You need to compare the source code of the prebuilt Volume indicator with your own code.
You need to compare the source code of the prebuilt Volume indicator with your own code.
Re: Portfolio Trader, ASCII data and Volume data
Hi Henry,
If I replaced the ASCII data with IQFeed data, the volume data shows up in Portfolio Trader.
I added a line of code that is print("Volume = ", volume) to print the volume to the console and the result is 0. With IQFeed data, the correct volume shows up. With ASCII, it's 0 for all bars.
Tony
If I replaced the ASCII data with IQFeed data, the volume data shows up in Portfolio Trader.
I added a line of code that is print("Volume = ", volume) to print the volume to the console and the result is 0. With IQFeed data, the correct volume shows up. With ASCII, it's 0 for all bars.
Tony
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Portfolio Trader, ASCII data and Volume data
Hello Tony,
Have you tried using the Ticks reserved word instead of Volume?
Please also make sure you have the volume data in the Edit Data window of the QuoteManager.
Have you tried using the Ticks reserved word instead of Volume?
Please also make sure you have the volume data in the Edit Data window of the QuoteManager.