Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ASM Reversals from NinjaScript?

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

    ASM Reversals from NinjaScript?

    Hi,

    I've got a strategy Script running that executes an ASM strategy. Works great, the new trade is triggered and managed from ASM. There are some known conditions under which I'd like to enter a new limit order to enter a trade in the opposite direction using a different ASM strategy to manage the new trade, effectively reversing from the old trade to the new trade if the new order is filled. I've got the code in thestrategy Script to enter the new orders, but it appears the new orders are ignored while the previous ASM strategy is open. Is there an easy way to automate entering reversal limit orders while the previous ASM trade is still open? Since the new entry would be on a limit just doing an ASMStrategyClose() would probably be premature...

    Thanks.



    #2
    imported post

    Hi,

    Unfortunately that is the current limitation of the AsmMethods within the strategy class. You could access our ATI directlywhich has more functions that allow you to do what you want.

    Or, you could run the strategy tick by tick and simulatetriggering an AsmStrategyClose() then AsmStategyCreate() when a specific price is reached, of course you would get slippage with the market order.

    Ray
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    599 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    344 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    558 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    557 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X