Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Passing a struct to a method as a reference

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

    Passing a struct to a method as a reference

    Hello,

    I try to pass a struct to a method as a reference.

    Unfortunately, it seems not to compile. I am wondering if passing a struct to a method is possible with NinjaTrader. I believe that my code should compile, but it does not.

    Any ideas? I have a attached an example.

    Kind regards
    Gerik
    Attached Files

    #2
    Hello Gerik,

    Thanks for your post.

    This is outside of the scope of the support we are able to provide in the Support department at NinjaTrader.

    You could consider doing a Google search on the topic to research how this might be accomplished in C#.

    That said, this forum thread will be open for other community members to share their insights on the topic.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Thank you Brandon. I found a solution in stackoverflow. :-) Now it is working.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X