Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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?
    BertrandNinjaTrader Customer Service

    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.
        BertrandNinjaTrader Customer Service

        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.
            BertrandNinjaTrader Customer Service

            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.
                BertrandNinjaTrader Customer Service

                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
                    BertrandNinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Waxavi, Today, 02:00 AM
                    1 response
                    7 views
                    0 likes
                    Last Post NinjaTrader_LuisH  
                    Started by alifarahani, Today, 09:40 AM
                    5 responses
                    23 views
                    0 likes
                    Last Post NinjaTrader_Jesse  
                    Started by Kaledus, Today, 01:29 PM
                    4 responses
                    11 views
                    0 likes
                    Last Post Kaledus
                    by Kaledus
                     
                    Started by gentlebenthebear, Today, 01:30 AM
                    3 responses
                    16 views
                    0 likes
                    Last Post NinjaTrader_Jesse  
                    Started by PhillT, Today, 02:16 PM
                    2 responses
                    7 views
                    0 likes
                    Last Post PhillT
                    by PhillT
                     
                    Working...
                    X