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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    117 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    166 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    85 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    130 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    88 views
    0 likes
    Last Post PaulMohn  
    Working...
    X