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 Tim-c, Today, 03:54 AM
      0 responses
      3 views
      0 likes
      Last Post Tim-c
      by Tim-c
       
      Started by FrancisMorro, Today, 03:24 AM
      0 responses
      2 views
      0 likes
      Last Post FrancisMorro  
      Started by Segwin, 05-07-2018, 02:15 PM
      10 responses
      1,771 views
      0 likes
      Last Post Leafcutter  
      Started by Rapine Heihei, 04-23-2024, 07:51 PM
      2 responses
      31 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by Shansen, 08-30-2019, 10:18 PM
      24 responses
      945 views
      0 likes
      Last Post spwizard  
      Working...
      X