Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Memory Mapped Files

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

    Memory Mapped Files

    Hi,

    I'm wanting to use the MemorymappedFiles libraries to pass information between indicators in differernt charts. This namespace was added in .NET 4.0, and is contained within System.Core. Am I able to use it? if I add System.Core the compiler complains about a duplicate assembly, I'm assuming thats Ninjatrader.Core.

    if not, would there be another way to do it? I have created a drawing tool and I'm trying to implement a similar function to the built in NT function where you can add the drawing object to all (in my case just some) charts.

    My idea was to simply pass the parameters of the drawing object to the other charts using some form of IPC (I chose MMF) and then the indicator in that chart would draw the object.

    I have been able to implement WCF in my indicator previously, but it seems like overkill.

    Thanks,
    will.

    #2
    Hello dontpanic,

    Thanks for your post.

    NinjaTrader version 7 is limited to .Net 3.5. (NinjaTrader 8 will be .Net 4.5)

    I am not aware of a supported method to accomplish your goals however others in the community may be able to advise alternatives.

    Comment


      #3
      I've been looking at the SendMessage() methods and they look like they can do what I need.

      To receive the sent message I'm using :-

      protected override void WndProc(ref Message m)
      {
      }

      and when compiling I get the error :

      'Message' is an ambiguous reference between 'NinjaTrader.Cbi.Message' and 'System.Windows.Forms.Message'

      I tried

      protected override void WndProc(ref System.Windows.Forms.Message m)

      and I get the error

      'NinjaTrader.Indicator.WillsTradeZones.WndProc(ref System.Windows.Forms.Message)': no suitable method found to override

      Can anyone help with this?

      Thanks,
      Will.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      561 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      325 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      547 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X