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 GussJ, 03-04-2020, 03:11 PM
            16 responses
            3,279 views
            0 likes
            Last Post Leafcutter  
            Started by WHICKED, Today, 12:45 PM
            2 responses
            19 views
            0 likes
            Last Post WHICKED
            by WHICKED
             
            Started by Tim-c, Today, 02:10 PM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by Taddypole, Today, 02:47 PM
            0 responses
            5 views
            0 likes
            Last Post Taddypole  
            Started by chbruno, 04-24-2024, 04:10 PM
            4 responses
            51 views
            0 likes
            Last Post chbruno
            by chbruno
             
            Working...
            X