Page 1 of 1

incorrect volume data in signal

Posted: Oct 17 2012
by lawrence124
hi, i used the following to debug my signal:

Print(File("C:\Korlog.txt"),CurrentDate,CurrentTime,RSI(c,lengthP),c,Volume);

I read the log file, closing price, and RSI are correct bar by bar (according to the chart), but volume data is never correct and I tried to add the Volume Avg indicator and that one is correct too. (the volume bar value is 1695, while the log file say 864, and i dont see correct volume info in all the bars)

much appreciated!

Re: incorrect volume data in signal

Posted: Oct 17 2012
by TJ
hi, i used the following to debug my signal:

Print(File("C:\Korlog.txt"),CurrentDate,CurrentTime,RSI(c,lengthP),c,Volume);

I read the log file, closing price, and RSI are correct bar by bar (according to the chart), but volume data is never correct and I tried to add the Volume Avg indicator and that one is correct too. (the volume bar value is 1695, while the log file say 864, and i dont see correct volume info in all the bars)

much appreciated!
Look up the definitions of:

Volume
Ticks


https://www.multicharts.com/trading-sof ... /Main_Page

Re: incorrect volume data in signal

Posted: Oct 17 2012
by TJ
ps. Read the code in the Volume Avg indicator, see which keyword it uses.

Re: incorrect volume data in signal  [SOLVED]

Posted: Oct 17 2012
by lawrence124
yes, i fixed it based on the bartype >=2 code from the indicator, though, i dont have much idea why tick is volume for intraday, it's a bit confusing for newbies~ thanks for the pointers~