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

Open price problems in MTF

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

    Open price problems in MTF

    Hi guys!

    I use MTF and I'd like to get Current day open price or 3 days ago open price...etc

    When I use 15 min chart i get current open + 1 bar open price.
    When i use daily chart everything is working well. I see the correct price in tha data box

    Add(PeriodType.Day, 1);

    if (Bars.GetDayBar(2) != null && BarsInProgress == 0)
    {
    byestopen = Bars.GetDayBar(2).Open; // B. yest. open
    }

    if (Bars.GetDayBar(2) != null && BarsInProgress == 1)
    {
    dailyopen = Open[0];
    }




    I get 1,3064 open price
    Is it correct?
    What's wrong in my view? I use fxcm demo...

    thx
    w.
    Attached Files

    #2
    Hi wokitun,

    Thanks for your note.

    So that I may compare the data, what time zone are you in?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi ChelseaB!

      GMT+1

      thx
      w.

      Comment


        #4
        When I see EURUSD 15min chart...yesterday high is 1.3032
        Yesterday high on daily chart is 1.3030
        ??
        It's puzzling to me...
        I assume I shouldn't use to a demo fxcm account...
        This can cause it?

        Comment


          #5
          Hello wokitun,

          Thanks for that information.

          I am currently connected to FXCM and have redownloaded the data for July 2nd.

          I am showing both bars you have marked the bar at 11:00 PM and 11:15 PM have an open of 1.3062.

          I am also showing the high for July 4th session ending at 11:00 PM to be 1.3022 on both the 15 minute chart and the daily chart.


          Please re-download this data and see if this corrects the issue.

          Please use the steps I have provided below to delete your cache data:
          • Close NinjaTrader
          • Open (My) Documents/NinjaTrader 7/db/cache/
          • Delete all files within this folder
          • Go up one directory to the /db/ folder
          • Repeat this procedure for the tick, minute, and day folders as well
          • Restart NinjaTrader
          • Connect


          Open a new chart without any indicators or templates applied to see if you are able to load a chart.

          This initial load may take a little longer than normal since all new data is being loaded from the historical data servers. After everything has loaded please restart NinjaTrader and let me know if you continue to experience a slow load time.
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by andrewtrades, Today, 04:57 PM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by chbruno, Today, 04:10 PM
          0 responses
          3 views
          0 likes
          Last Post chbruno
          by chbruno
           
          Started by josh18955, 03-25-2023, 11:16 AM
          6 responses
          436 views
          0 likes
          Last Post Delerium  
          Started by FAQtrader, Today, 03:35 PM
          0 responses
          7 views
          0 likes
          Last Post FAQtrader  
          Started by rocketman7, Today, 09:41 AM
          5 responses
          19 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X