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 cmoran13, 04-16-2026, 01:02 PM
    0 responses
    43 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    25 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    163 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    98 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    158 views
    2 likes
    Last Post CaptainJack  
    Working...
    X