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 judysamnt7, 03-13-2023, 09:11 AM
        4 responses
        59 views
        0 likes
        Last Post DynamicTest  
        Started by ScottWalsh, Today, 06:52 PM
        4 responses
        36 views
        0 likes
        Last Post ScottWalsh  
        Started by olisav57, Today, 07:39 PM
        0 responses
        7 views
        0 likes
        Last Post olisav57  
        Started by trilliantrader, Today, 03:01 PM
        2 responses
        21 views
        0 likes
        Last Post helpwanted  
        Started by cre8able, Today, 07:24 PM
        0 responses
        10 views
        0 likes
        Last Post cre8able  
        Working...
        X