Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

as knowing the value of the rays

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

    as knowing the value of the rays

    Hello. I have this code to draw a ray.

    if(CurrentBar < 3)
    return;
    if (Close[0] > Close[1] &&
    Close[0] > Close[2]&&
    { Close[0] > Close[3])

    DrawRay("rayH"+CurrentBar,true, 1, Close[0]+((TickSize*0)*0), 0, Close[0]+((TickSize*0)*0),Color.Yellow,DashStyle.Dash,2);

    }

    walk the rays with this code

    foreach (IDrawObject drawRay in DrawObjects)

    {
    if (drawRay.Tag.StartsWith("rayH") && drawRay is IRay)

    I take each ray anchor1Y but not how. Thank you

    #2
    Hello,

    There is an example of looping throgh the drawing objects here: http://ninjatrader.com/support/forum...1&postcount=10

    In the example, a Ray is used so you would be able to use most of the example. If you want to check the tag, you would simply need to add that check in to complete the logic. The value is Printed for the Anchor1Y, you could use that syntax to get the value instead.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    566 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X