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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        648 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X