When you post code please use the Code button (Alt+S) !
Please EDIT your post and use the CODE button when you post code.
Fernando Carreiro #:
When you post code please use the Code button (Alt+S) !
Please EDIT your post and use the CODE button when you post code.
thank you
I edited my comment amin parvini: I want to print value of "i" but that is printed incorrectly and it does not start printing from zero. This problem does not exist for loops with repetitions below 100(or 150)
It's working just fine for me ...
void OnStart() { Print( "Start ..." ); for( int i=0; i<8; i++ ) { Print( i ); }; Print( "... Stop" ); };
Results ...
@Navdeep Singh #: The experts tab may not be showing all the printed values. Open the log file and check for all values.
You can also just right-click and us the "Viewer" which also allows you to filter based on dates or keywords.
Also, it is a good practice to use conversion functions with Print().
for ( int i = 0; i < 500; i++ ) { Print( IntegerToString(i) ); // in this case }
@Fernando Carreiro: Thanks for the "Viewer" info. It will be very helpful in the future.
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
I want to print value of "i" but that is printed incorrectly and it does not start printing from zero
This problem does not exist for loops with repetitions below 100(or 150)