Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trades not being reported

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

    Trades not being reported

    I am connected to kinetick. When I bring up the minute chart for ES-06-14 and a simple indicator with the following code, I notice that trades are not being reported:

    protected override void Initialize()
    Code:
          {
                Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Score"));
                Add(new Plot(Color.FromKnownColor(KnownColor.Transparent), PlotStyle.Line, "NumTrades"));
                Add(new Plot(Color.FromKnownColor(KnownColor.Transparent), PlotStyle.Line, "MaxTradeSize"));
                Overlay				= false;
    			
    			if (Instrument.FullName != null)
                {
                    Add(Instrument.FullName, PeriodType.Tick, 1, MarketDataType.Bid);
                    Add(Instrument.FullName, PeriodType.Tick, 1, MarketDataType.Ask);
    				Add(Instrument.FullName, PeriodType.Tick, 1, MarketDataType.Last);
                }
                else
                    Print("ERROR: Instrument no set.");
    
                if (bb == null)
                    bb = new NinjaCompanion.BlackBox();
            }
    
            /// <summary>
            /// Called on each bar update event (incoming tick)
            /// </summary>
            protected override void OnBarUpdate()
            {
                // Use this method for calculating your indicator values. Assign a value to each
    			if (BarsInProgress == 0)
                {
    				ProcessCandle(0);
    			}
                else if (BarsInProgress == 1)
                {
                    bb.Level1Quote.BidPrice = Closes[1][0];
                    bb.Level1Quote.BidSize = (long)Volumes[1][0];
    
                }
    
                else if (BarsInProgress == 2)
                {
                    bb.Level1Quote.AskPrice = Closes[2][0];
                    bb.Level1Quote.AskSize = (long)Volumes[2][0];
    
                }
                else if (BarsInProgress == 3)
                    ProcessTrade(Times[3][0], Closes[3][0], (long)Volumes[3][0]);			
    			
    			
            }
    Hence BarsInProgress == 3 is NEVER hit. This used to work perfectly last week. The ProcessTrade is a call unto my custom dll and is never called because trades are not being reported.

    Please advice asap. attached is the trace and the log.
    Attached Files

    #2
    Hello newworldguy,

    Thank you for your post.

    I am seeing several disconnects from the Kinetick adapter and the following exception caught in your trace file:
    2014-05-12 08:56:56:282 in OnUnhandledThreadException
    2014-05-12 08:56:56:290 *************** unhandled exception trapped ***************
    2014-05-12 08:56:56:290 Could not find a part of the path 'C:\Users\Al\Documents\NinjaTrader 7\cache'.
    2014-05-12 08:56:56:290 at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.Directory.InternalGetFileDirectoryNames( String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
    at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
    at System.IO.Directory.GetFiles(String path)
    at NinjaTrader.Code.Editor.OnLoad(Object sender, EventArgs e)
    at System.Windows.Forms.Form.OnLoad(EventArgs e)
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Please repair your installation of NinjaTrader and advise if this item continues.

    To repair your installation:
    • Close all running applications.
    • Then from the Start menu select --> Control Panel --> Add and Remove Programs.
    • From Add and Remove Programs select NinjaTrader 7 and click Remove.
    • Reboot your machine.
    • Once these steps are completed, download NT7 from the link below:
      http://www.ninjatrader.com/download-registration.php

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    639 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    366 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    569 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    572 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X