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

UpdateBar not updating last bar in custom bartype

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

    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?
    Attached Files

    #2
    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:
    1. Click Tools -> Export -> NinjaScript...
    2. Click the 'add' link -> check the box(es) for the script(s) you want to include
    3. Click the 'Export' button
    4. Enter a unique name for the file in the value for 'File name:'
    5. Choose a save location -> click Save
    6. 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

    Comment


      #3
      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


        #4
        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 Mizzouman1, Today, 07:35 AM
        3 responses
        17 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by RubenCazorla, Today, 09:07 AM
        2 responses
        13 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by i019945nj, 12-14-2023, 06:41 AM
        7 responses
        82 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by timmbbo, 07-05-2023, 10:21 PM
        4 responses
        158 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by tkaboris, Today, 08:01 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X