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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      62 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      134 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X