Richard Roberts: Can someone tell me what I have done wrong.
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.
Richard Roberts:
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.
William Roeder:
That was it, thank you for the help
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.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.