Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing Verticle Lines on MACD Crosses...Multiple Instances

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

    Drawing Verticle Lines on MACD Crosses...Multiple Instances

    So I used strategy builder to draw a line on the chart panel when the MACD crosses and stays above or below the smoothing for a certain number of bars. It works, but it only paints the most recent instance...be it a cross up or down, doesn't matter. Of course I want it to paint all instances for the data loaded and run live time. What am I missing in the strategy builder to make this happen? I am sure this is a common request but I couldn't find it in search. Thanks ;-)

    #2
    Hello 90bideven, thanks for your post.

    You will need to give a unique tag to the line to generate a new line for each instance. You can append the CurrentBar value to the tag to do this, then you will get a unique tag every time.

    Please let me know if I can assist any further.

    Comment


      #3
      Thanks Chris. So I changed Set 1 and Set 2 tag names to "tag1" and "tag2" and that picks up the most recent up and down turn respectively and rolls them going forward. That is great for real time trading, but if I have 10 days of data loaded and wanted every instance marked, what would I have to name the tags? Thanks.

      Comment


        #4
        Hello 90bideven,

        Thanks for your reply.

        Chris meant that you should change the tag name of the drawing object itself (the vertical line) to include the current bar number.

        Here is a short video that walks through this: https://paul-ninjatrader.tinytake.co...MF8xMTMwNTc0MA

        Comment


          #5
          Perfect, thanks. that is exactly what I needed to see!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          87 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          132 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          118 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          67 views
          0 likes
          Last Post PaulMohn  
          Working...
          X