• 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

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 reedstickets, Today, 07:53 PM
        0 responses
        6 views
        0 likes
        Last Post reedstickets  
        Started by Atilla, Today, 04:05 PM
        0 responses
        18 views
        0 likes
        Last Post Atilla
        by Atilla
         
        Started by Displacer, Today, 02:57 PM
        2 responses
        13 views
        0 likes
        Last Post Displacer  
        Started by SAILIKITY, 05-22-2019, 05:41 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by rmillar, 01-09-2019, 06:02 PM
        6 responses
        75 views
        1 like
        Last Post eDanny
        by eDanny
         
        Working...
        X