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

Using Add() in a Strategy and Indicator on similar instruments

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

    Using Add() in a Strategy and Indicator on similar instruments

    Hi,

    I have a multi-instruments strategy that loads several instruments and also load an Indicator that generate signals for the strategy. The indicator also load the instruments for his analysis.

    The results I'm getting when running the indicator alone and when the strategy is using the indicator are totally different.(I have debug Printing from the indicator)

    Does the combine loading sequence has an affect?
    If yes, how? and how can I solve it?

    Thanks in advance for the great support!

    #2
    freewind, yes the loading up could have strong influence here, most importantly in which BarsInProgress context are you calling your MultiSeries indicator from the strategy?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      In the Strategy I'm calling BarsInProgress in the strategy context.
      But what I want to know that if before I ADD the instruments to the strategy I ADD the indicator which also load instruments in him.
      Does this will affect the BarsInProgressof the strategy?

      TX!

      Comment


        #4
        No, the BarsInProgress count is specific to each script here - so when are you calling the indicator values in your strategy, from the primary strategy series only for example (BIP0) - you would need to ensure your print debug statements cover the current BIP and indicator value as well, so you can see how your indicator returns react with your code used.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Waxavi, Today, 02:10 AM
        0 responses
        3 views
        0 likes
        Last Post Waxavi
        by Waxavi
         
        Started by TradeForge, Today, 02:09 AM
        0 responses
        9 views
        0 likes
        Last Post TradeForge  
        Started by Waxavi, Today, 02:00 AM
        0 responses
        2 views
        0 likes
        Last Post Waxavi
        by Waxavi
         
        Started by elirion, Today, 01:36 AM
        0 responses
        4 views
        0 likes
        Last Post elirion
        by elirion
         
        Started by gentlebenthebear, Today, 01:30 AM
        0 responses
        4 views
        0 likes
        Last Post gentlebenthebear  
        Working...
        X