• 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 bc24fl, Today, 10:00 AM
          3 responses
          8 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by TonyParisi, Today, 07:38 AM
          2 responses
          11 views
          0 likes
          Last Post TonyParisi  
          Started by fx.practic, Today, 10:03 AM
          2 responses
          7 views
          0 likes
          Last Post fx.practic  
          Started by traderpards, 12-12-2018, 01:15 PM
          6 responses
          154 views
          0 likes
          Last Post NinjaTrader_PaulH  
          Started by Cyanez, Today, 08:41 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X