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 GLFX005, Today, 03:23 AM
      0 responses
      1 view
      0 likes
      Last Post GLFX005
      by GLFX005
       
      Started by XXtrader, Yesterday, 11:30 PM
      2 responses
      11 views
      0 likes
      Last Post XXtrader  
      Started by Waxavi, Today, 02:10 AM
      0 responses
      6 views
      0 likes
      Last Post Waxavi
      by Waxavi
       
      Started by TradeForge, Today, 02:09 AM
      0 responses
      14 views
      0 likes
      Last Post TradeForge  
      Started by Waxavi, Today, 02:00 AM
      0 responses
      3 views
      0 likes
      Last Post Waxavi
      by Waxavi
       
      Working...
      X