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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      72 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      39 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X