Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

too many drawing objects

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

    too many drawing objects

    is there a way to filter or keep the drawing objects (triangles in this example) from popping up once the criteria has been met?
    maybe another "x amount" of bars required to start drawing again...


    if ((High[0] >= SMA(89)[0])
    && (High[
    0] >= KeltnerChannel(1.5, 22).Lower[0] + -2 * TickSize)
    && (SMA(
    89)[0] <= EMA(22)[0] )
    && (Diff[
    1] >= 0)
    && (Stochastics(
    5, 3, 3).K[1] <= stokl || Stochastics(5, 3, 3).K[2] <= stokl
    || Stochastics(
    5, 3, 3).K[0] <= stokl)
    )
    DrawTriangleUp(Time[
    0].ToString(), 0, Low[1] - 5.25* TickSize, Color.Yellow);

    #2
    you could add a custom flag variable like:
    - only draw if condition are met and flag is false
    - set flag to true if drawn

    -> won't draw again after flag is set

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    601 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    347 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    559 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    558 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X