Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

draw dot at former high

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

    draw dot at former high

    hi!
    i'm running an indicator, drawing 'arrow up' under certain conditions.
    (left side of attached screenshot).

    now i would like to replace the 'arrow up' by drawing a 'dot'.
    conditions based on the indicator are the same.

    BUT: i would like to draw the dot at this price level, when the indicator event really appears.
    in my case it's based on the former high of the last 10 bars.
    (right side of attached screenshot - i tried to show with the red arrow).
    is there a way to do that?
    thank you




    #2
    Hello Tradexxx,

    Thanks for your post.

    If you have the code to draw the arrow then it would be a simple matter to add the code for Draw.Dot() with the only difference being to provide the Y axis price value to place the dot.
    Reference: https://ninjatrader.com/support/help.../?draw_dot.htm

    Comment


      #3
      hi paul, thank you for the post.
      to use draw.dot () in general is ok.
      but how do i use the "former high"price in Y axis?
      thank you

      Comment


        #4
        Hello Tradexxx,

        Thanks for your reply.

        If you are asking how to get the highest high of the last 10 bars then you could use the MAX() method and provide the High data series as the input.

        For example:

        double last_Ten_Bar_High = MAX(High, 10)[1]; // Get the previous 10 bars maximum high.

        Reference: https://ninjatrader.com/support/help...aximum_max.htm

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        648 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        574 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X