• 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

all bars to now from X bars ago

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

    #16
    Originally posted by Jumper View Post
    So will that draw from the high/lows? or the open/close of the bar?
    Close of the bar, since that is what both anchors were set to in my most recent example. But you can change to what ever level you seek of course.
    BertrandNinjaTrader Customer Service

    Comment


      #17
      Awesome thanks, sorry for being so dumb haha, got it working now!

      What would I need to do if I want to change it so it's new every session/day? Rather than old ones running right up to the present?

      Comment


        #18
        Jumper, then you could not work with a Ray since that would have an infinite end point. You would rather work directly with for example the DrawLine command and extend yourself by changing the anchor until you hit that session end. That will mean though more custom coding would be needed.
        BertrandNinjaTrader Customer Service

        Comment


          #19
          Ok maybe something to work on.

          Just a quick question, I have my lines being drawn automatically now, and it all seems fine and compiles well, but I have since closed NT and re-opened it again just now and now my indicator doesn't load on the chart? It says it is, but nothing is showing up? Nothing should be different.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by GMiller64, Today, 01:13 PM
          3 responses
          7 views
          0 likes
          Last Post GMiller64  
          Started by itrader46, Today, 12:51 PM
          4 responses
          32 views
          0 likes
          Last Post itrader46  
          Started by hemlock, Today, 11:45 AM
          3 responses
          9 views
          0 likes
          Last Post NinjaTrader_PatrickG  
          Started by gbulle, Today, 11:31 AM
          2 responses
          7 views
          0 likes
          Last Post gbulle
          by gbulle
           
          Started by JPPoulin, Today, 10:43 AM
          6 responses
          23 views
          0 likes
          Last Post JPPoulin  
          Working...
          X