Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to share data series between strategy and indicator. need urgent help

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

    How to share data series between strategy and indicator. need urgent help

    Hi

    it has to be something to sync/share data series in strategy and indicator.

    What I am trying to do is to plot a spread between 2 securities. I know it will be coming in next version but I need it now.

    Hence I have series of doubles representing spread within strategy.

    Now I need to plot it somehow. I added custom indicator into the strategy hoping that I can pass values from strategy into that indicator using public methods and variables.

    However it appeared that Ninja StrategyAnalyzer works as following:
    1. instantiate strategy
    2. instantiate indicator twice
    3. run strategy to the end
    4. instantiate indicator again

    hence all data I have set during running the strategy lost when indicator has been instantiated.

    How can I manually sync data between strategy and indicator?

    #2
    Hi maxima,

    Please see this reference sample: [redacted]
    Last edited by NinjaTrader_ChelseaB; 09-09-2020, 02:06 PM.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thank you.

      Comment


        #4
        That link has been hijacked. Better remove it.

        Comment


          #5
          Hello Trader-K,

          This thread is very old and we've gone through several link changes. I believe this is the current version of the linked page:

          NinjaTrader 8: https://ninjatrader.com/support/help...alues_that.htm

          NinjaTrader 7: https://ninjatrader.com/support/help...alues_that.htm

          Please let us know if we may be of further assistance to you.
          Kate W.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by fx.practic, 10-15-2013, 12:53 AM
          5 responses
          5,406 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by Shai Samuel, 07-02-2022, 02:46 PM
          4 responses
          98 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by DJ888, Yesterday, 10:57 PM
          0 responses
          8 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by MacDad, 02-25-2024, 11:48 PM
          7 responses
          160 views
          0 likes
          Last Post loganjarosz123  
          Started by Belfortbucks, Yesterday, 09:29 PM
          0 responses
          9 views
          0 likes
          Last Post Belfortbucks  
          Working...
          X