Announcement

Collapse
No announcement yet.

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?

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        152 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        89 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        131 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X