After entering this code I get this: (screenshot)
I want "Today is" and "Balance" to be written in a row. How can I do that?
(c) Sorry for stupid question, I am totally newbie
Do you mean "multiple lines"?
Forum on trading, automated trading systems and testing trading strategies
Ray, 2008.05.30 07:46
Comment("\n Like \n this \n and no.");Forum on trading, automated trading systems and testing trading strategies
How to write a new line in Comment()
Mladen Rakic, 2018.09.15 22:51
Add "\n" for each new line break that you want to insert
Ie:
Comment("first line\n"+ "second line\n"+ "third line\n"+ "...\n"+ "nth line");
Show your new code! We can't read your mind.
Please note, that you can only use one Comment() to display the entire text. If you call it a second time with different text, it will not add to it. It will replace it. Look at the examples above.
After entering this code I get this: (screenshot)
I want "Today is" and "Balance" to be written in a row. How can I do that?
(c) Sorry for stupid question, I am totally newbie
You were close. | Comment ("Today is" , DayOfWeek()); Comment ("Balance =" , AccountBalance()); |
One comment, not two. | Comment ("Today is" , DayOfWeek() , "Balance =" , AccountBalance()); |
or this (you want balance to be two digits). | string output=StringFormat("Today is %d Balance =%.2f", DayOfWeek(), AccountBalance() ); Comment(output); |
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
After entering this code I get this: (screenshot)
I want "Today is" and "Balance" to be written in a row. How can I do that?
(c) Sorry for stupid question, I am totally newbie