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

Trouble with Open, High, Low, Close

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

    Trouble with Open, High, Low, Close

    I am getting incorrect values during playback. When I refresh the script, the history displays the correct values. Replay does not. I have tried CalculateOnBarClose as true and false. v.6.0.0.8

    e.g. Up until 7:00 am, it was refeshed history. 7:01 am is replay.

    Print(
    "Open: " + Open[0].ToString() +" High: " + High[0].ToString() + " Low: " + Low[0].ToString() + " Close: " + Close[0].ToString()+ " " + Time[0].ToString());

    Open: 1402.25 High: 1402.5 Low: 1402 Close: 1402.25 3/2/2007 6:59:00 AM
    Open: 1402 High: 1402 Low: 1402 Close: 1402 3/2/2007 7:00:00 AM
    Open: 1401.5High: 1401.5 Low: 1401.5 Close: 1401.5 3/2/2007 7:01:00 AM << this is wrong


    p.s.Later. This is inconsistent.I am no longer getting the error and did not change anything in that area of my script. I cannot duplicate the problem anymore.




    #2
    imported post

    I will double check tomorrow however, please report back if you can replicate with consistency. Thanks.
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      I am getting it again. It is on a tick chart. I will send you my script.

      Comment


        #4
        imported post

        We also would need
        - replay files
        - which instrument are you experiencing this issue on?
        - what are your strategegy settings (screenshot)?

        Thanks

        Comment


          #5
          imported post

          ES 03-07 50 tick chart. Live, not replay today. Dierk, I will send you the script also.
          Attached Files

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by mjairg, 07-20-2023, 11:57 PM
          3 responses
          213 views
          1 like
          Last Post PaulMohn  
          Started by TheWhiteDragon, 01-21-2019, 12:44 PM
          4 responses
          544 views
          0 likes
          Last Post PaulMohn  
          Started by GLFX005, Today, 03:23 AM
          0 responses
          3 views
          0 likes
          Last Post GLFX005
          by GLFX005
           
          Started by XXtrader, Yesterday, 11:30 PM
          2 responses
          12 views
          0 likes
          Last Post XXtrader  
          Started by Waxavi, Today, 02:10 AM
          0 responses
          7 views
          0 likes
          Last Post Waxavi
          by Waxavi
           
          Working...
          X