• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 gemini42, Today, 01:53 AM
1 response
4 views
0 likes
Last Post NinjaTrader_ShawnB  
Started by asmmbillah, Today, 04:42 PM
2 responses
10 views
0 likes
Last Post asmmbillah  
Started by JAtrades, Today, 02:44 PM
3 responses
12 views
0 likes
Last Post NinjaTrader_ShawnB  
Started by mr_trade, Today, 01:32 PM
1 response
11 views
0 likes
Last Post Emma1
by Emma1
 
Started by sgordet, Today, 10:44 AM
1 response
12 views
0 likes
Last Post bltdavid  
Working...
X