Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Flow Cumulative Delta shows no data

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

  • aworldnervelink
    replied
    I have some disturbing news. Deleting the db/cache folder was previously working for me for months, but now it has stopped working. Even after deleting that folder and restarting I am still seeing nothing on the Order Flow indicator. So, that may have been a cargo cult solution.

    I'm currently running 8.0.23.1, I will upgrade after today's session.

    Leave a comment:


  • NinjaTrader_Kate
    replied
    Hello aworldnervelink,

    Thank you for your reply.

    When you re-enable the strategies after making code changes, are you completely removing them from the chart and re-adding them? This would be recommended if you are not.

    What version of NinjaTrader are you currently using? We've released a new version since this thread was started, 8.0.23.2. Does this persist after updating to the latest version?

    Thanks in advance; I look forward to assisting you further.

    Leave a comment:


  • aworldnervelink
    replied
    I've been seeing a pattern lately:
    • Start NT and run my strategies. Everything works OK. Strategies run for a while (e.g. 20 hours).
    • Disable the strategies, possibly make some small code changes and recompile. Re-enable strategies. Order flow is now corrupted on one or more charts.
    • Stop NT, delete the db/cache folder, everything works OK again.

    So, I can conclude that (1) the issue is definitely corruption in the data cache, and (2) it happens very quickly, within the span of one day. I should mention that at the moment I am only looking at one market (MES) with a few tick charts of various resolution.

    Leave a comment:


  • aworldnervelink
    replied
    I just ran into the issue again and deleting the cache folder again fixed the problem.

    Leave a comment:


  • aworldnervelink
    replied
    This turned out to be a good morning to test as I started up and several charts showed the data problem. I deleted the cache folder and restarted and was able to get all indicators to load normally. Seems like this could definitely be a factor.

    Leave a comment:


  • NinjaTrader_Kate
    replied
    Hello aworldnervelink,

    Thank you for sending in your log and trace files.

    In looking these over, the only issue I'm seeing regarding data is the following:

    2020-12-07 08:53:41:599|3|4|Failed to resolve instrument for market data: F.US.M6B.U20 could not be resolved.

    Basically, this is saying you're not getting data for the M6B, which just means you have a window somewhere in the platform that is requesting data for that instrument but failing to get it.

    Since we're looking at the MES 12-20, that doesn't help us much.

    I suspect there may be a bar caching issue occurring, however. Do you see the same occur if you clear the cache?

    To delete the cache, follow the steps below.
    • Shut down NinjaTrader.
    • Open the Documents > NinjaTrader 8 > db folder.
    • Delete the sub-folder named 'cache'.
    • Restart NinjaTrader and test.

    Please let us know if we may be of further assistance.

    Leave a comment:


  • NinjaTrader_Kate
    replied
    Hello aworldnervelink,

    Thank you for your reply.

    I've been completely unable to replicate this on the current version using NinjaTrader Continuum data. I'd like to take a look at your log and trace files to see if there's any errors occurring when NinjaTrader tries to retrieve tick data. However, since these may contain personally identifiable information, I'd want you to send those in directly. You can do this by going to Help > Email Support. Log and Trace files should be automatically checked. Please put 2859461 ATTN Kate W. in the subject line.

    Thanks in advance; I look forward to assisting you further.

    Leave a comment:


  • aworldnervelink
    replied
    See above in the thread, I am running 8.0.23.1. I have been seeing this problem for several months on at least two, possibly 3 different versions.

    Leave a comment:


  • NinjaTrader_Kate
    replied
    Hello aworldnervelink,

    Thank you for your replies.

    I've tested these on a number of instruments and haven't been able to replicate this on my end. I'd make sure you're on the current version of the software. You can check this under Help > About. The current version is 8.0.23.1. If you're on a different version, please update using the steps below and test:
    • First, copy your license key from NinjaTrader under Help> License Key then exit NinjaTrader
    • Click on the link: https://ninjatrader.com/PlatformDirect
    • Enter your license key and press Submit
    • Select 'NinjaTrader 8'
    • Select 'Download'
    • Critical: Before running the installer, ensure NinjaTrader is closed.
    Thanks in advance; I look forward to assisting you further.

    Leave a comment:


  • aworldnervelink
    replied
    I removed all Strategies, selected "Reload All Historical Data", applied my Strategy, and it came up OK. Can't guarantee that this was the cure as the problem is intermittent but in this case it worked. Strategy code is attached.

    Attached Files

    Leave a comment:


  • aworldnervelink
    replied
    I was just able to replicate the problem with a strategy containing only the code shown above. This was on a chart of the MES 12-20 with 500 tick bars. It's been a while since I have looked at other markets but I seem to recall the problem showing up on various micro currency charts as well.

    I also noticed that the problem seems to be "sticky" to the chart... if it doesn't work the first time on the particular chart, it will continue to fail.

    Click image for larger version

