• 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 rickyblah12, Today, 05:01 PM
          1 response
          3 views
          0 likes
          Last Post NinjaTrader_ShawnB  
          Started by jtrading82, 10-11-2019, 05:07 PM
          8 responses
          80 views
          1 like
          Last Post sledge
          by sledge
           
          Started by MARTIN MARTIN, Yesterday, 01:01 PM
          3 responses
          41 views
          0 likes
          Last Post MARTIN MARTIN  
          Started by NickyD, Today, 11:42 AM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_Jim  
          Started by cupir2, Today, 11:25 AM
          3 responses
          17 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X