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

Plot 2 CCI on same panel

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

    #16
    Hello richbois,

    Thanks for your note.

    I am able to reproduce the behavior you shared and this has been reported to the development team.

    They let me know that this behavior will be fixed in the next version release of NinjaTrader (8.0.26.0). There is no ETA for when this next version will be released.

    Let us know if we may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment


      #17
      Originally posted by NinjaTrader_BrandonH View Post
      Hello richbois,

      Thanks for your note.

      I am able to reproduce the behavior you shared and this has been reported to the development team.

      They let me know that this behavior will be fixed in the next version release of NinjaTrader (8.0.26.0). There is no ETA for when this next version will be released.

      Let us know if we may assist further.
      Thanks, Brandon.

      omololu

      Comment


        #18
        Originally posted by richbois View Post
        here is the clean up code that does the same issue when i close NT and restart

        #region Using declarations
        using System;
        using System.Collections.Generic;
        using System.ComponentModel;
        using System.ComponentModel.DataAnnotations;
        using System.Linq;
        using System.Text;
        using System.Threading.Tasks;
        using System.Windows;
        using System.Windows.Input;
        using System.Windows.Media;
        using System.Xml.Serialization;
        using NinjaTrader.Cbi;
        using NinjaTrader.Gui;
        using NinjaTrader.Gui.Chart;
        using NinjaTrader.Gui.SuperDom;
        using NinjaTrader.Gui.Tools;
        using NinjaTrader.Data;
        using NinjaTrader.NinjaScript;
        using NinjaTrader.Core.FloatingPoint;
        using NinjaTrader.NinjaScript.Indicators;
        using NinjaTrader.NinjaScript.DrawingTools;
        #endregion

        //This namespace holds Strategies in this folder and is required. Do not change it.
        namespace NinjaTrader.NinjaScript.Strategies
        {
        public class Ninjatest : Strategy
        {


        private F1 f1;
        private I3 i3;
        private I1 i1;
        private I2 i2;


        protected override void OnStateChange()
        {
        if (State == State.SetDefaults)
        {
        Description = NinjaTrader.Custom.Resource.NinjaScriptStrategyDes criptionSampleATMStrategy;
        Name = "Ninjatest";


        // This strategy has been designed to take advantage of performance gains in Strategy Analyzer optimizations
        // See the Help Guide for additional information

        Calculate = Calculate.OnPriceChange;
        BarsRequiredToTrade = 21 ;
        EntriesPerDirection = 1;
        EntryHandling = EntryHandling.AllEntries;
        IsExitOnSessionCloseStrategy = true;
        ExitOnSessionCloseSeconds = 30;
        IsFillLimitOnTouch = false;
        MaximumBarsLookBack = MaximumBarsLookBack.TwoHundredFiftySix;
        OrderFillResolution = OrderFillResolution.Standard;
        Slippage = 0;
        StartBehavior = StartBehavior.WaitUntilFlat;
        TimeInForce = TimeInForce.Gtc;
        TraceOrders = false;
        RealtimeErrorHandling = RealtimeErrorHandling.StopCancelClose;
        StopTargetHandling = StopTargetHandling.PerEntryExecution;

        // Disable this property for performance gains in Strategy Analyzer optimizations
        // See the Help Guide for additional information
        IsInstantiatedOnEachOptimizationIteration = true;

        }

        else if (State == State.Configure)
        {

        }

        else if (State == State.DataLoaded)
        {
        f1 = F1(Close, true,false,1,1);
        i3 = I3();
        i1 = I1();
        i2 = I2();

        i1.IsOverlay = false;
        i2.IsOverlay = false;

        i1.Panel = i2.Panel = 1;

        AddChartIndicator(f1);
        AddChartIndicator(i3);
        AddChartIndicator(i1);
        AddChartIndicator(i2);
        }


        }

        protected override void OnBarUpdate()
        {

        }



        public override string DisplayName
        {
        get { return Name ;}
        }


        }
        }
        Hi richbois,

        Your posted script would not compile because definitions for F1, I3, I1, and I2 could not be found, so I'm unable to test-drive the strategy.

        omololu

        Comment


          #19
          Originally posted by NinjaTrader_BrandonH View Post
          Hello richbois,

          Thanks for your note.

          I am able to reproduce the behavior you shared and this has been reported to the development team.

          They let me know that this behavior will be fixed in the next version release of NinjaTrader (8.0.26.0). There is no ETA for when this next version will be released.

          Let us know if we may assist further.
          Thank you Brandon for all your help

          Comment


            #20
            Amololu Sorry for the confusion as I realized that posting this code was useless even for Brandon. These 4 indicators are regular indicators with private settings. If you are interested in the code in order to have 2 CCI or 2 of anything else go into the same panel then Brandon's SamplePlotCCC.zip is what you need.

            Comment


              #21
              Originally posted by richbois View Post
              Amololu Sorry for the confusion as I realized that posting this code was useless even for Brandon. These 4 indicators are regular indicators with private settings. If you are interested in the code in order to have 2 CCI or 2 of anything else go into the same panel then Brandon's SamplePlotCCC.zip is what you need.
              Ok ... Thank you.

              omololu

              Comment


                #22
                Originally posted by NinjaTrader_BrandonH View Post
                Hello richbois,

                Thanks for your note.

                I am able to reproduce the behavior you shared and this has been reported to the development team.

                They let me know that this behavior will be fixed in the next version release of NinjaTrader (8.0.26.0). There is no ETA for when this next version will be released.

                Let us know if we may assist further.
                thank you Brandon new version fixed it

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by casabella, Today, 04:12 AM
                0 responses
                11 views
                0 likes
                Last Post casabella  
                Started by Ludwik, Today, 03:52 AM
                0 responses
                7 views
                0 likes
                Last Post Ludwik
                by Ludwik
                 
                Started by wuannetraam, Today, 02:40 AM
                0 responses
                10 views
                0 likes
                Last Post wuannetraam  
                Started by cyberpete76, 03-27-2023, 12:29 AM
                7 responses
                272 views
                1 like
                Last Post slightly  
                Started by renewsaltwater, Today, 01:15 AM
                0 responses
                4 views
                0 likes
                Last Post renewsaltwater  
                Working...
                X