• 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 simjs, Yesterday, 08:11 PM
      0 responses
      3 views
      0 likes
      Last Post simjs
      by simjs
       
      Started by mrlucky1x, Yesterday, 06:01 PM
      0 responses
      3 views
      0 likes
      Last Post mrlucky1x  
      Started by dedouglas, Yesterday, 03:17 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Jugado, Yesterday, 02:22 PM
      2 responses
      30 views
      0 likes
      Last Post Jugado
      by Jugado
       
      Started by login_dejavu, 04-21-2019, 04:58 AM
      2 responses
      24 views
      0 likes
      Last Post login_dejavu  
      Working...
      X