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

OnFundamentalData(), multi-instrument strategy

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

    OnFundamentalData(), multi-instrument strategy

    Good morning,

    I would like to ask about OnFundamentalData() method. I'm working on a multi-instrument strategy. Can I expect a call for every instrument / series added to my strategy? And how to tell which instrument is associated with a particular call?

    Regards.

    #2
    Hello grassmouse,

    Thank you for your post and welcome to the NinjaTrader Support Forum!

    You can expect calls from each instrument in the code. To check what instrument is called you can use String.Contains: http://msdn.microsoft.com/en-us/libr...v=vs.110).aspx

    For example:
    Code:
    			if(e.ToString().Contains("ES 12-14"))
    			{
    				Print("Contains ES");
    			}

    Comment


      #3
      Thank you very much.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by nleitman, Yesterday, 11:46 AM
      15 responses
      42 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by MSerag, Yesterday, 11:52 PM
      3 responses
      23 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by dcriador, Yesterday, 01:43 AM
      6 responses
      27 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by James650, Today, 08:25 AM
      1 response
      2 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by Rogers101, 05-05-2024, 11:30 AM
      14 responses
      40 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X