Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawLine bug in 6.5.1000.7 ?

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

    DrawLine bug in 6.5.1000.7 ?

    I recently updated to 6.5.1000.7, and now in my strategies the DrawLine doesn't work. Nothing draws. I am observing it in more than just one strategy, and in ones I haven't edited recently.
    Does anyone else have this - is it a known bug?
    saltminer

    #2
    Hello,


    No one has reported this before you. Can you post your strategy so I can test it and take a look at the code?
    DenNinjaTrader Customer Service

    Comment


      #3
      Proven

      Hi,
      I wrote a little strategy to test this bug. I believe I have proved it.

      I have attached the strategy, but the main code is this:

      protected override void OnBarUpdate()
      {

      if (Math.Abs(CurrentBar/100) == (double)CurrentBar/100 )
      {
      double nATR = ATR(10)[0];

      DrawRay("Ray"+CurrentBar.ToString(),6,Close[6],3,Close[6]+(3*nATR),Color.Black);
      DrawLine("Line"+CurrentBar.ToString(),5,Close[6],2,Close[6]+(3*nATR),Color.Blue);
      DrawExtendedLine("Extended"+CurrentBar.ToString(), 4,Close[6],1,Close[6]+(3*nATR),Color.Green);

      DrawDot("RayOrigin"+CurrentBar.ToString(),false,6, Close[6],Color.Black);
      DrawDot("LineOrigin"+CurrentBar.ToString(),false,5 ,Close[6],Color.Blue);
      DrawDot("ExtendedOrigin"+CurrentBar.ToString(),fal se,4,Close[6],Color.Green);

      }

      }


      This should draw 3 visible objects, a ray, a line and an extended.
      Take a look at the pic attached. NO LINE.
      saltminer.
      Attached Files

      Comment


        #4
        I used your script with no changes. This is what I see on my end. You can see 3 draw objects.

        Are you getting errors in your Control Center? Maybe something messed up when you installed NT. Please try reinstalling that. Maybe worth a shot reinstalling .NET 2.0 as well.
        Attached Files
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          wow

          Hi Josh,
          thanks for running that test. Glad it works for you.
          I am not getting errors in the Log.

          I have now done the following:
          • uninstalled and reinstalled NinjaTrader.
          • Did an Administrator scan to verify system files : all ok
          • Did a System Restore to a point last week prior to the latest Vista update
          No change, I'm afraid - I am still without DrawLine functionality. This is sure strange.
          I am running Vista. As far as I can tell .NET is not a separately installable item - it is built in. The version that seems to be on here is 2.0.5

          Any other ideas?
          saltminer
          Last edited by saltminer; 10-31-2008, 06:35 AM. Reason: clarity

          Comment


            #6
            Originally posted by saltminer View Post
            Hi Josh,
            thanks for running that test. Glad it works for you.
            I am not getting errors in the Log.

            I have now done the following:
            • uninstalled and reinstalled NinjaTrader.
            • Did an Administrator scan to verify system files : all ok
            • Did a System Restore to a point last week prior to the latest Vista update
            No change, I'm afraid - I am still without DrawLine functionality. This is sure strange.
            I am running Vista. As far as I can tell .NET is not a separately installable item - it is built in. The version that seems to be on here is 2.0.5

            Any other ideas?
            saltminer
            I got a similar problem, what works for me was not only uninstall NT, you need to also delete the folders, then reinstall it, what i think cause the problem was change the default conditions for the text or lines. But not completely sure, just work for me. Remember to copy your indicators and or strategies.

            Comment


              #7
              Hello,


              Yes, to start completely new with NT you do need to delete the Documents>NinjaTrader 6.5 folder. Also clear you cache before you reinstall.
              DenNinjaTrader Customer Service

              Comment


                #8
                Yeah, that did the trick. Thanks.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by trilliantrader, 04-18-2024, 08:16 AM
                4 responses
                18 views
                0 likes
                Last Post trilliantrader  
                Started by mgco4you, Today, 09:46 PM
                1 response
                7 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by wzgy0920, Today, 09:53 PM
                0 responses
                9 views
                0 likes
                Last Post wzgy0920  
                Started by Rapine Heihei, Today, 08:19 PM
                1 response
                10 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by Rapine Heihei, Today, 08:25 PM
                0 responses
                10 views
                0 likes
                Last Post Rapine Heihei  
                Working...
                X