I call UpdateBar and I see that the time is correctly getting updated, but the rest of the values in the high / low / close do not. Please see the attached picture. What could be causing this?
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
UpdateBar not updating last bar in custom bartype
Collapse
X
-
UpdateBar not updating last bar in custom bartype
I need a specialized point and figure chart and I have basically copied the main parts of the pointandfigure bartype.
I call UpdateBar and I see that the time is correctly getting updated, but the rest of the values in the high / low / close do not. Please see the attached picture. What could be causing this?Tags: None
-
Hello habibalex
Do you have a reduced script that only includes code to demonstrate calling UpdateBar() from within OnDataPoint() is not updating the bar to the values that are printed for comparison?
To export a NinjaTrader 8 NinjaScript do the following:- Click Tools -> Export -> NinjaScript...
- Click the 'add' link -> check the box(es) for the script(s) you want to include
- Click the 'Export' button
- Enter a unique name for the file in the value for 'File name:'
- Choose a save location -> click Save
- Click OK to clear the export location message
By default your exported file will be in the following location:- (My) Documents/NinjaTrader 8/bin/Custom/ExportNinjaScript/<export_file_name.zip>
Below is a link to the help guide on Exporting NinjaScripts.
Chelsea B.NinjaTrader Customer Service
-
After restarting my platform and trying to work on this issue today, it looks like it is caused by another problem. I ended up deleting everything and just leaving most of the code intact for PointAndFigureBarsType.cs.
Unfortunately now I cannot export the file I made. It says the type of namespace MinuteBarsType could not be found, how would I get around this problem?
Comment
-
Hello habibalex,
The errors received are due to the BarsType referencing other system BarsTypes. The references must be added manually to export. To do so, you can rename the BarsTypes so the "@" prefix is removed from the file names. Afterwards, you can add those BarsTypes to the export list to export without error.
I am also checking with my colleagues if this behavior is to be expected.
EDIT: The issue with exporting system BarTypes is currently being tracked with the ticket ID NTEIGHT-12056 which can be referenced in the Release Notes page of the help guide when a fix is applied.
I look forward to being of further assistance.Last edited by NinjaTrader_Jim; 08-22-2017, 04:35 PM.JimNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by elderan, Today, 08:03 PM
|
0 responses
3 views
0 likes
|
Last Post
by elderan
Today, 08:03 PM
|
||
Started by algospoke, Today, 06:40 PM
|
0 responses
10 views
0 likes
|
Last Post
by algospoke
Today, 06:40 PM
|
||
Started by maybeimnotrader, Today, 05:46 PM
|
0 responses
9 views
0 likes
|
Last Post Today, 05:46 PM | ||
Started by quantismo, Today, 05:13 PM
|
0 responses
7 views
0 likes
|
Last Post
by quantismo
Today, 05:13 PM
|
||
Started by AttiM, 02-14-2024, 05:20 PM
|
8 responses
169 views
0 likes
|
Last Post
by jeronymite
Today, 05:00 PM
|
Comment