Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Horizontal line that starts at a specific bar/time

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

    Horizontal line that starts at a specific bar/time

    Are there any indicators for drawing a simple horizontal line that start at say 10:50 am? instead of drawing a line that goes for infinity in both directions backwards and forwards in time, I would like one that starts at a specific time and only goes forward from there. If i could right click and add it it would be great.

    Thanks

    #2
    Hello markus3500,

    Thanks for opening the thread.

    I am not aware of a specific indicator that accomplishes this, but it would not be hard to write an indicator that places a Ray drawing object from the time specified into the future.

    I'll include some resources that can point you in the right direction for creating indicators and using DrawRay(), but I should also note that this task could be accomplished by manually placing a Ray drawing object and adjusting its anchors to be at the time specified.

    If you are new to creating NinjaScripts, I recommend reviewing the tutorials we have in the NinjaTrader 7 help guide and then referencing the DrawRay() documentation for adding the DrawRay(). You may also wish to get more acquainted with NinjaScripts by using the Strategy Wizard to construct the logic in a strategy.

    Indicator tutorials for NinjaTrader 7 can be found here - https://ninjatrader.com/support/help...ndicators2.htm

    DrawRay() - https://ninjatrader.com/support/help...t7/drawray.htm

    Strategy Wizard 301 - https://www.youtube.com/watch?v=FmBiNYsf1e8

    Please let me know if we can be of further assistance.

    Comment


      #3
      Cant believe i never used Ray..... problem solved .... this works perfect for what i need


      many thanks





      Originally posted by NinjaTrader_Jim View Post
      Hello markus3500,

      Thanks for opening the thread.

      I am not aware of a specific indicator that accomplishes this, but it would not be hard to write an indicator that places a Ray drawing object from the time specified into the future.

      I'll include some resources that can point you in the right direction for creating indicators and using DrawRay(), but I should also note that this task could be accomplished by manually placing a Ray drawing object and adjusting its anchors to be at the time specified.

      If you are new to creating NinjaScripts, I recommend reviewing the tutorials we have in the NinjaTrader 7 help guide and then referencing the DrawRay() documentation for adding the DrawRay(). You may also wish to get more acquainted with NinjaScripts by using the Strategy Wizard to construct the logic in a strategy.

      Indicator tutorials for NinjaTrader 7 can be found here - https://ninjatrader.com/support/help...ndicators2.htm

      DrawRay() - https://ninjatrader.com/support/help...t7/drawray.htm

      Strategy Wizard 301 - https://www.youtube.com/watch?v=FmBiNYsf1e8

      Please let me know if we can be of further assistance.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      161 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      309 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      245 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      349 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      179 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X