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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    51 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    275 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X