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 DayTradingDEMON, Today, 09:28 AM
            0 responses
            1 view
            0 likes
            Last Post DayTradingDEMON  
            Started by navyguy06, Today, 09:28 AM
            0 responses
            1 view
            0 likes
            Last Post navyguy06  
            Started by rjbtrade1, 11-30-2023, 04:38 PM
            2 responses
            77 views
            0 likes
            Last Post DavidHP
            by DavidHP
             
            Started by cmtjoancolmenero, Yesterday, 03:58 PM
            7 responses
            31 views
            0 likes
            Last Post cmtjoancolmenero  
            Started by Stanfillirenfro, Today, 07:23 AM
            3 responses
            13 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X