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

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.
    JimNinjaTrader Customer Service

    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 mmenigma, Yesterday, 03:25 PM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by kujista, Today, 05:44 AM
      0 responses
      6 views
      0 likes
      Last Post kujista
      by kujista
       
      Started by ZenCortexCLICK, Today, 04:58 AM
      0 responses
      9 views
      0 likes
      Last Post ZenCortexCLICK  
      Started by sidlercom80, 10-28-2023, 08:49 AM
      172 responses
      2,281 views
      0 likes
      Last Post sidlercom80  
      Started by Irukandji, Yesterday, 02:53 AM
      2 responses
      18 views
      0 likes
      Last Post Irukandji  
      Working...
      X