Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cannot display or use a certain Bollinger of an indicator in a strategy

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

    Cannot display or use a certain Bollinger of an indicator in a strategy

    I have a spread indicator which I believe I found posted on this forum. I create a chart of M6B 06-15 at 5min and add the following with my strategy.

    Add("M6E 06-15", PeriodType.Minute, 5);
    Add("M6B 06-15", PeriodType.Day, 1);
    Add("M6B 06-15", PeriodType.Minute, 5);

    Next if i try and create a Bollinger applied to this Spread indicator at a day interval it will display a blank panel, however all other indicators I tried a Bollinger on work fine at the day interval. I can also display the Spread indicator at the day interval without the bollinger applied.

    Using the following as an entry condition will not work.

    CrossBelow(Spread(BarsArray[3],1, -1, "M6E 06-15", true), Bollinger(Spread(BarsArray[2], 1, -1, "M6E 06-15", true), 2, 365), 1)

    Yet if I change the bars array for the Spread under the Bollinger to the following it will work. However this is not a viable workaround since as soon as a couple thousand is reached for the period it takes far to long to run.

    CrossBelow(Spread(BarsArray[3],1, -1, "M6E 06-15", true), Bollinger(Spread(BarsArray[3], 1, -1, "M6E 06-15", true), 2, 90000), 1)

    It seems that this is specific to the spread indicator, would there be any way to display the Bollinger of the Spread at the day interval?

    Thanks

    #2
    and in addition to displaying, more importantly use as a condition in the strategy. Would creating a data series from the spread then applying the Bollinger work?

    Comment


      #3
      Hello Chris001,

      Thank you for your post.

      Can you provide the .cs file for the Spread indicator you are using or the link to the file you downloaded?

      Was it perhaps the Spread indicator at the following link?

      Comment


        #4
        here is the indicator

        http://www.ninjatrader.com/support/f...catid=4&id=367

        So I tried creating a data series with the following code added to my strategy, assuming this was done correctly, no problem the strategy will still run.

        Code:
                #region Variables
        		private DataSeries sSeries;												
                #endregion
        
        protected override void OnBarUpdate()
                {
        			
        			sSeries = new DataSeries(Spread(BarsArray[2], 1, -1, "M6E 06-15", true));
        }
        But when I add a condition dealing with this series it takes so long I just wind up killing NT than continue waiting.

        Code:
        if(CrossBelow(Spread(BarsArray[3],1, -1, "M6E 06-15", true), Bollinger(sSeries, 2, 200), 1))
        {do something}

        Comment


          #5
          Hello Chris001,

          Thank you for your response.

          I would recommend contacting the developer of the indicator for information on any performance issues or using the indicator in a multiple series script. We do not provide debugging or troubleshooting for custom third party indicators.

          Please let me know if you have any questions.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          69 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          42 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          24 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          27 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          54 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X