Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Paul H.NinjaTrader Customer Service

    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 RookieTrader, Today, 09:37 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by alifarahani, Today, 09:40 AM
      0 responses
      2 views
      0 likes
      Last Post alifarahani  
      Started by Gerik, Today, 09:40 AM
      0 responses
      1 view
      0 likes
      Last Post Gerik
      by Gerik
       
      Started by KennyK, 05-29-2017, 02:02 AM
      3 responses
      1,282 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by AttiM, 02-14-2024, 05:20 PM
      11 responses
      184 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X