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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        52 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        72 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        38 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        99 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        60 views
        0 likes
        Last Post PaulMohn  
        Working...
        X