Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

include a file NT8

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

    include a file NT8

    Hi.

    I'm building a strategy and I want to write all the functions in a separate file that I can import from other strategies.

    same as mqh file in mql (in MT4).
    (same as any software project that has more than 1 file...)

    what is the best way to do that?

    #2
    Hello gsapir,

    Add the methods to a file in the addon folder in their own namespace.

    If these were regular classes, you can create an object within the indicator of that classtype and then use the methods within.

    Its also possible, though with limited support, to use static classes and methods.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by benmarkal, Yesterday, 12:52 PM
    3 responses
    23 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by helpwanted, Today, 03:06 AM
    1 response
    19 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    11 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    244 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    388 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X