Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to place order

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

    how to place order

    Suppose I have NT7 connected to both Kinetick and IB. I had a very basic question:

    suppose I have strategy where I have in the code "EnterLong()" and "EnterShort()".

    (i) How do I setup (or modify "EnterLong()" and "EnterShort()" ) to specify how many contracts or number of shares to submit

    (ii) how do I specific the strategy to enter a limit order or a market order or use any of IB's algos such as VWAP?

    Thanks

    #2
    Hello uday12,

    Thank you for writing in.

    You can specify the amount of contracts to submit by specifying a numerical value within the parenthesis. So, if you'd like to submit an order with two contracts, you would do:

    Code:
    EnterLong(2);
    Please take a look at the NinjaTrader help guide at the following two links below for more information about EnterLong() and EnterShort():



    You can utilizing EnterLongLimit()/EnterLongStopLimit() and EnterShortLimit()/EnterShortStopLimit() to submit limit/stop limit orders.

    You would need to download the VWAP indicator for NinjaTrader in order to utilize the VWAP in your strategy. This indicator can be downloaded here on our support forums from this link: http://www.ninjatrader.com/support/f...d=4&linkid=620

    Here is a basic guideline of how to Import NinjaScripts.
    • Download the NinjaScripts to your desktop, keep them in the compressed .zip file.
    • From the Control Center window select the menu File> Utilities> Import NinjaScript
    • Select the downloaded .zip file
    • NinjaTrader will then confirm if the import has been successful.
    • Critical - Specifically for some NinjaScripts, it will prompt that you are running newer versions of @SMA, @EMA, etc. and ask if you want to replace, press 'No'


    Further, the following link is to our help guide with an alphabetical reference list to all supported methods, properties, and objects that are used in NinjaScript: http://www.ninjatrader.com/support/h..._reference.htm

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by traderqz, Today, 12:06 AM
    5 responses
    8 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Mongo, Today, 11:05 AM
    2 responses
    7 views
    0 likes
    Last Post Mongo
    by Mongo
     
    Started by guillembm, Today, 11:25 AM
    0 responses
    3 views
    0 likes
    Last Post guillembm  
    Started by Tim-c, Today, 10:58 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by traderqz, Yesterday, 09:06 AM
    4 responses
    27 views
    0 likes
    Last Post traderqz  
    Working...
    X