Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Short r buy to contract by AtmStrategyCreate

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

    Short r buy to contract by AtmStrategyCreate

    Hi,

    How can I short or buy two contract at MarketPrice by AtmStrategyCreate ?

    #2
    Hello bosajin, thanks for your question.

    Please see the documentation page here:
    https://ninjatrader.com/support/help...tegycreate.htm

    The order quantity must be set up in the ATM template, so set your saved template to 2 quantity. The Limit and Stop price can be set to 0 since OrderType will be set to OrderType.Market.

    e.g.

    AtmStrategyCreate(OrderAction.Buy, OrderType.Market, 0, 0, TimeInForce.Day, orderId, "test", atmStrategyId, (atmCallbackErrorCode, atmCallBackId)

    Please let me know if I can assist any further.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kazisl, Today, 06:41 PM
    0 responses
    2 views
    0 likes
    Last Post kazisl
    by kazisl
     
    Started by einstein, Today, 06:20 PM
    0 responses
    2 views
    0 likes
    Last Post einstein  
    Started by op1031, Today, 05:51 PM
    0 responses
    4 views
    0 likes
    Last Post op1031
    by op1031
     
    Started by nighttrader99, Today, 04:34 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by Simon Investimens, Today, 02:51 PM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X