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 facuevasm, Today, 07:28 AM
    0 responses
    1 view
    0 likes
    Last Post facuevasm  
    Started by Leeroy_Jenkins, Today, 03:45 AM
    0 responses
    13 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by sinpeople, Today, 04:38 AM
    0 responses
    10 views
    0 likes
    Last Post sinpeople  
    Started by Futurestrader00, Yesterday, 06:14 PM
    1 response
    17 views
    0 likes
    Last Post cincai
    by cincai
     
    Started by ballston, Today, 06:32 AM
    0 responses
    4 views
    0 likes
    Last Post ballston  
    Working...
    X