Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bitwise?

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

    Bitwise?

    Can I do a direct translation from C to C#

    C code
    jf=n1 & (ni+k); We use bitwise and to wrap-around the pointers.

    NT accepts the above code, but is it the same?

    Thanks

    Tinkerz
    Last edited by tinkerz; 07-29-2010, 01:19 PM.

    #2
    Hello Tinkerz,

    Unfortunately this is beyond our scope of support. Hopefully another community member may offer input here.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Tinkerz,

      Yes, you can do bitwise operations, you just have to be sure to cast things properly (or use the proper types). If you're thinking of pointers in the traditional C style coding sense, .NET in general is not pointer friendly.

      Hope this helps.
      mrlogik
      NinjaTrader Ecosystem Vendor - Purelogik Trading

      Comment


        #4
        Is there any website that can help me understand what

        We use bitwise and to wrap-around the pointers means,

        I understand what the operation is trying to do, I would like to understand how to do it better in .net

        thanks

        Comment


          #5
          I'm sure if you google c# .net bitwise operations you'll find a slew of information.

          I'm not sure you can do it better in .NET; what you have looks fine to me.
          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
          647 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          368 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          108 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          571 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