Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

draw a line and turn it into an indicator, possible?

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

    draw a line and turn it into an indicator, possible?

    I want to create an extended ray indicator.

    I want to have an indicator that when A happens ,, B prints, this is not the question... I understand this.

    so I wonder....

    Can I draw an extended ray at an angle on my chart (in panel 2) (turn that into indicator) Save it as B (the extended ray draws the angle, color that I have is saved) and then.. have it print every time that A happens?



    so that when A happens it will draw my extended rat, with the same angle that I drew it.

    How would I save the extended ray?


    Thank you in advanced for any help!
    Attached Files

    #2
    Hello Codemaker,

    Thank you for your note.

    You would want to use a unique string name for every Ray that you draw. This would allow the script to draw a separate ray for each time the condition occurred.

    DrawRay("MyRay" + CurrentBar, 10, 1000, 0, 1001, Color.Blue);

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Cal View Post
      Hello Codemaker,

      Thank you for your note.

      You would want to use a unique string name for every Ray that you draw. This would allow the script to draw a separate ray for each time the condition occurred.

      DrawRay("MyRay" + CurrentBar, 10, 1000, 0, 1001, Color.Blue);

      Let me know if I can be of further assistance.
      I only want to use the same Ray every day.
      Never need to redraw it.

      Is that possible?

      Thank you sir.

      Comment


        #4
        Codemaker,

        You would get rid of the + CurrentBar then

        Having the same signal name will modify only one ray to the next day.
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        152 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        87 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        131 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        106 views
        0 likes
        Last Post CarlTrading  
        Working...
        X