Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

No OnMarketData or OnMarketDepth Updates In Large Box Point & Figure

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

    No OnMarketData or OnMarketDepth Updates In Large Box Point & Figure

    Hello NT:


    I have (only just now) discovered that Ninja is not delivering any market data updates to indicators on P&F charts with various box sizes above 4.

    I'm on a live feed, on FESX 06-15. I create a chart with P&F, 150 Tick, Reverse on Highs and Lows. Setting Box Size and Reversal to 4x4 works; 5x4 works; but 6x4 does not work.

    A test case is just this:

    Code:
    		protected override void Initialize() {
    			CalculateOnBarClose = false;
    			Overlay = true;
    			DrawOnPricePanel = true;
    		}
    
    		protected override void OnBarUpdate() {
    			Print("OnBarUpdate() at bar " + CurrentBar);
    		}
    
    		protected override void OnMarketData(MarketDataEventArgs e) {
    			Print("OnMarketData: " + e);
    		}
    
    		protected override void OnMarketDepth(MarketDepthEventArgs e) {
    			Print("OnMarketDepth: " + e);
    		}
    At 6x4, the OnMarketData and OnMarketDepth output stops. Other combinations also produce this result. 5x5 does not work, but 5x4 does.

    Is there some explanation?

    #2
    steevcoco,

    How many days to load do you have?

    How many bars are being loaded in the chart?
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      With 12 prior days, I get a total of only 19 bars.

      I admit some of the stated settings are a little odd; but users are pointing out that they try to create charts with these settings ... and the indicator does not get fed realtime data this way. The OnBarUpdate still ticks for each tick; but no market data or depth updates come in.

      The output with 150 tick P&F, 6 Box, 4 Reverse, Highs and Lows is this (no OnMarketData or OnMarketDepth):

      OnBarUpdate() at bar 0
      OnBarUpdate() at bar 1
      OnBarUpdate() at bar 2
      OnBarUpdate() at bar 3
      OnBarUpdate() at bar 4
      OnBarUpdate() at bar 5
      OnBarUpdate() at bar 6
      OnBarUpdate() at bar 7
      OnBarUpdate() at bar 8
      OnBarUpdate() at bar 9
      OnBarUpdate() at bar 10
      OnBarUpdate() at bar 11
      OnBarUpdate() at bar 12
      OnBarUpdate() at bar 13
      OnBarUpdate() at bar 14
      OnBarUpdate() at bar 15
      OnBarUpdate() at bar 16
      OnBarUpdate() at bar 17
      OnBarUpdate() at bar 18
      OnBarUpdate() at bar 18
      OnBarUpdate() at bar 18
      OnBarUpdate() at bar 18
      OnBarUpdate() at bar 18
      OnBarUpdate() at bar 18
      OnBarUpdate() at bar 18
      OnBarUpdate() at bar 18
      ...

      Comment


        #4
        steevcoco,

        Still not able to reproduce this on my end.

        I tried forcing the stop of it with my Ethernet and when reconnected still worked.

        I would advise that you try restarting NinjaTrader and deleting the cache folder from (My) Documents -> NinjaTrader 7 -> db -> Cache
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ZenCortexCLICK, Today, 04:58 AM
        0 responses
        5 views
        0 likes
        Last Post ZenCortexCLICK  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        172 responses
        2,281 views
        0 likes
        Last Post sidlercom80  
        Started by Irukandji, Yesterday, 02:53 AM
        2 responses
        18 views
        0 likes
        Last Post Irukandji  
        Started by adeelshahzad, Today, 03:54 AM
        0 responses
        8 views
        0 likes
        Last Post adeelshahzad  
        Started by Barry Milan, Yesterday, 10:35 PM
        3 responses
        13 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X