Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,229 views
        0 likes
        Last Post xiinteractive  
        Started by andrewtrades, Today, 04:57 PM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        7 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        441 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        12 views
        0 likes
        Last Post FAQtrader  
        Working...
        X