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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        57 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        143 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        161 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        276 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X