Name:	2020-12-07 08_58_21-.png
Views:	510
Size:	36.2 KB
ID:	1131069

    Leave a comment:


  • NinjaTrader_Kate
    replied
    Hello aworldnervelink,

    Thank you for your post.

    Does this occur only on certain instruments, or on all instruments?

    Can you replicate this using a strategy that is empty except for the above code?

    Thanks in advance; I look forward to assisting you further.

    Leave a comment:


  • aworldnervelink
    replied
    I use NinjaTrader Continuum as my data connection.

    I started NT in safe mode and applied the Order Flow Cumulative Delta to several charts. I was not able to replicate the issue. Since my strategy is not available in safe mode it is not a great test but it's a start. For reference, my strategy creates and adds the indicator to the chart automatically:

    Code:
    else if (State == State.Configure)
    
    {[INDENT]AddDataSeries(Data.BarsPeriodType.Tick, 1);[/INDENT]
     
    }
    
    else if (State == State.DataLoaded)
    
    {[INDENT]orderFlow = OrderFlowCumulativeDelta(CumulativeDeltaType.BidAsk, CumulativeDeltaPeriod.Bar, 0);
    
    AddChartIndicator(orderFlow);[/INDENT]
     }
    As mentioned this generally works but sometimes there is no data in the indicator.

    Thanks for the help!

    Leave a comment:


  • NinjaTrader_Heath
    replied
    Hello aworldnervelink,

    Thank you for your note.

    To be able to assist further please let me know who you are connected to?

    Additionally, so we can further diagnose your system, please start NinjaTrader in Safe Mode.

    Safe Mode will prevent NinjaTrader from:
    • Loading workspaces.
    • Connecting on start-up.
    • Loading custom assemblies.
    • Getting instrument updates from the server.

    To enable safe mode, please use the following steps:
    • Exit NinjaTrader.
    • Hold the CONTROL key and double click the NinjaTrader icon.
    • Keep the CONTROL key held down until you see the Control Center.
    • You can verify you are in safe mode by going to Help -> About.
    Please let me know if you're able to load a chart with the order flow indicator manually without issue in safe mode.

    Thank you I'll await your reply.

    Leave a comment:


  • aworldnervelink
    replied
    Was the original post not clear? 70% of the time the indicator works as expected... 30% of the time it comes up with no data. I use solely one provider.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by andrewtrades, Today, 04:57 PM
1 response
10 views
0 likes
Last Post NinjaTrader_Manfred  
Started by chbruno, Today, 04:10 PM
0 responses
6 views
0 likes
Last Post chbruno
by chbruno
 
Started by josh18955, 03-25-2023, 11:16 AM
6 responses
436 views
0 likes
Last Post Delerium  
Started by FAQtrader, Today, 03:35 PM
0 responses
9 views
0 likes
Last Post FAQtrader  
Started by rocketman7, Today, 09:41 AM
5 responses
20 views
0 likes
Last Post NinjaTrader_Jesse  
Working...
X