Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 10:57:36 +0000



[Programming Help] - text strings

View Count: 1072

[2018-03-12 00:33:18]
User606491 - Posts: 164
I would like to use values calculated within a spreadsheet as part of a text string.

Two questions:

1) How do I get the following written in Excel to work in Sierra Chart?
="Return/Risk of "&TEXT(F8,"#.##")&"x and max loss of "&TEXT(G8,"$###") \\\\ Return/Risk of 5.53x and max loss of $1253


2) Is it possible to use the returned text string as a label on chart?


thank you,
[2018-03-12 19:19:34]
User606491 - Posts: 164
Good afternoon,

Any update here?

thank you.
[2018-03-24 21:23:09]
User606491 - Posts: 164
I still have not received a response here. I would appreciate follow up.

thank you
[2018-03-25 14:20:43]
Sawtooth - Posts: 3993
Try this:
=CONCATENATE("Return/Risk of ",TEXT(F8,"0.00"),"x and max loss of $",TEXT(G8,"0000."))

https://www.sierrachart.com/index.php?page=doc/SpreadsheetFunctions.html#TEXT_Function
[2018-03-25 20:37:35]
User606491 - Posts: 164
YES! This works. Thank you, Tom.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account