Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

send indicator to a new panel in my strategy

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

    send indicator to a new panel in my strategy


    Hi, I am designing a strategy that uses a custom indicator. when I activate it, that indicator incorporates it in the same panel as the price, and I have to drag it each time to a new panel, which is quite uncomfortable. I have activated the if (State == State.SetDefaults) ........ IsOverlay = true; But it's not working. What would be the correct code to send it to a new panel? I have not found anything in the help of ninja. Thank you
    Attached Files

    #2
    Hello manueldecastro,

    Thanks for your post.

    When IsOverLay is set to true, in an indicator script, it would put it in the price panel.

    Can you clarify if you are adding the indicator to the chart with AddChartIndicator()?
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      else if (State == State.DataLoaded)
      {
      OrderFlowCumulativeDelta1 = OrderFlowCumulativeDelta(Close, NinjaTrader.NinjaScript.Indicators.CumulativeDelta Type.BidAsk, NinjaTrader.NinjaScript.Indicators.CumulativeDelta Period.Bar, 0); // DELTA ACUMULADO EN BAR
      AddChartIndicator(OrderFlowCumulativeDelta1);

      ATRticks1 = ATRticks(Close, 1);
      mediaatr = SMA(ATRticks1, Periodoatr);
      mediaatr.Plots[0].Brush=Brushes.Blue;
      mediaatr.Plots[0].PlotStyle=PlotStyle.Bar;
      mediaatr.Plots[0].AutoWidth=true;
      AddChartIndicator(mediaatr);

      }

      mediaatr is the indicator i need in a new panel

      Comment


        #4
        Hello manueldecastro,

        Thanks for your reply.

        Please try: mediaatr.Panel = 2;

        (Or other panel number).
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          it works! thanks!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by cbryhftgc, Today, 04:04 AM
          0 responses
          2 views
          0 likes
          Last Post cbryhftgc  
          Started by fernlicht, Today, 02:38 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Jason  
          Started by b16_aln, Today, 01:48 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Jason  
          Started by james272, Yesterday, 10:50 PM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Marco  
          Started by vaz21102, Yesterday, 09:22 PM
          2 responses
          10 views
          0 likes
          Last Post vaz21102  
          Working...
          X