Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart Objects Issue

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

    Chart Objects Issue

    I'm experiencing some strange behavior on my chart when I run a strategy in replay. The profit/loss line that is usually drawn from your entry to the exit only paints vertically. Also, any DrawDot() objects that I call and put on the chart are posted at the bottom of the chart regardless of what double value I set in the method. I've attached a screenshot to demonstrate. Any ideas?
    Attached Files

    #2
    Here's the code I'm using to call the DrawDot method.
    DrawDot("StopDot" + CurrentBar, true, 0, 1325.00, Color.Orange);

    Comment


      #3
      Mike,

      It looks like you are setting the draw dot y value to a specific number here :

      1325.00

      Is this price range trading on the chart?

      As far as your other issue, can you post code for your profit/loss line?
      Adam P.NinjaTrader Customer Service

      Comment


        #4
        Regarding your first question the answer is yes. The range of the screenshot I uploaded is 1318 to 1328.

        Regarding the second question, I don't have any custom code for the P/L line. I'm just using the default property settings shown under the Trade setting for this data series. As you know, this typically draws either a green or red dotted line from your entry to your exit.

        Comment


          #5
          Mike,

          Likely we will need to see more of your code to really isolate what's going on here. Can you post it?
          Adam P.NinjaTrader Customer Service

          Comment


            #6
            My charts started behaving normally after a reboot. Thanks.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CaptainJack, 05-29-2026, 05:09 AM
            0 responses
            305 views
            0 likes
            Last Post CaptainJack  
            Started by CaptainJack, 05-29-2026, 12:02 AM
            0 responses
            196 views
            0 likes
            Last Post CaptainJack  
            Started by charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            186 views
            1 like
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            274 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            228 views
            0 likes
            Last Post CarlTrading  
            Working...
            X