• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Types

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

    Order Types

    Applies to: NinjaTrader 7

    Understanding the different types of entry and exit orders you can place through NinjaScript is important. As a trader, it is critical you place the right type of order depending on the current market conditions and your trading style.

    NinjaTrader 7 Order Methods

    Code:
    EnterLong();
    EnterShort();
    ExitLong();
    ExitShort();
    These place market orders to either buy or sell. Market orders offer the fastest execution speed and under most conditions, guarantee that your order is filled. Be wary about using them on low volatility securities with large spreads though. You might get filled at a much higher/lower price than you expected.

    Code:
    EnterLongStop();
    EnterShortStop();
    ExitLongStop();
    ExitShortStop();
    These orders wait for the price of the instrument to pass your stop price. Once it passes the stop price the order becomes a market order for execution. Stop orders increase your chances of getting filled at a particular price, but are not guaranteed because they are still ultimately market orders.

    Code:
    EnterLongLimit();
    EnterShortLimit();
    ExitLongLimit();
    ExitShortLimit();
    Limit orders allow you to specify the price you want to be filled at. These orders are useful on low volatility instruments because they ensure you get filled at the price you specified or better. Take note that limit orders are not guaranteed to execute and may cause only partial fills.

    Code:
    EnterLongStopLimit();
    EnterShortStopLimit();
    ExitLongStopLimit();
    ExitShortStopLimit();
    The stop-limit order offers the trader complete control over the order. Like a stop order, the stop-limit order waits until the specified stop price has been reached. Unlike the stop order though, the stop-limit order becomes a limit order instead of a market order when the stop price is reached. The drawback for a stop-limit order is the same as all limit orders; the trader might not be filled if the limit price is never reached.
    Last edited by NinjaTrader_Jesse; 06-03-2015, 02:46 PM.
    JoshNinjaTrader Customer Service

    #2
    Applies to: NinjaTrader 8

    Understanding the different types of entry and exit orders you can place through NinjaScript is important. As a trader, it is critical you place the right type of order depending on the current market conditions and your trading style.

    NinjaTrader 8 Order Methods

    Code:
    EnterLong();
    EnterShort();
    ExitLong();
    ExitShort();
    These place market orders to either buy or sell. Market orders offer the fastest execution speed and under most conditions, guarantee that your order is filled. Be wary about using them on low volatility securities with large spreads though. You might get filled at a much higher/lower price than you expected.

    Code:
    EnterLongStopMarket();
    EnterShortStopMarket();
    ExitLongStopMarket();
    ExitShortStopMarket();
    These orders wait for the price of the instrument to pass your stop price. Once it passes the stop price the order becomes a market order for execution. Stop orders increase your chances of getting filled at a particular price, but are not guaranteed because they are still ultimately market orders.

    Code:
    EnterLongLimit();
    EnterShortLimit();
    ExitLongLimit();
    ExitShortLimit();
    Limit orders allow you to specify the price you want to be filled at. These orders are useful on low volatility instruments because they ensure you get filled at the price you specified or better. Take note that limit orders are not guaranteed to execute and may cause only partial fills.

    Code:
    EnterLongStopLimit();
    EnterShortStopLimit();
    ExitLongStopLimit();
    ExitShortStopLimit();
    The stop-limit order offers the trader complete control over the order. Like a stop order, the stop-limit order waits until the specified stop price has been reached. Unlike the stop order though, the stop-limit order becomes a limit order instead of a market order when the stop price is reached. The drawback for a stop-limit order is the same as all limit orders; the trader might not be filled if the limit price is never reached.

    Code:
    EnterLongMIT();
    EnterShortMIT();
    ExitLongMIT();
    ExitShortMIT();
    The MIT (Market If Touched) order allows the order to be submitted at Market once the price is touched. This order is similar to a stop order except the buy and sell actions are reversed. For example, a buy MIT order is submitted below market where a buy Stop would be submitted above market.
    Last edited by NinjaTrader_Jesse; 06-03-2015, 02:45 PM.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by stokhastic, Today, 07:08 PM
    0 responses
    3 views
    0 likes
    Last Post stokhastic  
    Started by jlkramer16, Today, 04:29 PM
    1 response
    4 views
    0 likes
    Last Post jlkramer16  
    Started by stokhastic, Today, 03:29 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by jamestrader21x, Today, 09:36 AM
    8 responses
    32 views
    0 likes
    Last Post nkhoi
    by nkhoi
     
    Started by brucerobinson, 10-31-2018, 05:17 AM
    3 responses
    75 views
    0 likes
    Last Post brucerobinson  
    Working...
    X