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

Horizontal line drawing dynamically

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

    Horizontal line drawing dynamically

    Need help drawing horizontal line for the high/low range given (user input) 'X" bars prior and keeps drawing dynamically only for the latest window of 'X" bars.

    Thx, Sen
    Last edited by s_sen; 03-23-2018, 12:56 PM.

    #2
    Hello s_sen,

    Thanks for your post.

    You have a couple of options. You can draw the line with DrawLine() or you can use a Plot to draw the line.

    References:



    You may want to look at some of the opening range indicators as examples of measuring in a time period and then drawing/plotting lines in the NT7 forums file sharing area, here is a link to one of them: https://ninjatrader.com/support/foru...d=4&linkid=557
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      I am not talking of time dependent range drawing as in opening range indicator. It is bars dependent where user inputs the number of bars (X) and then horizontal lines are drawn for that range. It then dynamically keeps drawing as the bars move in time for the latest window of X bars only. It is not static range.

      The chart is a range chart although it can also be time chart, etc.

      Thx, Sam
      Last edited by s_sen; 03-23-2018, 02:28 PM.

      Comment


        #4
        Hello s_sen,

        Thanks for your reply.

        I'm not aware of an indicator that provides what you are looking for so you would have to create a custom indicator using the methods mentioned in my previous reply.

        Alternatively, if you would like it created for you, we can provide links to 3rd party coders who can provide that service.
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by GussJ, 03-04-2020, 03:11 PM
        14 responses
        3,244 views
        0 likes
        Last Post GussJ
        by GussJ
         
        Started by lorem, Today, 09:18 AM
        0 responses
        3 views
        0 likes
        Last Post lorem
        by lorem
         
        Started by hazylizard, Today, 08:38 AM
        4 responses
        11 views
        0 likes
        Last Post hazylizard  
        Started by geddyisodin, Today, 05:20 AM
        2 responses
        20 views
        0 likes
        Last Post geddyisodin  
        Started by Max238, Today, 01:28 AM
        5 responses
        48 views
        0 likes
        Last Post Max238
        by Max238
         
        Working...
        X