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

Using data from instrument X cannot drawing ray on another Panel of instrument Y

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

    Using data from instrument X cannot drawing ray on another Panel of instrument Y

    Hi all,

    I got a chart with two Data Series, actually same instrument, but one is 1 minutes, another is 2 minutes.
    2 minutes on Panel 1; 1 minutes on Panel 2.

    Then I create a indicator to draw ray using 1 minutes data on Panel 2, it's ok.
    But when I change the indicator > Property > Visaul > Panel -- from 2 to 1, it cannot put the drawing on the 2 minutes Panel 1.

    Is there any default property in ninjascript I need to change ?
    Thanks.

    Regards,
    Franco

    #2
    Hello Franco,

    The DrawOnPricePanel property controls this.

    Below is a link to the help guide.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,

      Thanks for reply.
      But it can't fix the problem, any other reason ?
      Thanks.

      if (State == State.SetDefaults)
      {
      Calculate = Calculate.OnBarClose;
      IsOverlay = true;
      DisplayInDataBox = true;
      DrawOnPricePanel = false;
      DrawHorizontalGridLines = false;
      DrawVerticalGridLines = false;
      PaintPriceMarkers = true;
      ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Right;
      IsSuspendedWhileInactive = true;



      Regards, Franco

      Comment


        #4
        Hello francoso,

        State.SetDefaults is only set when a new instance of the indicator is created.


        May I confirm you have removed the indicator from the chart and added it back?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hi Chelsea,

          I was trying "Reload NinjaScript" only.

          It's working now, thank you !

          Regards,
          Franco

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by ssijbabu, 10-07-2012, 07:10 AM
          5 responses
          4,428 views
          0 likes
          Last Post calster
          by calster
           
          Started by iceman2018, Today, 10:39 AM
          1 response
          2 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by nleitman, Yesterday, 11:46 AM
          16 responses
          43 views
          0 likes
          Last Post nleitman  
          Started by MSerag, Yesterday, 11:52 PM
          3 responses
          23 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by dcriador, Yesterday, 01:43 AM
          6 responses
          29 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X