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

Debug Custom Bar

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

  • NinjaTrader_AlanP
    replied
    Hello Habibalex,

    Without a data connection the option to refresh historical data is not available. I will put in a feature request which requests that you be able to refresh historical data without a connection.

    Please let us know if you need further assistance.

    Leave a comment:


  • habibalex
    replied
    how come the option to refresh historical data is grayed out unless connected to a broker then?

    does refreshing simply delete the cache files and regenerate the chart?

    Leave a comment:


  • NinjaTrader_AlanP
    replied
    Hello habibalex,

    No, refreshing historical data is not going to pull data from the server if it already exists on the computer. You would have to delete the historical data using the historical data manager or within My Documents>NT8>DB folder, which would then cause the data to be pulled from the server.

    Please let us know if you need further assistance.

    Leave a comment:


  • habibalex
    replied
    That re-downloads the data from the server every time right?

    Leave a comment:


  • NinjaTrader_AlanP
    replied
    Hello habibalex,

    The bartype script should be called when you reload historical data.

    Attached is a bar type I created, which if you apply to a 15 minute chart, right click and reload historical data, you'll see that "Calling bar code" is printed to the output window. This demonstrates that the bar type script is being ran on a refresh.

    If you still are unable to get the results you desire, please upload a copy of the code and I'll see if anything jumps out.
    Attached Files

    Leave a comment:


  • habibalex
    started a topic Debug Custom Bar

    Debug Custom Bar

    I am trying to debug an issue with a custom bar type. When I refresh the chart, the code that generates the bartype is not always called. I have to play around with the time, date or value settings to be able to set breakpoints. Is there a way to force the bartypes file to be called every single time the chart is refreshed?

    Also, in my my bartype i'm saving off some information in the time property. I was under the impression that the last 3 digits of the time.Ticks should always be 0. It appears that is not always the case? Can you confirm that?
    Last edited by habibalex; 08-05-2017, 09:28 PM.

Latest Posts

Collapse

Topics Statistics Last Post
Started by wzgy0920, 04-20-2024, 06:09 PM
2 responses
26 views
0 likes
Last Post wzgy0920  
Started by wzgy0920, 02-22-2024, 01:11 AM
5 responses
32 views
0 likes
Last Post wzgy0920  
Started by wzgy0920, Yesterday, 09:53 PM
2 responses
49 views
0 likes
Last Post wzgy0920  
Started by Kensonprib, 04-28-2021, 10:11 AM
5 responses
191 views
0 likes
Last Post Hasadafa  
Started by GussJ, 03-04-2020, 03:11 PM
11 responses
3,232 views
0 likes
Last Post xiinteractive  
Working...
X