Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

24 Hour Bar Stamps

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

    24 Hour Bar Stamps

    I have a strategy that uses:
    Code:
    g_CurrentTime = new DateTime(Time[0].Year, Time[0].Month, Time[0].Day, Time[0].Hour, Time[0].Minute, Time[0].Second);
    To obtain the time of the current bar; my problem is when I download historical data in replay mode... It's in 12hr AM/PM, but when I run live it's in 24 hour format.

    How can I configure the replay mode to be in the 24 hour time format? or is there some code I will need to right to do this in my strategy?

    Thanks!

    #2
    Hello,

    Every single chart inside of NinjaTrader should use the 24 hour charting style. Are you saying that in Market replay with download data you are not seeing your charts be in 24 hour style but instead is in 12 hour style?

    Can you please let me know what version of NinjaTrader you are using this is located in the Control Center under Help->About and is to the right of the NinjaTrader logo.


    I look forward to assisting you further.
    BrettNinjaTrader Product Management

    Comment


      #3
      Yes


      License ID:
      Type: SimulationOnly
      Machine ID: DD8609D27531FC9DCF8B36624EAFB724
      .NET/CLR Version: 2.0.50727.4952
      Expiration: 11/30/2099
      Licensed features: AdvancedStrategyManagement
      AutomatedTrading
      BasicEntry
      Charting
      SuperDom
      Licensed providers: Collective2
      IQFeed
      ESignal
      External
      Barchart.com
      Google
      Kinetick
      Replay
      Simulator
      Yahoo
      Zen-Fire
      InteractiveBrokers
      MBTrading
      Patsystems
      PFG
      Vision Financial Markets
      CQG
      TD AMERITRADE
      TrackData
      TradingTechnologies
      Gain

      SuperDOM is licensed under U.S. Patent Nos. 6,766,304 and 6,772,132, U.K. Patent Nos. GB 2,377,527 and GB 2, 390,451 and European Patent No. EP 1 319 211

      SourceGrid - .NET(C#) Grid control, Copyright (c) 2004, Davide Icardi, All rights reserved.
      THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

      Copyright (c) 2001-2005 quickfixengine.org All rights reserved.
      THIS SOFTWARE IS PROVIDED 'AS IS' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL QUICKFIXENGINE.ORG OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

      Comment


        #4
        It's only for yesterday 3/9/2011's data though!

        Comment


          #5
          Hello,

          Ah, ok this makes since then.

          This may be an expected limitation as we had rollover yesterday and I can see how this could cause issue with the replay data. I'm unsure of the specifics of what all your running on, however Please try with the new expiry contracts with yesterdays date moving forward.Sounds like you have and your good to go.

          Let me know if I can be of further assistance.
          BrettNinjaTrader Product Management

          Comment


            #6
            Ok I can live with that ...

            Is there any way to download more then one day at a time of Replay Data? It's very time consuming to do one day at a time using the Download Replay Dialog under the File Menu.

            Thanks!

            Comment


              #7
              Hello,

              Glad to hear future or previous dates are working for you.

              On your secondary question, Unfortunately not.
              BrettNinjaTrader Product Management

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              647 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              369 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              108 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              572 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              573 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X