Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

ATM Strategy adjust Order QTY

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

    ATM Strategy adjust Order QTY

    Hello, my strategy has changing stop loss / risk dynamics going on. A stop might be 50 ticks one trade, 100 another.

    I may wish to do a 1 QTY for the 100 tick trade, but 2 QTY for the 50 tick trade.

    I Cannot see a way to achieve this via code OTHER than creating multiple ATM STrategies to use with AtmStrategyCreate() to then pick one based on which QTY I want to use.

    Can I please get confirmation I cannot avoid multiple strategies?

    Thank you

    #2
    Hello firefoxforum12,

    Thanks for your post.

    This would require using two different ATM Strategy Templates as you have noted. In one ATM Strategy Template you would set the 'Order quantity' to 1 and define your stop/target. In the second ATM Strategy Template you would set the 'Order quantity' to 2 and define your stops/targets.

    Then, you would call AtmStrategyCreate() in your NinjaScript strategy and define which ATM Strategy Template you want to place the orders with.

    Atm Strategy Methods: https://ninjatrader.com/support/help...rategy+methods
    Using Atm Strategies in NinjaScript: https://ninjatrader.com/support/help...strategies.htm
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by EvaisDery, Today, 05:44 AM
    0 responses
    5 views
    0 likes
    Last Post EvaisDery  
    Started by JerryWar, 11-19-2016, 08:14 AM
    3 responses
    2,070 views
    0 likes
    Last Post tradertom2012  
    Started by capt34, Today, 03:46 AM
    0 responses
    8 views
    0 likes
    Last Post capt34
    by capt34
     
    Started by wuannetraam, Today, 12:22 AM
    1 response
    11 views
    0 likes
    Last Post wuannetraam  
    Started by TGOG1, Yesterday, 03:02 PM
    2 responses
    26 views
    0 likes
    Last Post TGOG1
    by TGOG1
     
    Working...
    X