Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

New User Woes

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

    So close is the last trade and not the close of the bar??, i was trying to reference the last trade during a bar. like not the final last but like the last one a second agon during the current bar

    Comment


      If you are running CalculateOnBarClose = false (tick by tick) then Close[0] is the last trade. If you are running with it true, close of the bar, then this is the last trade since you can not access it intrabar since OnBarUpdate() is only called on the close of the bar.
      RayNinjaTrader Customer Service

      Comment


        How do you keep the arrows drawn on the charts to stay on the chart, mine draw like on the current bar then dissapear

        Comment


          Don't pass in the same tag value, make them unique such as

          string myTag = "downArrow" + CurrentBar;
          RayNinjaTrader Customer Service

          Comment


            k i will try that, so basically if i use a tag, for when the price moves up more than 2 dollars at the end of the day it would show an arrow everytime that occured right??

            Comment


              A unique tag will ensure that whenever you call any drawing method, you will get a unique instance of a drawn object.
              RayNinjaTrader Customer Service

              Comment


                Thanks for the help guys, I do have another quesdtion i have been trying to get figured out,

                I know there is the indicator with the open high and low of the session, but the problem i have is if i set the sessin to begin at 8:30am the cahrts are messed up becuse i dont have the data before 8:30 am. so i usually will have the session begin at 12:00 am to 12:00am. What i would like is the same indiactor but to draw the lines from the open at 8:30am instead of 12:00am. I havent been able to figure out how to make it draw the lines at 8:30 am instead of session beginning

                Comment


                  You would have to figure out the bar index of the 1st bar after 8:30 AM and use this to calculate number of bars ago and use this as the start point of your line.
                  RayNinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by twitch251, Today, 05:14 PM
                  1 response
                  4 views
                  0 likes
                  Last Post NinjaTrader_ShawnB  
                  Started by robforee2, Today, 05:07 PM
                  0 responses
                  1 view
                  0 likes
                  Last Post robforee2  
                  Started by blar58, Today, 03:16 PM
                  1 response
                  6 views
                  0 likes
                  Last Post NinjaTrader_Melissa  
                  Started by alcorr247, Today, 02:52 PM
                  2 responses
                  7 views
                  0 likes
                  Last Post robforee2  
                  Started by Radano, Today, 02:30 PM
                  1 response
                  4 views
                  0 likes
                  Last Post NinjaTrader_ChrisL  
                  Working...
                  X