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

Indicator Only Plots Live Market

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

    Indicator Only Plots Live Market

    I have an indicator that I made and it only plots when connected live to market data feed. So if I restart my computer
    the plots from earlier are not there. And if I start trading at 10:00 am, or 1pm, no earlier plots are shown on the chart. It just plots when
    live. How do I fix this?

    #2
    Check in your code to see if you have:

    If(State == State.Historical)
    return;

    if you do remove it.

    Comment


      #3
      No dont see that code. I have if (State == State.Configure)

      Comment


        #4
        check if you have maximum bars back

        Comment


          #5
          Hello Trader494,

          Thank you for writing in.

          It sounds like the indicator is doing calculations off real time data only. If you're data provider did not provide historical tick data yet the indicator tries pulling this, I would expect to see what you're seeing. But without the full code we're unable to test on our end.

          If you'd like to provide the full code I can take a look and see if anything jumps out. Please use the following format.

          To export a NinjaScript from NinjaTrader 8 do the following:
          From the Control Center window select Tools -> Export -> NinjaScript...
          Click Add>Select the indicator>OK>Export.
          Then attach that file you saved; under My Docs>NT8>Bin>Custom>Select the downloaded .zip file.

          I look forward to your reply.
          Alan P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by traderqz, Today, 09:44 AM
          2 responses
          4 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by stafe, 04-15-2024, 08:34 PM
          8 responses
          40 views
          0 likes
          Last Post stafe
          by stafe
           
          Started by rocketman7, Today, 09:41 AM
          2 responses
          7 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by rocketman7, Today, 02:12 AM
          7 responses
          31 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by guillembm, Yesterday, 11:25 AM
          3 responses
          16 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X