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 DawnTreader, 05-08-2024, 05:58 PM
    7 responses
    25 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by sgordet, Today, 05:24 AM
    0 responses
    4 views
    0 likes
    Last Post sgordet
    by sgordet
     
    Started by royhagerman, Today, 04:30 AM
    0 responses
    1 view
    0 likes
    Last Post royhagerman  
    Started by haas88, 03-21-2024, 02:22 AM
    18 responses
    208 views
    0 likes
    Last Post haas88
    by haas88
     
    Started by Board game geek, Today, 02:20 AM
    0 responses
    7 views
    0 likes
    Last Post Board game geek  
    Working...
    X