• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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
    Patrick H.NinjaTrader Customer Service

    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
        Patrick H.NinjaTrader Customer Service

        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 GussJ, Today, 01:30 PM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_PaulH  
          Started by GARZONJ, Today, 12:25 PM
          3 responses
          13 views
          0 likes
          Last Post NinjaTrader_PaulH  
          Started by RandanAL, Today, 11:53 AM
          1 response
          13 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by yeshujbp, 07-21-2019, 02:40 PM
          2 responses
          35 views
          0 likes
          Last Post omololu
          by omololu
           
          Started by seagraph, Yesterday, 03:27 PM
          2 responses
          30 views
          0 likes
          Last Post seagraph  
          Working...
          X