Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Fractal Above/Below Horizontal Line

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

    Fractal Above/Below Horizontal Line

    Hello Support, Im trying to make an indicator that checks if price has turned above/below a manually drawn Horizontal Line, something like:

    (W/Renko Candles)

    if ( (Close[3] < Close[2] && Close[2]> Close[0]) && Close[0] >hLine.Y ) && FirstTickOfBar ) // Renko Fractal Down
    {

    Alert goes off

    }

    just making sure this approach is the correct one, how do i check for Hlines? is the generic "hLine.Y" ok? , just need one Horizontal Line on the chart.

    Thank you!


    #2
    Hello kabott, thanks for your post.

    You may use the DrawObjects collection to get a specific horizontal line. See the example on this page, specifically Example #3, "Looping through the collection to find specific draw objects"


    Once you get the draw object assigned, you can reference the horizontal line's properties. Here is the documentation on the IHorizontalLine object:



    Best regards.

    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