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 trilliantrader, Yesterday, 03:01 PM
    3 responses
    29 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    4 responses
    25 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Brevo, Today, 01:45 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by rjbtrade1, 11-30-2023, 04:38 PM
    2 responses
    74 views
    0 likes
    Last Post DavidHP
    by DavidHP
     
    Started by suroot, 04-10-2017, 02:18 AM
    5 responses
    3,022 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X