Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator moving from panel 2 to chart

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

    Indicator moving from panel 2 to chart

    I have an SMA indicator programmed directly in my strategy with cumulative delta as its input.

    I have set to be in panel 2.

    Everything is fine and then randomly the indicator moves to the chart... so you cannot see the price action

    The code is below. I am guessing it is something to do with SMA defaulting to the chart window... maybe


    OrderFlowCumulativeDelta1 = OrderFlowCumulativeDelta(Close, NinjaTrader.NinjaScript.Indicators.CumulativeDelta Type.BidAsk, NinjaTrader.NinjaScript.Indicators.CumulativeDelta Period.Bar, 0);
    SMA1 = SMA(OrderFlowCumulativeDelta1.DeltaClose, Convert.ToInt32(10));
    SMA1.Plots[0].Brush = Brushes.LimeGreen;
    SMA1.Panel=2;
    AddChartIndicator(SMA1);


    #2
    Hello sdauteuil,

    Thanks for your post.

    Can you clarify if by Random you mean that while running it will switch? Or do you mean when you apply the strategy to a chart that it may or may not put the indicator in its specified panel?

    Have you tried adding the OrderFlowCumulativeDelta as an indicator as well?

    Comment


      #3
      I have also noticed if I try to add it to my chart from the indicator tab and place it in panel 2
      It just displays a flat line in the panel

      Comment


        #4
        I will have the strategy running and the indicator will be in panel 2

        Then out of nowhere it jumps up to the chart... Basically it just switches



        Do you mean try to put cumulative delta close in the strategy as an indicator?

        Comment


          #5
          Hello sdauteuil,

          Thanks for your replies.

          Please post your complete OnStateChange() code. If you prefer you are welcome to write into PlatformSupport[at]Ninjatrader[dot]Com. If you write in please make the subject Ticket # 2832819 and Atten:PaulH. In the body of the e-mail include a link to this thread for reference.

          Do you see any error messages in the "Log" tab of the control center?

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Today, 05:17 AM
          0 responses
          53 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          130 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          70 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          44 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          49 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X