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

Extended rectangle with price levels

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

    Extended rectangle with price levels

    Is this hard for someone to code?

    Would someone mind taking a shot at it.

    1. it is a rectangle that extends all the way to the right and continues to extend untill removed.

    2. It has price markets on the top and bottom.

    3. If you draw it on one time frame and flip down to a smaller time frame you can still drag it and adjust it if needed


    ie it would look like this


    thanks
    Attached Files

    #2
    Hello Dr. Bocephus,
    To extend a line to the right, you can set the end bar reference to a negative value. A sample code will be like:
    Code:
    if (Condition)
    this.DrawRectangle("Rec", false, 0, High[0], [B]-10[/B], Low[0], Color.Blue, Color.Blue, 3);
    The same concept can be applied for the DrawText.

    Whether it will work on different timeframes depends on what your coding logic is and how exactly you code it.

    Unfortunately we do not do custom NinjaScript programming. I will leave the thread open for the forum members who can further guide you.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      would it be better for me to post this in this forum


      NinjaScript File Sharing Discussion


      or leave it here.


      thanks

      Comment


        #4
        Hello Dr. Bocephus,
        It should be fine here as this is the sub forum for Indicator development.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Yes that would be a great idea if it could be incorporated into NJ.

          Comment


            #6
            GD-NJ-TRADER, thanks for the input - I added votes into this item noted for potential future enhancement in our product management lists.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Rentangle to the future

              I am aIso very interested in getting a box that projects to the future until removed.

              Anyone can help?

              Comment


                #8
                Originally posted by [email protected] View Post
                I am aIso very interested in getting a box that projects to the future until removed.

                Anyone can help?
                You can easily code this as a custom plot. My first approach had been to use DrawRectangle(), but the custom plot is a more flexible solution.

                Comment


                  #9
                  Originally posted by NinjaTrader_Joydeep View Post
                  Hello Dr. Bocephus,
                  To extend a line to the right, you can set the end bar reference to a negative value. A sample code will be like:
                  Code:
                  if (Condition)
                  this.DrawRectangle("Rec", false, 0, High[0], [B]-10[/B], Low[0], Color.Blue, Color.Blue, 3);
                  The same concept can be applied for the DrawText.

                  Whether it will work on different timeframes depends on what your coding logic is and how exactly you code it.

                  Unfortunately we do not do custom NinjaScript programming. I will leave the thread open for the forum members who can further guide you.
                  I-I-I-I-I-I-i-i-i-i-ii- llllllove you!!!!Nitai!

                  Comment


                    #10
                    Future

                    Hi from the future!! someone get this indicator or it is native now?

                    Comment


                      #11
                      Hello andretsc,

                      Thank you for your post.

                      This is not a native indicator in NinjaTrader and would need to be custom programmed as suggested by Joydeep.

                      Please let me know if you have any questions.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by jclose, Today, 09:37 PM
                      0 responses
                      4 views
                      0 likes
                      Last Post jclose
                      by jclose
                       
                      Started by WeyldFalcon, 08-07-2020, 06:13 AM
                      10 responses
                      1,413 views
                      0 likes
                      Last Post Traderontheroad  
                      Started by firefoxforum12, Today, 08:53 PM
                      0 responses
                      10 views
                      0 likes
                      Last Post firefoxforum12  
                      Started by stafe, Today, 08:34 PM
                      0 responses
                      10 views
                      0 likes
                      Last Post stafe
                      by stafe
                       
                      Started by sastrades, 01-31-2024, 10:19 PM
                      11 responses
                      169 views
                      0 likes
                      Last Post NinjaTrader_Manfred  
                      Working...
                      X