Can't get data volume in Signal

Questions about MultiCharts .NET and user contributed studies.
Vik
Posts: 6
Joined: 22 Apr 2022
Has thanked: 3 times

Can't get data volume in Signal

Postby Vik » 05 May 2022

Hi Team,
Please help to understand what's wrong. I can't get data volume from a signal script. The code from the article below works in Indicator but exactly the same coding returns zero for all values in Signal. Thanks in advance,

https://www.tradingcode.net/multicharts ... ta-series/
Attachments
TestVolumeSignal.pln
(2.04 KiB) Downloaded 85 times

User avatar
Tammy MultiCharts
Posts: 200
Joined: 06 Aug 2020
Has thanked: 6 times
Been thanked: 65 times

Re: Can't get data volume in Signal

Postby Tammy MultiCharts » 06 May 2022

Hello Vik,

Please also attach the following files so that we could check the issue on our end:
1. The workspace where the issue is reproduced.
2. Export of used symbols (with data) from QuoteManager in .qmd archive.

Vik
Posts: 6
Joined: 22 Apr 2022
Has thanked: 3 times

Re: Can't get data volume in Signal

Postby Vik » 06 May 2022

Here it is...
Attachments
TST.wsp
Workspace
(95.51 KiB) Downloaded 84 times
Export.qmd
Symbol data
(151.61 KiB) Downloaded 82 times

User avatar
Tammy MultiCharts
Posts: 200
Joined: 06 Aug 2020
Has thanked: 6 times
Been thanked: 65 times

Re: Can't get data volume in Signal

Postby Tammy MultiCharts » 06 May 2022

Hi Vik,

You have Bar Magnifier enabled with tick detalization in your workspace.
The daily bars you are using have Volume data, whereas tick bars don't have Volume. That is why when you apply an indicator, you can get Volume values from it, while in the signal it returns zero.
Please disable Bar Magnifier in Format > Strategy Properties > Backtesting tad (this must be done for each chart).

Vik
Posts: 6
Joined: 22 Apr 2022
Has thanked: 3 times

Re: Can't get data volume in Signal

Postby Vik » 06 May 2022

Thanks, Clear. It works now!


Return to “MultiCharts .NET”