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

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?
    Paul H.NinjaTrader Customer Service

    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?

          Paul H.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by rajendrasubedi2023, Today, 09:50 AM
          0 responses
          2 views
          0 likes
          Last Post rajendrasubedi2023  
          Started by ender_wiggum, Today, 09:50 AM
          0 responses
          1 view
          0 likes
          Last Post ender_wiggum  
          Started by bmartz, Today, 09:30 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by geddyisodin, Today, 05:20 AM
          3 responses
          23 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by lorem, Today, 09:18 AM
          1 response
          5 views
          0 likes
          Last Post lorem
          by lorem
           
          Working...
          X