Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Mode from a set of numbers

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

    Mode from a set of numbers

    Is it possible to calculate Mode from a set of numbers in NT7 or any function available

    #2
    Hello,

    Are you referring to Mode in Math?

    If so I don't believe there would be a specific item for this in the platform already, you could look over some user posts on this using Google though to locate a general C# solution to finding the mode of an array.

    I want to find the Mode in an Array. I know that I have to do nested loops to check each value and see how often the element in the array appears. Then I have to count the number of times the second


    The second answer on the above link seems to be a fairly efficient way to find the Mode of an Array using Linq in C#.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Haiasi, 04-25-2024, 06:53 PM
    2 responses
    17 views
    0 likes
    Last Post Massinisa  
    Started by Creamers, Today, 05:32 AM
    0 responses
    5 views
    0 likes
    Last Post Creamers  
    Started by Segwin, 05-07-2018, 02:15 PM
    12 responses
    1,786 views
    0 likes
    Last Post Leafcutter  
    Started by poplagelu, Today, 05:00 AM
    0 responses
    3 views
    0 likes
    Last Post poplagelu  
    Started by fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,408 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Working...
    X