NexusFi: Find Your Edge


Home Menu

 





New to Multicharts.net programming language, I have a doubt on numerical conversion..


Discussion in MultiCharts

Updated
    1. trending_up 2,103 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
pieroim
Monopoli(BA)/Italia
 
Posts: 2 since Oct 2019
Thanks Given: 1
Thanks Received: 0

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


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
CFTC Rewrites the Rulebook -- Kalshi Cracks $1B Non-Spor …
Prediction Markets & Event Contracts
Sundays Verdict: Lebanon Locked at 99.85% as Iran June 7 …
Prediction Markets & Event Contracts
Iran and Israel Stand Down: What $9M in Peace Contracts …
Prediction Markets & Event Contracts
Iran War Prediction Markets: Ceasefire 16%, Ground Invas …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
The Pivot Point 113.6³ — Navigating the Prediction of …
26 thanks
Sober Journey With S&P
17 thanks
The Confluence Meter: A Multi-Layered Signal Framework B …
11 thanks
NT8 color choices
10 thanks
Volume Indicators
7 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,447 since Apr 2013
Thanks Given: 493
Thanks Received: 1,639

pieroim,

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.

Regards,

ABCTG


Follow me on X Reply With Quote
Thanked by:
  #3 (permalink)
pieroim
Monopoli(BA)/Italia
 
Posts: 2 since Oct 2019
Thanks Given: 1
Thanks Received: 0


ok, thank's..
do you know if there is a reference manual for .net language?

Thank's again..
Piero


Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,447 since Apr 2013
Thanks Given: 493
Thanks Received: 1,639

Piero,

you are welcome. There is a programming guide that you can download it from the Multicharts website: https://www.multicharts.com/downloads/MultiCharts.NET-ProgrammingGuide-v1.1.pdf.
Additionally you can use the built-in help of the editor and check out C# tutorials that you can find on the net.

Regards,

ABCTG


pieroim View Post
ok, thank's..
do you know if there is a reference manual for .net language?

Thank's again..
Piero


Follow me on X Reply With Quote




Last Updated on October 16, 2019


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts