• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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

    Paul H.NinjaTrader Customer Service

    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

        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by junposlee, Today, 02:59 PM
        0 responses
        1 view
        0 likes
        Last Post junposlee  
        Started by patpat, Yesterday, 11:02 AM
        2 responses
        8 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by jameslee001, Yesterday, 08:09 AM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by ArthurH, Today, 11:52 AM
        0 responses
        7 views
        0 likes
        Last Post ArthurH
        by ArthurH
         
        Started by Darylbe, Today, 11:51 AM
        0 responses
        5 views
        0 likes
        Last Post Darylbe
        by Darylbe
         
        Working...
        X