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 MacDad, 02-25-2024, 11:48 PM
          7 responses
          158 views
          0 likes
          Last Post loganjarosz123  
          Started by Belfortbucks, Today, 09:29 PM
          0 responses
          7 views
          0 likes
          Last Post Belfortbucks  
          Started by zstheorist, Today, 07:52 PM
          0 responses
          7 views
          0 likes
          Last Post zstheorist  
          Started by pmachiraju, 11-01-2023, 04:46 AM
          8 responses
          151 views
          0 likes
          Last Post rehmans
          by rehmans
           
          Started by mattbsea, Today, 05:44 PM
          0 responses
          6 views
          0 likes
          Last Post mattbsea  
          Working...
          X