• 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

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.
    http://ninjatrader.com/support/helpG...-us/export.htm
    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, 03:35 PM.
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by refine, Today, 05:02 PM
        0 responses
        2 views
        0 likes
        Last Post refine
        by refine
         
        Started by White Fork, Today, 01:57 PM
        2 responses
        6 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by martyn73, Today, 02:45 PM
        2 responses
        9 views
        0 likes
        Last Post martyn73  
        Started by ct, Today, 12:48 PM
        4 responses
        22 views
        0 likes
        Last Post eDanny
        by eDanny
         
        Started by BrandonT1292, 07-30-2018, 07:32 PM
        11 responses
        400 views
        0 likes
        Last Post EllisEdi  
        Working...
        X