Simple counter producing number i do not want
My guess: you are printing so much that your assumption that the GUI is showing all lines, is wrong. Right Click on a line and open the real log
file.
Hi, I am learning to code, wrote a simple counter as practice.
it is just supposed to Print 1,2,3,4,5,etc but the count is coming out as 6363,6364,6365 etc.
Can someone tell me what I have done wrong.
Thank you in advance.
I think it is because you are using Bars.
I don't know why but if you are trying to count the candle in the chart, use:
long candleCount = ChartGetInteger(0,CHART_FIRST_VISIBLE_BAR,0); for(int i = 0; i < candleCount; i++){ //do you thing here }
goodluck.
My guess: you are printing so much that your assumption that the GUI is showing all lines, is wrong. Right Click on a line and open the real
log file.
Hi, I am learning to code, wrote a simple counter as practice.
it is just supposed to Print 1,2,3,4,5,etc but the count is coming out as 6363,6364,6365 etc.
Can someone tell me what I have done wrong.
Thank you in advance.