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?
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!
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
NinjaTrader
Debug Custom Bar
Collapse
X
-
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.Tags: None
-
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 FilesAlan P.NinjaTrader Customer Service
-
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.Alan P.NinjaTrader Customer Service
Comment
-
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.Alan P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Stanfillirenfro, Today, 07:23 AM
|
1 response
4 views
0 likes
|
Last Post Today, 07:37 AM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
2 responses
22 views
0 likes
|
Last Post Today, 07:24 AM | ||
Started by olisav57, Yesterday, 07:39 PM
|
1 response
9 views
0 likes
|
Last Post Today, 07:23 AM | ||
Started by cocoescala, 10-12-2018, 11:02 PM
|
7 responses
944 views
0 likes
|
Last Post
by Jquiroz1975
Today, 07:21 AM
|
||
Started by oviejo, Today, 12:28 AM
|
1 response
12 views
0 likes
|
Last Post Today, 07:20 AM |
Comment