Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot value with many decimal

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Plot value with many decimal

    hi, is possible plot number with many decimal?

    ex:

    long test= Volume[0]/High[0];


    [Browsable(false)]
    [XmlIgnore]
    public Series<long> test {
    get { return Values[0]; }
    }

    It give me an error Code : cs0029 " cannnot implicity convert type double to Long..

    Ok...but i want plot decimal number ...how i do it?

    #2
    Hello esignal,

    Thank you for writing in.

    Values[0] is of type Series<double>.

    Please change the type of the variable test to double and change the Series<long> to Series<double>.

    You will need to override the FormatPriceMarker() method to display more decimal places: http://ninjatrader.com/support/helpG...ricemarker.htm

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Aviram Y, Today, 05:29 AM
    0 responses
    1 view
    0 likes
    Last Post Aviram Y  
    Started by quantismo, 04-17-2024, 05:13 PM
    3 responses
    25 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by ScottWalsh, 04-16-2024, 04:29 PM
    7 responses
    34 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by cls71, Today, 04:45 AM
    0 responses
    6 views
    0 likes
    Last Post cls71
    by cls71
     
    Started by mjairg, 07-20-2023, 11:57 PM
    3 responses
    216 views
    1 like
    Last Post PaulMohn  
    Working...
    X