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 Wessel, 03-23-2024, 02:37 PM
|
3 responses
21 views
0 likes
|
Last Post Today, 04:58 PM | ||
Started by martini, Yesterday, 04:45 PM
|
4 responses
30 views
0 likes
|
Last Post
by martini
Today, 04:48 PM
|
||
Started by catinabag, 04-13-2023, 05:46 AM
|
34 responses
1,459 views
0 likes
|
Last Post
by mcosta72
Today, 04:44 PM
|
||
Started by adeelshahzad, Today, 11:49 AM
|
6 responses
23 views
0 likes
|
Last Post
by mcosta72
Today, 04:35 PM
|
||
Started by sidlercom80, 05-05-2020, 07:20 AM
|
4 responses
304 views
0 likes
|
Last Post
by Bidder
Today, 04:35 PM
|
Comment