Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Period/Price Box?

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

    Period/Price Box?

    Hello,

    I really would appreciate if someone would share with me a piece of code that would do the following; draw a box that would go from the high to the low spanning a specific time period. The time period, box color/opacity, should all be adjustable.

    Thank you in advance!!

    Joseph

    #2
    Hello Joseph,

    Thank you for your post.

    Attached is an example of using user defined DateTime for your DrawRectangle.
    Attached Files

    Comment


      #3
      Originally posted by NinjaTrader_PatrickH View Post
      Hello Joseph,

      Thank you for your post.

      Attached is an example of using user defined DateTime for your DrawRectangle.

      Patrick,

      Thank you so much!!

      One thing, could we omit the date and keep the "time", so I can set a time (24hour) and have it draw same time each day?



      Thank you Patrick!!

      Joseph
      Last edited by Karado58; 10-29-2013, 01:13 PM.

      Comment


        #4
        Hello Joseph,

        Thank you for your response.

        Attached is an amended indicator with the same name. We do not provide programming services but this was a good opportunity to show how to use DateTime objects in NinjaScript.

        For information on DateTime please visit the following link: http://msdn.microsoft.com/en-us/libr...v=vs.110).aspx

        Please let me know if I may be of further assistance.
        Attached Files

        Comment


          #5
          Originally posted by NinjaTrader_PatrickH View Post
          Hello Joseph,

          Thank you for your response.

          Attached is an amended indicator with the same name. We do not provide programming services but this was a good opportunity to show how to use DateTime objects in NinjaScript.

          For information on DateTime please visit the following link: http://msdn.microsoft.com/en-us/libr...v=vs.110).aspx

          Please let me know if I may be of further assistance.
          Many thanks Patrick...I have enough code to work with and start learning!

          The box is exactly what I was looking for to start off with!!

          Thank you!!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          664 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          376 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          110 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          575 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          580 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X