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.

    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.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by fx.practic, 10-15-2013, 12:53 AM
      5 responses
      5,403 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by Shai Samuel, 07-02-2022, 02:46 PM
      4 responses
      94 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by DJ888, Yesterday, 10:57 PM
      0 responses
      6 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      158 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Yesterday, 09:29 PM
      0 responses
      8 views
      0 likes
      Last Post Belfortbucks  
      Working...
      X