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 Ashkam, 04-29-2024, 09:28 AM
          4 responses
          43 views
          0 likes
          Last Post Ashkam
          by Ashkam
           
          Started by nightstalker, Yesterday, 02:05 PM
          1 response
          29 views
          0 likes
          Last Post NinjaTrader_Eduardo  
          Started by dcriador, Today, 02:09 PM
          0 responses
          7 views
          0 likes
          Last Post dcriador  
          Started by nicthe, Today, 07:38 AM
          4 responses
          22 views
          0 likes
          Last Post bltdavid  
          Started by cmtjoancolmenero, 04-29-2024, 03:40 PM
          30 responses
          98 views
          0 likes
          Last Post cmtjoancolmenero  
          Working...
          X