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

Communicating Between Script

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

    Communicating Between Script

    Is there a simple way to have one strategy query another strategy (or several others) for the status of a user defined variable ? Also can that strategy then be backtested along with the strategies it queries.

    thx

    #2
    Last year I published in this forum a basic concept which describes how strategies could exchange data (P/L values in this case).

    webart, if you have the needed coding knowledge, you could use this implementation as a basis for your own development:



    Regards
    Ralph

    Comment


      #3
      Thanks Ralph I have read your thread, thanks, I was hoping there might be an easier way Actually I only need to read the MA slope of mulitple instruments, so I think in NT7 I can do this from 1 script,



      Thanks for the offer mountain climber, I actually found someone yesterday that is will to help for a fee.

      Comment


        #4
        Right way to go webart. Just in case you are not aware: even NT6.5 can handle multi-instrument strategies, but not multi-instrument indicators.

        Regards
        Ralph

        Comment


          #5
          I changed my post below so it reflects what I meant/is more accurate...

          Ralph - would it not be easier to just include all of the strat code in one strat? I am thinking so... Nevertheless, good post....

          ben

          Comment


            #6
            Thanks for the positive feedback, Ben.

            Do I understand your question correctly: Implement different strategies as on strategy, handling the trading-position-series separately, and finally having easier access to the statistics of the series without static lists and registration procedures?

            Regards
            Ralph

            Comment


              #7
              Not free mountainclimber for a FEE

              My strategy Ralph looks at the slope MA of 2 different instruments and then trades a third instrurment based on the slope MA of the other 2.

              Comment


                #8
                Oh, got it!

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Barry Milan, Yesterday, 10:35 PM
                5 responses
                16 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by DanielSanMartin, Yesterday, 02:37 PM
                2 responses
                13 views
                0 likes
                Last Post DanielSanMartin  
                Started by DJ888, 04-16-2024, 06:09 PM
                4 responses
                12 views
                0 likes
                Last Post DJ888
                by DJ888
                 
                Started by terofs, Today, 04:18 PM
                0 responses
                11 views
                0 likes
                Last Post terofs
                by terofs
                 
                Started by nandhumca, Today, 03:41 PM
                0 responses
                8 views
                0 likes
                Last Post nandhumca  
                Working...
                X