• 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

Bars reprocessed when using custom bar type

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

    Bars reprocessed when using custom bar type

    Hi,
    I've converted a custom bars type from NT7 to NT8. At times this bar type removes the last bar and creates a new one. In NT7 this is fine and no problems. In NT8 however, it causes an OnBarUpdate() event and IsFirstTickOfBar is true.
    What this leads to is a reprocessing of a past bar. See this print out issued at IsFirstTickOfBar == true;

    The code used for this print out (in an indicator) is

    Code:
    if (IsFirstTickOfBar) 
    					Print(Time[AZ]+" FirstTickOfBar of index "+CurrentBar+" of "+Count);
    (This is realtime and Calculate.OnEachTick and AZ equals 1).
    I am getting THREE first tick of bar events at once:

    22/09/2016 4:44:33 PM FirstTickOfBar of index 1206 of 1209
    22/09/2016 4:44:44 PM FirstTickOfBar of index 1207 of 1209
    22/09/2016 4:45:08 PM FirstTickOfBar of index 1208 of 1209
    22/09/2016 4:44:44 PM FirstTickOfBar of index 1207 of 1210
    22/09/2016 4:45:08 PM FirstTickOfBar of index 1208 of 1210
    22/09/2016 4:45:30 PM FirstTickOfBar of index 1209 of 1210
    22/09/2016 4:45:08 PM FirstTickOfBar of index 1208 of 1211
    22/09/2016 4:45:30 PM FirstTickOfBar of index 1209 of 1211
    22/09/2016 4:45:44 PM FirstTickOfBar of index 1210 of 1211

    Cheers,
    saltminer

    #2
    Hello saltminer,

    Thank you for your post.

    Is this a custom bar type we may test on our end? If so, please send to platformsupport[at]ninjatrader[dot]com with 'ATTN: Patrick H - 1576825' in the subject line.
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      Hello saltminer,

      Development has looked into this case. May we test your NT 7 Bar Type, NT 8 Bar Type, and your test script on our end?

      You can find the NT 7 Bar Type under Documents\NinjaTrader 7\bin\Custom\Type.
      You can find the NT 8 Bar Type under Documents\NinjaTrader 8\bin\Custom\BarsTypes.
      And the test script would be under Documents\NinjaTrader 8\bin\Custom\Indicators.

      Please send these over to platformsupport[at]ninjatrader[dot]com with 'ATTN: Patrick H - 1576825'.

      Please let me know if you have any questions.
      Patrick H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by rickyblah12, Today, 08:17 PM
      0 responses
      4 views
      0 likes
      Last Post rickyblah12  
      Started by mrlucky1x, Today, 08:07 PM
      0 responses
      2 views
      0 likes
      Last Post mrlucky1x  
      Started by uday12, Today, 07:21 PM
      0 responses
      3 views
      0 likes
      Last Post uday12
      by uday12
       
      Started by voltlon, Today, 05:18 PM
      0 responses
      6 views
      0 likes
      Last Post voltlon
      by voltlon
       
      Started by Bobisam, Today, 04:57 PM
      0 responses
      8 views
      0 likes
      Last Post Bobisam
      by Bobisam
       
      Working...
      X