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 pechtri, 06-22-2023, 02:31 AM
          10 responses
          124 views
          0 likes
          Last Post Leeroy_Jenkins  
          Started by judysamnt7, 03-13-2023, 09:11 AM
          4 responses
          59 views
          0 likes
          Last Post DynamicTest  
          Started by ScottWalsh, Yesterday, 06:52 PM
          4 responses
          36 views
          0 likes
          Last Post ScottWalsh  
          Started by olisav57, Yesterday, 07:39 PM
          0 responses
          7 views
          0 likes
          Last Post olisav57  
          Started by trilliantrader, Yesterday, 03:01 PM
          2 responses
          22 views
          0 likes
          Last Post helpwanted  
          Working...
          X