Why not write a loop using StringConcatenate() to create a single string from the array?
Elroch:
Why not write a loop using StringConcatenate() to create a single string from the array?
Why not write a loop using StringConcatenate() to create a single string from the array?
yes like this
string array[],str; for(int i=bars;i>0;i--) { if(iRSI(NULL,0,period,PRICE_CLOSE,i)>70 array[i]=DoubleToStr(close[i])+"\n"; str=StringConcatenate(str,array[i]); } comment(str);

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
"Arrays cannot be passed to the Comment() function. Arrays should be output elementwise"
so is there a way to put in the all array in one string?
like this