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 cmoran13, 04-16-2026, 01:02 PM
                    0 responses
                    51 views
                    0 likes
                    Last Post cmoran13  
                    Started by PaulMohn, 04-10-2026, 11:11 AM
                    0 responses
                    31 views
                    0 likes
                    Last Post PaulMohn  
                    Started by CarlTrading, 03-31-2026, 09:41 PM
                    1 response
                    165 views
                    1 like
                    Last Post NinjaTrader_ChelseaB  
                    Started by CarlTrading, 04-01-2026, 02:41 AM
                    0 responses
                    100 views
                    1 like
                    Last Post CarlTrading  
                    Started by CaptainJack, 03-31-2026, 11:44 PM
                    0 responses
                    160 views
                    2 likes
                    Last Post CaptainJack  
                    Working...
                    X