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

Getting current Bars value

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

    Getting current Bars value

    Hi,
    I found already an question like this, but it does not fit my Problem.

    Like I am missing last bars values, I do have kinetick EOD data loaded:

    e.g. EURUSD:

    From my history loaded:
    19.09.2014 00:00:00 1,2915 1,2928 1,2823 1,2823 17988500000
    18.09.2014 00:00:00 1,2858 1,293 1,2833 1,2915 16719200000
    17.09.2014 00:00:00 1,2955 1,298 1,2851 1,2858 19272600000
    ...

    Printing its data OnBarUpdate gives me:

    ...
    09.09.2014 23:00:00 1,2893 1,2956 1,2858 1,2936
    10.09.2014 23:00:00 1,2936 1,2962 1,2883 1,2914
    11.09.2014 23:00:00 1,2916 1,2951 1,2896 1,2919
    12.09.2014 23:00:00 1,2921 1,2978 1,2908 1,2957
    15.09.2014 23:00:00 1,2966 1,2969 1,2907 1,2933
    16.09.2014 23:00:00 1,2933 1,2994 1,2921 1,2955
    17.09.2014 23:00:00 1,2955 1,298 1,2851 1,2858
    18.09.2014 23:00:00 1,2858 1,293 1,2833 1,2915

    what i am missing is the last (actual) days value.for 19.09.2014 (as loaded in history)

    As I used this on free EOD data I know there is not already the 1st tick on the next day. But still data is available in History including Close and volume.

    How can I Access this data and plot a complete list?

    regards
    MrBraxter

    #2
    Hello MrBraxter,

    Are you running this script on a chart?

    If so, what is the End date: selected in the Data Series window?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,

      yes I do. It Shows date until 19.09.2014

      I dont really Need a Chart, all I want is to go in a Loop through all the data.

      regards

      Comment


        #4
        Hello MrBraxter,

        Please set the end date to today and try testing the script again.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          in data series properties the End date is already set to 22.09.2014

          Comment


            #6
            Hi MrBraxter,

            I'd like to take a look at this with you.

            Please send an email to platformsupport [at] ninjatrader [dot] com. In the email, please add a link to this forum thread.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Hi Chelsea,

              thx for your help, I just missed the small Setting on my indicator "calculate on bar Close"

              It works fine now with kinetick EOD

              I understand not to use this with incomming tick-data as it will flood my Output.

              best regards
              MrBraxter

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by rdtdale, Today, 01:02 PM
              1 response
              4 views
              0 likes
              Last Post NinjaTrader_LuisH  
              Started by alifarahani, Today, 09:40 AM
              3 responses
              16 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by RookieTrader, Today, 09:37 AM
              4 responses
              19 views
              0 likes
              Last Post RookieTrader  
              Started by PaulMohn, Today, 12:36 PM
              0 responses
              9 views
              0 likes
              Last Post PaulMohn  
              Started by love2code2trade, 04-17-2024, 01:45 PM
              4 responses
              41 views
              0 likes
              Last Post love2code2trade  
              Working...
              X