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 mattbsea, Today, 05:44 PM
          0 responses
          3 views
          0 likes
          Last Post mattbsea  
          Started by RideMe, 04-07-2024, 04:54 PM
          6 responses
          31 views
          0 likes
          Last Post RideMe
          by RideMe
           
          Started by tkaboris, Today, 05:13 PM
          0 responses
          2 views
          0 likes
          Last Post tkaboris  
          Started by GussJ, 03-04-2020, 03:11 PM
          16 responses
          3,282 views
          0 likes
          Last Post Leafcutter  
          Started by WHICKED, Today, 12:45 PM
          2 responses
          20 views
          0 likes
          Last Post WHICKED
          by WHICKED
           
          Working...
          X