Hello, I want to make use of the built-in function: Volume to do analysis on intraday volume. The problem comes as I run it on current session. There is a discrepancy between values of the chart and output of the powerlangauge editor. Here is the example at 1515 on 17/5/2017 the volume was 3,318 as per the Data Window and was 2,863 as per Output Window (please see files attached). I used the built-in Volume indicator to get the result and the coding is as following:
Code: Select all
if BarType >= 2 and BarType < 5 then
Plot1( Volume, "Volume" )
else
Plot1( Ticks, "Volume" ) ;
If Date = 1170517 and symbol = "HSIK17" and barstatus =2 then Print(DateTimeToString(dateTime), " ", Volume);
Anyone knows if I did something wrong? Thanks!