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 StockTrader88, 03-06-2021, 08:58 AM
            45 responses
            3,991 views
            3 likes
            Last Post johntraderuser2  
            Started by TAJTrades, Today, 09:46 AM
            0 responses
            7 views
            0 likes
            Last Post TAJTrades  
            Started by rhyminkevin, Yesterday, 04:58 PM
            5 responses
            62 views
            0 likes
            Last Post dp8282
            by dp8282
             
            Started by realblubb, Today, 09:28 AM
            0 responses
            8 views
            0 likes
            Last Post realblubb  
            Started by AaronKoRn, Yesterday, 09:49 PM
            1 response
            19 views
            0 likes
            Last Post Rikazkhan007  
            Working...
            X