The type or namespace name 'NinjaTrader' could not be found - NinjaTrader Programming | futures io social day trading
futures io futures trading


The type or namespace name 'NinjaTrader' could not be found
Updated: Views / Replies:251 / 9
Created: by Aziz Attachments:4

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

The type or namespace name 'NinjaTrader' could not be found

  #1 (permalink)
Trading Apprentice
delhi india
 
Futures Experience: None
Platform: ninjatrader
Favorite Futures: Currency
 
Posts: 11 since Aug 2017
Thanks: 2 given, 1 received

The type or namespace name 'NinjaTrader' could not be found

I have downloaded Ninja Trader 8 and added the reference in my windows app from
C:\Program Files (x86)\NinjaTrader 8\bin64\NinjaTrader.Client.dll
I have added
using NinjaTrader.Client; on form.
But still it give me error - Error 1 The type or namespace name 'NinjaTrader' could not be found (are you missing a using directive or an assembly reference?)
I even tried adding it from C:\Program Files (x86)\NinjaTrader 8\bin\NinjaTrader.Client.dll
Any idea what am I doing wrong?

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Market Wizard
London UK
 
Futures Experience: Beginner
Platform: CQG
Favorite Futures: Futures
 
xplorer's Avatar
 
Posts: 3,050 since Sep 2015
Thanks: 6,563 given, 4,819 received
Forum Reputation: Legendary



Aziz View Post
I have downloaded Ninja Trader 8 and added the reference in my windows app from
C:\Program Files (x86)\NinjaTrader 8\bin64\NinjaTrader.Client.dll
I have added
using NinjaTrader.Client; on form.
But still it give me error - Error 1 The type or namespace name 'NinjaTrader' could not be found (are you missing a using directive or an assembly reference?)
I even tried adding it from C:\Program Files (x86)\NinjaTrader 8\bin\NinjaTrader.Client.dll
Any idea what am I doing wrong?

Are you trying to start NinjaTrader 8 by referencing a .dll file as opposed to its .exe file?

Reply With Quote
 
  #4 (permalink)
Trading Apprentice
delhi india
 
Futures Experience: None
Platform: ninjatrader
Favorite Futures: Currency
 
Posts: 11 since Aug 2017
Thanks: 2 given, 1 received

I am adding the DLL reference in vs2012 windows application.

Reply With Quote
 
  #5 (permalink)
Market Wizard
London UK
 
Futures Experience: Beginner
Platform: CQG
Favorite Futures: Futures
 
xplorer's Avatar
 
Posts: 3,050 since Sep 2015
Thanks: 6,563 given, 4,819 received
Forum Reputation: Legendary


Aziz View Post
vs2012 windows application.

Sorry, I have no idea what that is.

Reply With Quote
 
  #6 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,489 since Sep 2013
Thanks: 1,704 given, 3,694 received
Forum Reputation: Legendary

1. In the beginning of your source file you need :

using NinjaTrader.Cbi;
using NinjaTrader.Client;
using NinjaTrader.Data;

2. In your project you need to add the DLL in the references

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


3. In your code you will call a function from the DLL like this

 
Code
  public class Orders
    {
        static NinjaTrader.Client.Client NTClient;

        static Object _ATILock = new Object();

        static int sequenceNumber;


        // this is a static construcor
        // we establish once a pipe to NinjaTrader
        public  Orders ()
        {
            //init
            if (NTClient == null)
            {
                NTClient = new NinjaTrader.Client.Client();
                sequenceNumber = 0;
            }
            
        }

        // this should only be done once, when we quite the windows app
        public static void TearDown ()
        {
                NTClient.TearDown();
                NTClient = null;
        }
}

Reply With Quote
 
  #7 (permalink)
Trading Apprentice
delhi india
 
Futures Experience: None
Platform: ninjatrader
Favorite Futures: Currency
 
Posts: 11 since Aug 2017
Thanks: 2 given, 1 received

rleplae,
I am following the same steps but still it gives me error.
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #8 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,489 since Sep 2013
Thanks: 1,704 given, 3,694 received
Forum Reputation: Legendary

can you show me the details ?

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #9 (permalink)
Trading Apprentice
delhi india
 
Futures Experience: None
Platform: ninjatrader
Favorite Futures: Currency
 
Posts: 11 since Aug 2017
Thanks: 2 given, 1 received

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #10 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,489 since Sep 2013
Thanks: 1,704 given, 3,694 received
Forum Reputation: Legendary


For what .NET version are you building your windows form ?

NT 8 would be .NET version 4.5
are you also building for that version ?

Reply With Quote
The following user says Thank You to rleplae for this post:

Reply



futures io > > > > > The type or namespace name 'NinjaTrader' could not be found

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Import Unirenko Chart type from NT to Ninjatrader? sleip Sierra Chart 16 August 11th, 2016 01:17 PM
Custom optimizer type to eliminate 0 MAE trades in NinjaTrader Big Mike NinjaTrader 6 May 18th, 2012 05:58 PM
Docs for the entire NinjaTrader namespace? maumau NinjaTrader 1 May 22nd, 2011 06:27 AM
Error: Type or namespace does not exist. ThatManFromTexas NinjaTrader Programming 2 May 17th, 2011 06:02 PM
Is this type of thing possible in NinjaTrader? richw NinjaTrader Programming 10 February 19th, 2011 09:47 PM


All times are GMT -4. The time now is 06:56 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-13 in 0.12 seconds with 20 queries on phoenix via your IP 54.90.92.204