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 AveryFlynn, Today, 04:57 AM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by Max238, Today, 01:28 AM
          4 responses
          37 views
          0 likes
          Last Post Max238
          by Max238
           
          Started by r68cervera, Today, 05:29 AM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by geddyisodin, Today, 05:20 AM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by timko, Today, 06:45 AM
          2 responses
          14 views
          0 likes
          Last Post NinjaTrader_ChristopherJ  
          Working...
          X