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

make an indicator plot history too

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

    make an indicator plot history too

    Hello, where in a indicator code can you make it plot historically?
    Thanks

    #2
    Originally posted by newbie0101 View Post
    Hello, where in a indicator code can you make it plot historically?
    Thanks
    It should automatically.

    What are you looking at/or doing that isn't?

    Comment


      #3
      Hello newbie0101,

      Thank you for your post.

      What are you looking for as far as historical plotting? What are you seeing currently that is not expected? Are you using Historical checks in your code?

      Comment


        #4
        Originally posted by sledge View Post
        It should automatically.

        What are you looking at/or doing that isn't?
        Hi sledge and Patrick, thanks for responding.
        It has to do with a 3rd party indicator from long ago, vendor no more but do not want to post code for that fact was /is 3rd party don't need troubles. I can see the code but the indicator only plots from the current day/session and was looking for some advice on where to look in the code that makes an indicator only plot like that and hoping to change it to allow historical plotting as well.

        Comment


          #5
          Hello newbie0101,

          Thank you for your response.

          Check for any lines of code that will limit based on time, date, CurrentBar, FirstBarOfSession, or Session items.

          You can find information on FirstBarOfSession at the following link: http://www.ninjatrader.com/support/h...rofsession.htm
          Session items can be found at the following link: http://www.ninjatrader.com/support/h...t7/session.htm

          Comment


            #6
            Originally posted by NinjaTrader_PatrickH View Post
            Hello newbie0101,

            Thank you for your response.

            Check for any lines of code that will limit based on time, date, CurrentBar, FirstBarOfSession, or Session items.

            You can find information on FirstBarOfSession at the following link: http://www.ninjatrader.com/support/h...rofsession.htm
            Session items can be found at the following link: http://www.ninjatrader.com/support/h...t7/session.htm
            Hi Patrick, thanks but where in the code should I look for this?
            Looked at the links you posted, Thank you. Guessing cause I am not a coder is just confusing to me.
            Thanks in advance

            there are 800 lines of code??

            which section of code does this appear?

            Comment


              #7
              Hello newbie0101,

              Thank you for your response.

              This would be in the OnBarUpdate() method in most cases, more than likely in a condition at the beginning of the OnBarUpdate() method.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by rocketman7, Today, 01:00 AM
              0 responses
              1 view
              0 likes
              Last Post rocketman7  
              Started by wzgy0920, 04-20-2024, 06:09 PM
              2 responses
              27 views
              0 likes
              Last Post wzgy0920  
              Started by wzgy0920, 02-22-2024, 01:11 AM
              5 responses
              32 views
              0 likes
              Last Post wzgy0920  
              Started by wzgy0920, 04-23-2024, 09:53 PM
              2 responses
              74 views
              0 likes
              Last Post wzgy0920  
              Started by Kensonprib, 04-28-2021, 10:11 AM
              5 responses
              193 views
              0 likes
              Last Post Hasadafa  
              Working...
              X