Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

adding arrows to indicator

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

    adding arrows to indicator

    I'm trying to add arrows to my MACD indicator whenever the fast crosses the slow. so far only the most recent arrow will show up?? Not sure what I'm doing wrong. Attaching the code file. Thanks for any help.
    Attached Files

    #2
    Originally posted by tvaughan4 View Post
    so far only the most recent arrow will show up?? Not sure what I'm doing wrong.

    The tags your using "Macd" for each drawobject must be unique, or by default, they will redraw themselves..

    Change your tags to something unique.. Easiest way is to use CurrentBar in conjunction with your tag string..
    Code:
    Draw.ArrowDown(this, "MacdAboveCross" + CurrentBar, true, 0, Value[0] + 1, Brushes.Red, false);
    Now the DrawObject always ends up with a unique tag, that even identifies the bar they were drawn..





    -=Edge=-
    NinjaTrader Ecosystem Vendor - High Tech Trading Analysis

    Comment


      #3
      Yep!!! Works like a charm. Thanks so much.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      683 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      386 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      111 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      584 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      585 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X