Welcome to NexusFi: the best trading community on the planet, with over 200,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- discounts are available after registering.
-- The NexusFi team
(If you already have an account, login at the top of the page)
Hi, from a keyword reference manual to powerlanguage downloaded from the Multichart site I read that there is function to convert numbers to strings:
"
NumToStr
Returns a specified numerical expression in the form of a string expression.
Usage
NumToStr(Expression,Dec)
Where: Expression - a numerical expression to be converted to a string
expression
Dec - a numerical expression specifying the number of decimal places the
returned string expression is to contain
Example
NumToStr(1500.5,3); will return a string expression "1500.500"
"
so I have this line of code that give me a compilation error:
m_text_obj = DrwText.Create(new ChartPoint(Bars.Time[0], Bars.High[0]), NumToStr(m_volume,2));
it does not recognize "NumToStr"
where is the error?
Thank's
Piero
Can you help answer these questions from other members on NexusFi?
NumToStr is an EasyLanguage/PowerLanguage reserved word that works in regular Multicharts, but not in Multicharts.NET. You can for example use .NET's ToString methods to convert a number to a string.