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

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 Barry Milan, Yesterday, 10:35 PM
          5 responses
          16 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by DanielSanMartin, Yesterday, 02:37 PM
          2 responses
          13 views
          0 likes
          Last Post DanielSanMartin  
          Started by DJ888, 04-16-2024, 06:09 PM
          4 responses
          13 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by terofs, Today, 04:18 PM
          0 responses
          12 views
          0 likes
          Last Post terofs
          by terofs
           
          Started by nandhumca, Today, 03:41 PM
          0 responses
          8 views
          0 likes
          Last Post nandhumca  
          Working...
          X