Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw Horizontal Line problem

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

    Draw Horizontal Line problem

    Can you please tell me why in this indicator BarColor, CandleOutlineColor and DrawArrowUp work very well but the Horizontal Line doens't appear?

    Best

    protected override void OnBarUpdate()
    {

    // When the close of the bar crosses above the HMA, draw a blue diamond
    if (CrossAbove(Close, HMA(period), 1))
    {
    /* Adding the 'CurrentBar' to the string creates unique draw objects because they will all have unique IDs
    Having unique ID strings may cause performance issues if many objects are drawn */
    BarColor = Color.Blue;
    CandleOutlineColor = Color.Black;
    DrawArrowUp("Up Arrow" + CurrentBar, 0, Low[0] - TickSize, Color.Blue);
    DrawHorizontalLine("Up Line" + CurrentBar,Low[0] , Color.Blue,DashStyle.Dash,3);
    }

    #2
    RitaPacheco, the code posted looks ok to me - any errors in your log tab as this happens?

    Comment


      #3
      Ty

      No errors on the log. The indicator was completly compiled.

      I imported 2 indicators from the NT posted indicators HorizontalLinePrice and DH_HorizPriceLine that should show a horizontal line on the current price and both don't work as well.

      It seems to be a problem with Draw Horizontal Lines on my computer my NT version is 6.5

      Best

      Comment


        #4
        Which NT version are you running if you check under Help > About? Is this our latest 6.5.1000.16?

        You can try repairing your installation in the Windows Control Panel > Programs and Features and then recheck the indicators after this step.

        Comment


          #5
          Yes is version 6.5. 1000.16.

          Comment


            #6
            Ok, thanks for confirming - have you tried the repair of the install? Perhaps a fresh installed .NET framework would be beneficial as well, for instructions how to go best about this, please contact us at support at ninjatrader dot com - thanks.

            Comment


              #7
              Not yet.

              I have windows XP and Programs and Features is on Vista I'm not sure.

              Can I run NT6.5 instal and ask to repair insted to install?

              Comment


                #8
                That might work as well then - in XP this would be called Add / Remove programs and could be accessed from the Control Panel.

                Comment


                  #9
                  I did it but gave an error asked for path to the folder containing the instalation package"tmp10D.tmp

                  How I fix this?

                  Comment


                    #10
                    Are you running any Windows clean up / registry cleanup software?

                    For directions how to address this, please send us a note to support at ninjatrader dot com.

                    We'll then follow up with directions.

                    Thanks

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    581 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    338 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    103 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    554 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    552 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X