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

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 kujista, Today, 05:44 AM
        0 responses
        5 views
        0 likes
        Last Post kujista
        by kujista
         
        Started by ZenCortexCLICK, Today, 04:58 AM
        0 responses
        5 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  
        Started by adeelshahzad, Today, 03:54 AM
        0 responses
        8 views
        0 likes
        Last Post adeelshahzad  
        Working...
        X