Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Does writing Ninja Script code with "this." prefixes cause problems?

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

    Does writing Ninja Script code with "this." prefixes cause problems?

    Hello,

    Does writing Ninja Script code with "this." prefixes cause problems?

    I seem to recall someone on the forums suggesting that it might be problematic, and I am trying to polish off a Ninja Trader application in which I have typed "this." on lots of lines. I have also told my users that typing "this." is good because it gives them great intellisense so that they can see all the possible choices when they are programming.

    Thanks in advance,

    ChiTrader2000

    #2
    >> Does writing Ninja Script code with "this." prefixes cause problems?
    No. No need to clean up your code. Please consult MS docs on C# for details.

    Comment


      #3
      Hello NinjaTrader_Dierk,

      Thanks for the quick reply.

      I am glad to hear that using "this." syntax is fine in NT. Not sure where I heard the rumor that it might be a problem.

      Thanks again,

      ChiTrader2000

      Comment


        #4
        I use .this all the time and it works fine.

        Any programming nomenclature you can you in C# in general, you should also be able to do in NT.
        mrlogik
        NinjaTrader Ecosystem Vendor - Purelogik Trading

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        646 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        367 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        569 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X