Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

custom method

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

    custom method

    Hi,
    How would I get started writing this (with my logic as well, of course), to use in my strategies? As an add-on? Any examples?

    private double GetPercentile(double rank, ISeries series, int xbars)
    { my logic }

    #2
    Hello trader3000a,

    What you provided is a C# method, ISeries was used in NT7 so you would need to change that to Series<double> for NT8, that otherwise would be fine as is.

    Custom methods are not something which is documented with NinjaScript, you would need to look at external C# tutorials if you wanted to learn the underlying C# language and how to use custom methods in C#.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    93 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    138 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    123 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    73 views
    0 likes
    Last Post PaulMohn  
    Working...
    X