This problem does not occur on a 15 minute chart, but it does on a daily chart.
The issue can be reproduced by compiling a new indicator, which is an exact copy of the code from the built in indicator VolumeUpDown, with each occurrence of the string VolumeUpDown renamed to VolumeTest.
In VolumeTest, change line 41 to
if (Close[0] >= Close[1])
In VolumeUpDown, the same line number reads
if (Close[0] >= Open[0]).
If I change line 41 to read the same as the line in VolumeUpDown the bars plot OK, which confirms that the rest of the code is OK.
Is this is bug or am I doing things in the wrong way?
Windows 7 64 bit, up to date with patches
NT version 7.0.1000.10
.NET/CLR Version: 2.0.50727.5456
Comment