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 Mindset, 04-21-2026, 06:46 AM
          0 responses
          93 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          138 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          123 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          73 views
          0 likes
          Last Post PaulMohn  
          Working...
          X