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 NullPointStrategies, Today, 05:17 AM
          0 responses
          50 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          126 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          69 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          42 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          46 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X